Omojolinho
Omojolinho

Reputation: 11

Error message while loading ontology

I get this error message : Exception in thread "AWT-EventQueue-0" org.apache.jena.riot.RiotException: [line: 1, col: 1 ] Content is not allowed in prolog. when i try to load my local ontology file in java through netbeans? Please what does this mean and how can I go about it?

Upvotes: 1

Views: 220

Answers (1)

Ignazio
Ignazio

Reputation: 10659

[line: 1, col: 1 ] Content is not allowed in prolog

That's the hallmark of an XML parser encountering a non-XML (or malformed) file.

If your input is an XML file, make sure it starts with

<?xml version="1.0"

with no other characters in front of the <.

This might also be the case for an imported ontology.

Note: NetBeans or any other IDE are not relevant to this issue.

Upvotes: 4

Related Questions