Manchester syntax and importing ontologies without header

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manchester syntax and importing ontologies without header

Petr Křemen
Folks,

I have an ontology document in Manchester syntax:

Prefix: : <http://ex.owl/>
Prefix: rdfs: <http://www.w3.org/2000/01/rdf-schema#>
Ontology: <http://ex.owl/o3> <http://ex.owl/o3-v1>
   Import: <http://ex.owl/o4>
#  Import: <http://ex.owl/o5>
   Annotations: rdfs:comment "An example ontology"@en,
                :creator :John
   AnnotationProperty: :creator
   Class: :Person
   Individual: :John

where o4 is resolved to a Manchester syntax document (i.e. with
Ontology: header), while o5 is resolved to a Turtle document (OWL-DL
backward compatible without Ontology declaration)

The above ontology o3 parses successfully, but uncommenting the import
for o5 makes it unparsable with the NPE below. Making the same
experiment with Turtle version of o3 works for both commented and
uncommented o5.

Tested on Protege 4.3

Any suggestion ?

Cheers,
Petr

====
NullPointerException: null
org.coode.owlapi.manchesterowlsyntax.ManchesterOWLSyntaxEditorParser.parseOntology(ManchesterOWLSyntaxEditorParser.java:2869)
org.coode.owlapi.manchesterowlsyntax.ManchesterOWLSyntaxOntologyParser.parse(ManchesterOWLSyntaxOntologyParser.java:125)
uk.ac.manchester.cs.owl.owlapi.ParsableOWLOntologyFactory.loadOWLOntology(ParsableOWLOntologyFactory.java:206)
uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:906)
uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:843)
org.protege.editor.owl.model.OWLModelManagerImpl.loadOntologyFromPhysicalURI(OWLModelManagerImpl.java:313)

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user