From: Matthew H. <mat...@cs...> - 2008-07-31 07:59:00
|
Hi Claire, You will need to get the source for these classes from the OWL API SVN. However, I believe that sourceforge are performing maintenance on the SVN system so it you might not be able to access SVN until some time tomorrow. Cheers, Matthew > when i try example13 ,i have already load the new api ,but the > following two classes can not be loaded , > import org.semanticweb.owl.util.OWLOntologyWalker; > import org.semanticweb.owl.util.OWLOntologyWalkerVisitor; > i don't know the reason. > cheers > claire > > > > From: owl...@li... > > Subject: Owlapi-developer Digest, Vol 17, Issue 37 > > To: owl...@li... > > Date: Wed, 30 Jul 2008 09:50:44 -0700 > > > > Send Owlapi-developer mailing list submissions to > > owl...@li... > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > or, via email, send a message with subject or body 'help' to > > owl...@li... > > > > You can reach the person managing the list at > > owl...@li... > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Owlapi-developer digest..." > > > > > > Today's Topics: > > > > 1. Problem running example 11 - How to save inferred axioms > > (Vitor Barbosa) > > 2. Re: Problem running example 11 - How to save inferred axioms > > (Matthew Horridge) > > 3. Trigger SWRL rules in API (Vitor Barbosa) > > 4. Re: import closure (Petr Kremen) > > 5. Re: import closure (Matthew Horridge) > > 6. number of triples in an ontology (Chuming Chen) > > 7. Re: number of triples in an ontology (Matthew Horridge) > > 8. Re: number of triples in an ontology (Chuming Chen) > > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Wed, 30 Jul 2008 10:55:08 +0100 > > From: Vitor Barbosa <vit...@gm...> > > Subject: [OWLAPI-developer] Problem running example 11 - How to save > > inferred axioms > > To: owl...@li... > > Message-ID: <489...@gm...> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Hi OWL API developers, > > > > I am trying to run example 11 from the documentation to generate and > > save inferred axioms but on line 73 I get the following error: > > 73 List<InferredAxiomGenerator<? extends OWLAxiom>> gens = new > > ArrayList<InferredAxiomGenerator<? extends OWLAxiom>>(); > > The type InferredAxiomGenerator is not generic; it cannot be > > parameterized with arguments <? extends OWLAxiom>. > > > > If I remove the <? extends OWLAxiom> parameter it is runnable but no > > inferred axioms are generated. I am using Eclipse and the newest > java > > version 1.6.0_07. Can you help me on this? > > > > BTW, is this the suitable way to run SWRL rules? I am using > Protege 4 > > and Pellet reasoner and by classifying the ontology it creates new > > properties information as I would like to. How do I do this using > the API? > > > > Best regards, > > Vitor > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > Message: 2 > > Date: Wed, 30 Jul 2008 11:49:47 +0100 > > From: Matthew Horridge <mat...@cs...> > > Subject: Re: [OWLAPI-developer] Problem running example 11 - How to > > save inferred axioms > > To: owl...@li... > > Message-ID: <325...@cs...> > > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > > Hi Vitor, > > > > You may need to build from SVN - the generics were added to the > axiom > > generator interfaces in a later revision after the last binary > > release. You should be able to check out the latest SVN snapshot and > > build with Ant. Details are available from here: http://owlapi.sourceforge.net/source.html > > > > In answer to your second question, you need to use the OWLReasoner > > interface to access the reasoner via the API. Using this interface, > > you should be able to get the property values for an individual. > > > > Cheers, > > > > Matthew > > > > > > On 30 Jul 2008, at 10:55, Vitor Barbosa wrote: > > > > > Hi OWL API developers, > > > > > > I am trying to run example 11 from the documentation to generate > and > > > save inferred axioms but on line 73 I get the following error: > > > 73 List<InferredAxiomGenerator<? extends OWLAxiom>> gens = new > > > ArrayList<InferredAxiomGenerator<? extends OWLAxiom>>(); > > > The type InferredAxiomGenerator is not generic; it cannot be > > > parameterized with arguments <? extends OWLAxiom>. > > > > > > If I remove the <? extends OWLAxiom> parameter it is runnable > but no > > > inferred axioms are generated. I am using Eclipse and the newest > > > java version 1.6.0_07. Can you help me on this? > > > > > > BTW, is this the suitable way to run SWRL rules? I am using > Protege > > > 4 and Pellet reasoner and by classifying the ontology it creates > new > > > properties information as I would like to. How do I do this using > > > the API? > > > > > > Best regards, > > > Vitor > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > challenge > > > Build the coolest Linux based applications with Moblin SDK & win > > > great prizes > > > Grand prize is a trip for two to an Open Source event anywhere in > > > the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > > > Owlapi-developer mailing list > > > Owl...@li... > > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > > > > > > > > > ------------------------------ > > > > Message: 3 > > Date: Wed, 30 Jul 2008 14:57:25 +0100 > > From: "Vitor Barbosa" <vit...@gm...> > > Subject: [OWLAPI-developer] Trigger SWRL rules in API > > To: owl...@li... > > Message-ID: > > <84b...@ma...> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Hello everyone, > > > > I was experimenting Protege 4 for SWRL rules capabilities and I > found that > > by classifying the ontology with Pellet reasoner I can trigger the > SWRL > > (DL-safe) rules in my ontology and assign new properties for an > object as I > > would like to. > > > > My doubt is how can I do the same by using the OWL API? I tried to > follow > > the examples in the documentation for OWL API but I didn't managed > to get > > the same results as in Protege 4 classify. Can you help me on > this? What's > > the method used for the classification task? > > > > Also, the classification takes too long, about 1 minute, to be > completed. > > Can I reserve more memory for the application? This way it will > take less > > time to complete this task? > > > > Regards, > > > > Vitor > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > Message: 4 > > Date: Wed, 30 Jul 2008 16:34:11 +0200 > > From: Petr Kremen <kr...@la...> > > Subject: Re: [OWLAPI-developer] import closure > > To: owl...@li... > > Message-ID: <489...@la...> > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Hi Matthew, > > > > > If you're building from SVN rather than the latest binary release, > > > then you could create a new ontology from the imports closure. > > > However, it will be a snapshot of the imports closure at the > time that > > > you create it -- is this satisfactory? > > > > > > See: > > > > > > createOntology(URI ontologyURI, > > > Set<OWLOntology> ontologies) > > > > > > or > > > > > > createOntology(URI ontologyURI, > > > Set<OWLOntology> ontologies, > > > boolean copyLogicalAxiomsOnly) > > > > > Yes - thanks, that is exactly what I need. Unfortunately, I am > using the > > build 2.2.0, so I will have to build it from SVN. > > > > Cheers, > > Petr > > > > > > > > ------------------------------ > > > > Message: 5 > > Date: Wed, 30 Jul 2008 15:44:29 +0100 > > From: Matthew Horridge <mat...@cs...> > > Subject: Re: [OWLAPI-developer] import closure > > To: owl...@li... > > Message-ID: <707...@cs...> > > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > > Hi Petr, > > > > >> If you're building from SVN rather than the latest binary > release, > > >> then you could create a new ontology from the imports closure. > > >> However, it will be a snapshot of the imports closure at the time > > >> that > > >> you create it -- is this satisfactory? > > >> > > >> See: > > >> > > >> createOntology(URI ontologyURI, > > >> Set<OWLOntology> ontologies) > > >> > > >> or > > >> > > >> createOntology(URI ontologyURI, > > >> Set<OWLOntology> ontologies, > > >> boolean copyLogicalAxiomsOnly) > > >> > > > Yes - thanks, that is exactly what I need. Unfortunately, I am > using > > > the > > > build 2.2.0, so I will have to build it from SVN. > > > > I recommend that you use Ant to build the API as it produces one > > binary rather than the plethora of jar files produced by the maven > > build script. > > > > Cheers, > > > > Matthew > > > > > > > > ------------------------------ > > > > Message: 6 > > Date: Wed, 30 Jul 2008 12:20:29 -0400 > > From: Chuming Chen <chu...@gm...> > > Subject: [OWLAPI-developer] number of triples in an ontology > > To: owl...@li... > > Message-ID: <489...@gm...> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > Dear List, > > > > Can I use OWL API to calculate how many triples I have in an > ontology? I > > notice that OWLMetric is counting numbers in terms of axioms not > triples. > > > > Thanks, > > > > Chuming > > > > > > > > ------------------------------ > > > > Message: 7 > > Date: Wed, 30 Jul 2008 17:35:45 +0100 > > From: Matthew Horridge <mat...@cs...> > > Subject: Re: [OWLAPI-developer] number of triples in an ontology > > To: owl...@li... > > Message-ID: <E11...@cs...> > > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > > Hi Chumming, > > > > > Can I use OWL API to calculate how many triples I have in an > > > ontology? I > > > notice that OWLMetric is counting numbers in terms of axioms not > > > triples. > > > > This is because the OWL API is based on axioms and not triples. > > Depending on how your ontology is serialised in RDF the number of > > triples could vary for the same ontology. There is however a method > > called getNumberOfTriplesProcessedDuringLoading on the > > RDFXMLOntologyFormat which you could use if you really have to. You > > need to get the ontology format from the manager and check if it's > an > > RDFXMLOntologyFormat - if it is cast it. > > > > Cheers, > > > > Matthew > > > > > > > > ------------------------------ > > > > Message: 8 > > Date: Wed, 30 Jul 2008 12:50:51 -0400 > > From: Chuming Chen <chu...@gm...> > > Subject: Re: [OWLAPI-developer] number of triples in an ontology > > To: owl...@li... > > Message-ID: <489...@gm...> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > Thanks! Matthew. > > > > I am trying to compare loading time with other tools, they all use > > triples. I am very happy that the design of OWL API is based on > axioms. > > > > Chuming > > > > Matthew Horridge wrote: > > > Hi Chumming, > > > > > > > > >> Can I use OWL API to calculate how many triples I have in an > > >> ontology? I > > >> notice that OWLMetric is counting numbers in terms of axioms not > > >> triples. > > >> > > > > > > This is because the OWL API is based on axioms and not triples. > > > Depending on how your ontology is serialised in RDF the number of > > > triples could vary for the same ontology. There is however a > method > > > called getNumberOfTriplesProcessedDuringLoading on the > > > RDFXMLOntologyFormat which you could use if you really have to. > You > > > need to get the ontology format from the manager and check if > it's an > > > RDFXMLOntologyFormat - if it is cast it. > > > > > > Cheers, > > > > > > Matthew > > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > > > Build the coolest Linux based applications with Moblin SDK & win > great prizes > > > Grand prize is a trip for two to an Open Source event anywhere > in the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > Owlapi-developer mailing list > > > Owl...@li... > > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > > > > > > > > > > > > > > > ------------------------------ > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win > great prizes > > Grand prize is a trip for two to an Open Source event anywhere in > the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > ------------------------------ > > > > _______________________________________________ > > Owlapi-developer mailing list > > Owl...@li... > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > > > > > End of Owlapi-developer Digest, Vol 17, Issue 37 > > ************************************************ > > “七件武器,七种完美” 立刻体验! > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer |