I'm trying to improve a written application which is using OWL-API and 
File-System (Since OWL API can only support file system). I want to replace 
this file system with database then I decided to use Jena API. 


Is it possible to use the output of Jena Model in OWL API?

If it is not possible then how can I get an OntModel out of Model. I want to 
use OntModel.getAnnotationProperty().

Thank you, 



----- Original Message -----
From: Dave Reynolds <[email protected]>
To: [email protected]
Cc: 
Sent: Tuesday, February 12, 2013 11:28 AM
Subject: Re: Axiom

Jena does not provide an "axiom" view of OWL directly equivalent to that 
of the OWL API. If that's what you need then use the OWL API.

Jena underneath works in terms of RDF and then provides a convenience 
wrapper in the form of the OntAPI. That allows you do things like list 
classes and instances, find and pull apart restrictions etc. But it does 
not have a single underlying notion of a logical axiom.

The details of the OntAPI are all on:
http://jena.apache.org/documentation/ontology/index.html

Dave

On 12/02/13 09:21, Saeed wrote:
> Hello,
>
> I have a question;
> I would appreciate if someone helps me.
>
> I’m using
> SDB and MySQL as tripe store in my application. I have already loaded 
> pizza.owl
> [1] into database and when I’m connecting to database everything works fine.
>
> SDBConnection conn = newSDBConnection(jdbcConnection) ;
> Store store = StoreFactory.create(storeDesc,
> conn) ;
> Model model = SDBFactory.connectDefaultModel(store)
> ;
>
> How can I
> get all Axioms out of this Model?
>
> To make my
> question more clear here is what I mean in OWL API code:
>
> OWLOntologyManager man =
> OWLManager.createOWLOntologyManager();
> OWLOntology ont =
> man.loadOntology(IRI.create(filename));
> Set<OWLLogicalAxiom>
> logicalAxioms = ont.getLogicalAxioms();
>
> I would like to have all
> Axioms out of Model in Jena API.
>
> Thank you for your help.
> Saeed,
>
> [1] http://www.co-ode.org/ontologies/pizza/pizza.owl
>

Reply via email to