Re: Jena parse error message: Content is not allowed in prolog.

Timothy Redmond <[email protected]>
Newsgroups gmane.comp.misc.ontology.protege.general
Message-ID <[email protected]>
> The ontology built is on the protege 4.2, which can be opened again 
> successfully if it saved as RDF\XML, however, there is an error 
> arising when open the *.ttl if the ontology saved as Turtle. The error 
> is as follows:

In the error screen you need to click on the TurtleOntologyParser tab.  
There you will see a more usable error message.

This has to do with how the OWL api detects the file type.  It does not 
use the broken scheme of simply trusting the extension. It tries every 
parser to find one that works.  This is pretty efficient because the 
wrong parsers break pretty quickly.  When none of the parsers work you 
see a tabbed screen with all the different types of errors.  RDF/XML 
errors are up front by default because this is the most used ontology 
format.

-Timothy



On 07/04/2012 07:02 AM, Wentao Zhou wrote:
> Hi guys,
> The ontology built is on the protege 4.2, which can be opened again 
> successfully if it saved as RDF\XML, however, there is an error 
> arising when open the *.ttl if the ontology saved as Turtle. The error 
> is as follows:
> Jena parse error message: Content is not allowed in prolog.
>  Exception class org.xml.sax.SAXParseException.  Message: Content is 
> not allowed in prolog.
> There are, I think, many possible reasons could led to such error, but 
> in this case, I have not figured out yet which and where the reason 
> is. Anyone who could give me a hint?
> Any reply are highly appreciated.
> Bests,
> Wentao
>
>
> _______________________________________________
> protege-discussion mailing list
> [email protected]
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.