Hi May I know what is the best way to get the URI of an ontology. I have looked at this page creating-ontology-models <https://jena.apache.org/documentation/ontology/#creating-ontology-models> and this page OntDocumentManager <https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/ontology/OntDocumentManager.html#addModel-java.lang.String-org.apache.jena.rdf.model.Model-boolean-> but can't seem to figure out.
The problem is that, in my application, the user will input a URI, for e.g. "https://www.w3.org/2002/07/owl#", I use Jena Ontology API to import the ontology from this URL. However, the actual URI of the ontology is "http://www.w3.org/2002/07/owl#" (it is HTTP and not HTTPS). Even worse, the OWL specifies an import " http://www.w3.org/2000/01/rdf-schema" but the URI of RDFS is " http://www.w3.org/2000/01/rdf-schema#" How do I get the URI of the ontology regardless of the URL where the ontology is resolved from? Do I need to query the imported model for the tripple "?s a owl:Ontology" to find out or Jena has some built-in function for this? Thank you Best Regards -- Alex To PhD Candidate School of Information Technologies Knowledge Discovery and Management Research Group Faculty of Engineering & IT THE UNIVERSITY OF SYDNEY | NSW | 2006 Desk 4e69 | Building J12| 1 Cleveland Street M. +61423330656 -- Alex To PhD Candidate School of Information Technologies Knowledge Discovery and Management Research Group Faculty of Engineering & IT THE UNIVERSITY OF SYDNEY | NSW | 2006 Desk 4e69 | Building J12| 1 Cleveland Street M. +61423330656 <javascript:void(0);>
