Could not parse Turtle ontology Protege

1.4k Views Asked by At

I'm trying to open an owl ontology with Protege on a CentOS 7 machine, and I receive the following error from the OWLXMLParser when I do so :

org.xml.sax.SAXParseException; systemId: file:/home/michael/workspace/SexOffenderETL/sexoffenderetl/sexo-ontology2.owl; lineNumber: 299; columnNumber: 3; XML document structures must start and end within the same entity.

I was originally using a .ttl version of this ontology, but converted it to a .owl at my team lead's recommendation. What can I do to remedy this error?

2

There are 2 best solutions below

0
On

The SAX error you report mentions mismatched tags. This seems to indicate the XML is syntactically incorrect.

Is the XML available online for us to check? If not, you'll need to verifying the XML syntax with some XML tools on your local machine.

0
On

The reason for this error is you made a mistake when designing your ontology,epecially dot (.) And othe symbols lead to this error.so, It can be corrected easily by viewing the Line number that displayed in the the dialog box menu Owl /turtle parser. Then open your ontology file in Notepad++ to locate the line number and check your sytax in that line number.