From: Ignazio P. <ipa...@gm...> - 2017-04-26 20:58:52
|
On 26 April 2017 at 21:04, Benjamin Alt <ben...@ou...> wrote: > Hi OWLAPI developers, > > I am struggling with a strange issue: I want to load an ontology in Java > (see code below and attachments) from a file into an OWLOntology object. > When I run the main method of my OntologyImporter class (from inside > IntelliJ, again see the attachment), everything works and the ontology is > successfully loaded. > But when I package it into a jar using Gradle and > including all dependencies, I suspect the issue is hiding behind this sentence. When you package all dependencies together, which dependencies are you exactly referring to? OWLAPI has the parsers and storers lists built using ServiceLoader - this looks up the implementations of specific interfaces using files in the META-INF folder. owlapi-distribution collects these files from the parsers and rio modules and concatenates them; but if you're repackaging these modules together, you might end up with only part of the files - I suspect in this case that you're ending up with only the content of the rio list of implementations. Workaround: do not repackage all dependencies from the owlapi group; you only need owlapi-distribution from that group, as it already repackages all OWLAPI modules (or, equivalently, owlapi-osgidistribution). Cheers, I. > I get an UnparsableOntologyException for the > same ontology. The ontology is in RDF XML format, but it looks like the Jar > only finds Rio parsers, not the RDFXML ones (which must have been found when > running the main "regularly", i.e. unjarred). Do you know why this happens > and how I can fix it? > > Here is my very minimal code to load the Ontology: > > public static OWLOntology loadOntology(String filename) throws > OWLOntologyCreationException { > OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); > return manager.loadOntologyFromOntologyDocument(new File(filename)); > } > > For the Java source, ontology, gradle build script, see the attachments or > this minimal zipped IntelliJ IDEA project: > https://drive.google.com/open?id=0B10MbhsMWfrydVNKZVJ0QVg1NlE. The resulting > jar can be found here: > https://drive.google.com/open?id=0B10MbhsMWfrybjJIcDNWd0JFMUk. > > I would really appreciate your help! > > Thank you, > Benjamin > > PS: Here is the exception stack trace: > > Exception in thread "main" > org.semanticweb.owlapi.io.UnparsableOntologyException: Problem parsing > file:/C:/Users/bal/Desktop/Projects/artiminds/example/file:/C:/Users/bal/Desktop/Projects/artiminds/example/build/libs/example-all-0.1.0-SNAPSHOT.jar!/com/example/ontology/pizza.owl > Could not parse ontology. Either a suitable parser could not be found, or > parsing failed. See parser logs below for explanation. > The following parsers were tried: > 1) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RioTurtleDocumentFormatFactory@95fd655c > 2) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.NQuadsDocumentFormatFactory@6f9c39ad > 3) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RDFJsonDocumentFormatFactory@cd748dc3 > 4) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.NTriplesDocumentFormatFactory@937ecd36 > 5) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.TrigDocumentFormatFactory@27e81c > 6) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RDFJsonLDDocumentFormatFactory@dcacc47d > 7) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.N3DocumentFormatFactory@9a5 > 8) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RioRDFXMLDocumentFormatFactory@69b9a3bc > 9) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.TrixDocumentFormatFactory@27e82d > 10) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.BinaryRDFDocumentFormatFactory@3bf24493 > 11) org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RDFaDocumentFormatFactory@264e8d > > > Detailed logs: > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RioTurtleDocumentFormatFactory@95fd655c > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object Turtle (mimeTypes=text/turtle, application/x-turtle; ext=ttl) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object Turtle (mimeTypes=text/turtle, > application/x-turtle; ext=ttl) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.NQuadsDocumentFormatFactory@6f9c39ad > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object N-Quads (mimeTypes=application/n-quads, text/x-nquads, > text/nquads; ext=nq) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object N-Quads (mimeTypes=application/n-quads, > text/x-nquads, text/nquads; ext=nq) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RDFJsonDocumentFormatFactory@cd748dc3 > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object RDF/JSON (mimeTypes=application/rdf+json; ext=rj) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object RDF/JSON > (mimeTypes=application/rdf+json; ext=rj) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.NTriplesDocumentFormatFactory@937ecd36 > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object N-Triples (mimeTypes=application/n-triples, text/plain; > ext=nt) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object N-Triples > (mimeTypes=application/n-triples, text/plain; ext=nt) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.TrigDocumentFormatFactory@27e81c > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object TriG (mimeTypes=application/trig, application/x-trig; > ext=trig) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object TriG (mimeTypes=application/trig, > application/x-trig; ext=trig) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RDFJsonLDDocumentFormatFactory@dcacc47d > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object JSON-LD (mimeTypes=application/ld+json; ext=jsonld) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object JSON-LD (mimeTypes=application/ld+json; > ext=jsonld) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.N3DocumentFormatFactory@9a5 > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object N3 (mimeTypes=text/n3, text/rdf+n3; ext=n3) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object N3 (mimeTypes=text/n3, text/rdf+n3; > ext=n3) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RioRDFXMLDocumentFormatFactory@69b9a3bc > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object RDF/XML (mimeTypes=application/rdf+xml, application/xml, > text/xml; ext=rdf, rdfs, owl, xml) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object RDF/XML (mimeTypes=application/rdf+xml, > application/xml, text/xml; ext=rdf, rdfs, owl, xml) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.TrixDocumentFormatFactory@27e82d > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object TriX (mimeTypes=application/trix; ext=xml, trix) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object TriX (mimeTypes=application/trix; > ext=xml, trix) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.BinaryRDFDocumentFormatFactory@3bf24493 > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object BinaryRDF (mimeTypes=application/x-binary-rdf; ext=brf) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object BinaryRDF > (mimeTypes=application/x-binary-rdf; ext=brf) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > -------------------------------------------------------------------------------- > Parser: org.semanticweb.owlapi.rio.RioParserImpl : > org.semanticweb.owlapi.formats.RDFaDocumentFormatFactory@264e8d > Stack trace: > org.eclipse.rdf4j.rio.UnsupportedRDFormatException: Did not recognise RDF > format object RDFa (mimeTypes=application/xhtml+xml, application/html, > text/html; ext=xhtml, html) > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:138) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > Did not recognise RDF format object RDFa (mimeTypes=application/xhtml+xml, > application/html, text/html; ext=xhtml, html) > org.eclipse.rdf4j.rio.Rio.lambda$unsupportedFormat$0(Rio.java:568) > java.util.Optional.orElseThrow(Optional.java:290) > org.eclipse.rdf4j.rio.Rio.createParser(Rio.java:100) > > org.semanticweb.owlapi.rio.RioParserImpl.parseDocumentSource(RioParserImpl.java:164) > > org.semanticweb.owlapi.rio.RioParserImpl.parse(RioParserImpl.java:125) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:188) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > > > > at > uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:229) > at > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:1072) > at > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1033) > at > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:982) > at > uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:995) > at > com.example.ontology.OntologyImporter.loadOntology(OntologyImporter.java:13) > at com.example.ontology.OntologyImporter.main(OntologyImporter.java:17) > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > |