org.semanticweb.owlapi.model.UnloadableImportException: Could not load imported ontology: <http://www.apr.org/entities> Cause: OWLOntologyCreationIOException: java.io.FileNotFoundException: http://apr.org/entities

GitHub | pjolep | 4 months ago
  1. 0

    Adding SimpleIRIMapper to manager before load ontology problem

    GitHub | 4 months ago | pjolep
    org.semanticweb.owlapi.model.UnloadableImportException: Could not load imported ontology: <http://www.apr.org/entities> Cause: OWLOntologyCreationIOException: java.io.FileNotFoundException: http://apr.org/entities

    Root Cause Analysis

    1. org.semanticweb.owlapi.io.OWLOntologyInputSourceException

      java.io.FileNotFoundException: http://apr.org/entities

      at org.semanticweb.owlapi.io.DocumentSources.getInputStream()
    2. org.semanticweb.owlapi
      RDFXMLParser.parse
      1. org.semanticweb.owlapi.io.DocumentSources.getInputStream(DocumentSources.java:161)
      2. org.semanticweb.owlapi.io.DocumentSources.wrapInput(DocumentSources.java:117)
      3. org.semanticweb.owlapi.io.DocumentSources.wrapInputAsReader(DocumentSources.java:75)
      4. org.semanticweb.owlapi.io.DocumentSources.wrapInputAsReader(DocumentSources.java:96)
      5. org.semanticweb.owlapi.io.AbstractOWLParser.getInputSource(AbstractOWLParser.java:38)
      6. org.semanticweb.owlapi.rdf.rdfxml.parser.RDFXMLParser.parse(RDFXMLParser.java:61)
      6 frames
    3. uk.ac.manchester
      OWLOntologyManagerImpl.makeLoadImportRequest
      1. uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:175)
      2. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:954)
      3. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:918)
      4. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:834)
      5. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadImports(OWLOntologyManagerImpl.java:1498)
      6. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.makeLoadImportRequest(OWLOntologyManagerImpl.java:1535)
      6 frames
    4. org.semanticweb.owlapi
      RDFParser.startElement
      1. org.semanticweb.owlapi.rdf.rdfxml.parser.TripleHandlers$TPImportsHandler.handleTriple(TripleHandlers.java:1448)
      2. org.semanticweb.owlapi.rdf.rdfxml.parser.TripleHandlers$HandlerAccessor.handleStreaming(TripleHandlers.java:176)
      3. org.semanticweb.owlapi.rdf.rdfxml.parser.OWLRDFConsumer.statementWithResourceValue(OWLRDFConsumer.java:1361)
      4. org.semanticweb.owlapi.rdf.rdfxml.parser.RDFParser.statementWithResourceValue(RDFParser.java:374)
      5. org.semanticweb.owlapi.rdf.rdfxml.parser.EmptyPropertyElement.startElement(StartRDF.java:230)
      6. org.semanticweb.owlapi.rdf.rdfxml.parser.PropertyElementList.startElement(StartRDF.java:658)
      7. org.semanticweb.owlapi.rdf.rdfxml.parser.RDFParser.startElement(RDFParser.java:210)
      7 frames
    5. Java RT
      SAXParserImpl.parse
      1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
      2. com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
      3. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:357)
      4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2787)
      5. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
      6. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
      7. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
      8. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
      9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
      10. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      11. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      12. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
      13. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
      13 frames
    6. org.semanticweb.owlapi
      RDFXMLParser.parse
      1. org.semanticweb.owlapi.rdf.rdfxml.parser.RDFParser.parse(RDFParser.java:148)
      2. org.semanticweb.owlapi.rdf.rdfxml.parser.RDFXMLParser.parse(RDFXMLParser.java:62)
      2 frames
    7. uk.ac.manchester
      OWLOntologyManagerImpl.loadOntologyFromOntologyDocument
      1. uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:175)
      2. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.load(OWLOntologyManagerImpl.java:954)
      3. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:918)
      4. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:867)
      5. uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:879)
      5 frames
    8. Unknown
      TestLoading$delayedInit$body.apply
      1. TestLoading$.delayedEndpoint$TestLoading$1(TestLoading.scala:24)
      2. TestLoading$delayedInit$body.apply(TestLoading.scala:17)
      2 frames
    9. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:34)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:76)
      4. scala.App$$anonfun$main$1.apply(App.scala:76)
      5. scala.collection.immutable.List.foreach(List.scala:381)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
      7. scala.App$class.main(App.scala:76)
      7 frames
    10. Unknown
      TestLoading.main
      1. TestLoading$.main(TestLoading.scala:17)
      2. TestLoading.main(TestLoading.scala)
      2 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames