419420421422423424425
else { // Nothing we can do here. We can't get a physical URI to load // the ontology from. throw new PhysicalURIMappingNotFoundException(ontologyURI); } return loadOntology(ontologyURI, new PhysicalURIInputSource(physicalURI)); }
425426427428429430431
} public OWLOntology loadOntologyFromPhysicalURI(URI uri) throws OWLOntologyCreationException { // Ontology URI not known in advance return loadOntology(null, new PhysicalURIInputSource(uri)); }
82838485868788
} private OWLOntologyInputSource getInputSource(String fileURI) { if( fileURI.endsWith( ".n3" ) ) return convertN3( fileURI ); return new PhysicalURIInputSource( URI.create( fileURI ) ); }