python: parse owl file in manchester syntax to owlready

840 Views Asked by At

Is it possible to parse an ontology given in manchester syntax such that it ends up as an owlready ontology-object.

This is what I found out so far:

  • Owlready itself can only import "NTriples, RDF/XML or OWL/XML format" (ref1).

  • Ontospy can (among other things) convert between these formats: ['xml', 'turtle', 'n3', 'nt', 'trix', 'rdfa'] (ref2).

  • rdflib has a function rdflib.extras.infixowl.manchesterSyntax(...) but which seems not to be documented very well and seems not to be applicable to a whole file (or str with several statements).

Is there any othter project I am missing, or is there an easy way to combine (someOf) these projects to parse an owl file in manchester syntax to an owlready ontology?

0

There are 0 best solutions below