java - Loading a RDF/XML File using owl api -
i'm trying open rdf/xml file using owl api. file accessible from:
http://www.dmi.unict.it/~longo/comunect/comunect.owl
if download file , seek open loadontologyfromontologydocument(file file) of owlontologymanager class. obtain next error:
org.semanticweb.owlapi.io.unparsableontologyexception: problem parsing file:/c:/myfile.owl not parse ontology. either suitable parser not found, or parsing failed. see parser logs below explanation. next parsers tried: 1) rdfxmlparser 2) owlxmlparser 3) owlfunctionalsyntaxowlparser 4) turtleontologyparser 5) krss2owlparser 6) manchesterowlsyntaxontologyparser 7) oboformatowlapiparser 8) owlobo12parser parser: rdfxmlparser org.xml.sax.saxparseexception; systemid: file:/c:/myfile.owl; linenumber: 1; columnnumber: 1; content not allowed in prolog.
now, since can open file protege, why can't parse ontology owl api library ? give thanks you.
java owl owl-api
No comments:
Post a Comment