On Fri, 2011-06-03 at 14:40 +0200, Marco Seysse wrote:

> When I understood your answer rigth, I could for instance create an instance 
> of OntModel and pass it on to Pellet and Pellet would determine the OWL 
> sublanguage or to say it in conformance to OWL2 the OWL2 profile: 

To be fair I'm not up to speed on Pellet these days but it certainly
used to include a species checker which would allow you to test for  DL,
DL-lite. For details you'll need to look at the Pellet documentation.

> String testont = http://www.testontology.com/testontology.owl;
> 
> OntModel model = ModelFactory.createOntologyModel( 
> PelletReasonerFactory.THE_SPEC );  
> 
> model.read( testont );
> 
> Would this work independently of the  language/sublanguage/profile of the 
> loaded ontology (or even if the ontology would just be a rdf graph)?

Yes, for simply loading data you don't need to specify Pellet. You can
read any RDF graph (and thus also anything which uses RDFS or OWL
vocabulary) into a Jena Model or Jena OntModel.

Simply checking for mentions of particular vocabulary you can do without
a reasoner.

You only need Pellet or similar to do the species checking.

Dave

> 
> -----Ursprüngliche Nachricht-----
> Von: "Dave Reynolds" <[email protected]>
> Gesendet: 02.06.2011 21:59:09
> An: [email protected]
> Betreff: Re: investigating ontology type
> 
> On Thu, 2011-06-02 at 17:18 +0200, Marco Seysse wrote:
> > Dear Jena ontology,
> >
> > how can I get the type of an ontology one would like to import (RDF, RDF(S) 
> > and the three OWL sublanguages)?
> 
> The Jena component for species checking an OWL ontology is deprecated
> and was never updated to cope with OWL 2 profiles. I'd suggest using
> Pellet with jena, or look at separate online or downloadable tools like
> Protege.
> 
> Note that there's no such thing as an RDF ontology, any RDFS or OWL
> vocabulary is also an RDF graph. You can enumerate the properties in an
> RDF graph to see if any of the RDFS or OWL vocabulary are mentioned.
> 
> Dave
> 
> 
> 
> 
> 
> 
> ___________________________________________________________
> Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
> Toolbar eingebaut! http://produkte.web.de/go/toolbar


Reply via email to