Is there a way to use owlready2 with imported ontologies of non RDF/XML, OWL/XML, NTriples format?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to use owlready2 with imported ontologies of non RDF/XML, OWL/XML, NTriples format?

bdimitriadis
Hi. This is a great library.
Since I am a "newcomer" to it, I was wondering, whether there is a way to use owlready2 somehow, in order to get/parse (get_ontology) an owl/xml ontology, which imports ontologies of non RDF/XML, OWL/XML, NTriples format (e.g. <Import>http://purl.org/mp</Import>).

Thank you in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to use owlready2 with imported ontologies of non RDF/XML, OWL/XML, NTriples format?

Jiba
Administrator
Hi,

In your situation, the usual tricks consists in:

 1) translating manually the imported ontology in a format that Owlready can read (for example, you may use Protege to save it in RDF/XML)

 2) put the resulting file in a local cache directory (you may also add some local copy of the other ontologies)

 3) add the local cache directory in the global list  onto_path.

Owlready will load the local copy in onto_path, rather than downloading the ontology from the Internet.

Best regards,
Jiba
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to use owlready2 with imported ontologies of non RDF/XML, OWL/XML, NTriples format?

bdimitriadis
Thank you for your reply, I will try that.

Best regards,
Vlasis