Mark, ontologies usually have URIs, but Models don't (named graphs come close, but that's in triplestores). As Model is just a set of statements, there might be multiple ontologies in one Model. You can list ontologies in OntModel: http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/ontology/OntModel.html#listOntologies()
Martynas On Wed, Feb 6, 2013 at 10:07 PM, Mark Fischer <[email protected]> wrote: > For the moment, I'm creating Ontologies using Protege and then doing some > analysis using Jena. > Protege gives an ontology an IRI, so I thought I may label my results that > way. > > If you're right though, and an OWL ontology need not have an IRI, then I'll > just label them some other way. > Not a big deal. > > -- > Mark Fischer > > > On Wed, Feb 6, 2013 at 12:41 PM, Joshua TAYLOR <[email protected]>wrote: > >> On Wed, Feb 6, 2013 at 12:33 PM, Mark Fischer <[email protected]> >> wrote: >> > I can't figure out how to get a Model's URI. Right now I've been assuming >> > that model.getNsPrefixURI(""); will return a model's baseURI. This is, by >> > no means, necessarily the case (works for now). >> > >> > There must be something simple I'm missing here. >> >> I could be mistaken, but: A Model doesn't have a URI; it's >> (essentially) just a collection of triples. An OntModel might have an >> ontology object that has a useful ontology IRI, but that's not >> necessary present either. >> >> What would you use a Model's URI for if it had one and you could get it? >> >> //JT >> >> -- >> Joshua Taylor, http://www.cs.rpi.edu/~tayloj/ >>
