Uses of Interface
org.apache.jena.ontology.OntModel
-
Packages that use OntModel Package Description org.apache.jena.ontology Provides a set of abstractions and convenience classes for accessing and manipluating ontologies represented in RDF.org.apache.jena.ontology.impl Provides default implementations for the abstractions defined in theorg.apache.jena.ontology
package.org.apache.jena.rdf.model A package for creating and manipulating RDF graphs. -
-
Uses of OntModel in org.apache.jena.ontology
Methods in org.apache.jena.ontology that return OntModel Modifier and Type Method Description OntModel
OntModel. getImportedModel(java.lang.String uri)
Answer anOntModel
representing the imported ontology with the given URI.OntModel
OntResource. getOntModel()
Answer the model that this resource is attached to, assuming that it is anOntModel
.OntModel
OntDocumentManager. getOntology(java.lang.String uri, OntModelSpec spec)
Answer the ontology model that results from loading the document with the given URI.Methods in org.apache.jena.ontology that return types with arguments of type OntModel Modifier and Type Method Description ExtendedIterator<OntModel>
OntModel. listImportedModels()
Deprecated.This method has been re-named tolistSubModels
, but note that to obtain the same behaviour aslistImportedModels
from Jena 2.4 and earlier, callers should invokelistSubModels(boolean)
with parametertrue
.ExtendedIterator<OntModel>
OntModel. listSubModels()
Answer an iterator over the ontology models that are sub-models of this model.ExtendedIterator<OntModel>
OntModel. listSubModels(boolean withImports)
Answer an iterator over the ontology models that are sub-models of this model.Methods in org.apache.jena.ontology with parameters of type OntModel Modifier and Type Method Description static OntClass
OntTools. getLCA(OntModel m, OntClass u, OntClass v)
Answer the lowest common ancestor of two classes in a given ontology.static OntClass
OntTools. getLCA(OntModel m, OntClass root, OntClass u, OntClass v)
Answer the lowest common ancestor of two classes, assuming that the given class is the root concept to start searching from.void
OntDocumentManager. loadImport(OntModel model, java.lang.String uri)
Add the given model from the given URI as an import to the given model.void
OntDocumentManager. loadImports(OntModel model)
Inspect the statements in the graph expressed by the given model, and load into the model any imported documents.static java.util.List<OntClass>
OntTools. namedHierarchyRoots(OntModel m)
Answer a list of the named hierarchy roots of a givenOntModel
.void
OntDocumentManager. unloadImport(OntModel model, java.lang.String uri)
Remove from the given model the import denoted by the given URI. -
Uses of OntModel in org.apache.jena.ontology.impl
Classes in org.apache.jena.ontology.impl that implement OntModel Modifier and Type Class Description class
OntModelImpl
Implementation of a model that can process general ontologies in OWL and similar languages.Methods in org.apache.jena.ontology.impl that return OntModel Modifier and Type Method Description OntModel
OntModelImpl. getImportedModel(java.lang.String uri)
Answer anOntModel
representing the imported ontology with the given URI.OntModel
OntResourceImpl. getOntModel()
Answer the model that this resource is attached to, assuming that it is anOntModel
.Methods in org.apache.jena.ontology.impl that return types with arguments of type OntModel Modifier and Type Method Description ExtendedIterator<OntModel>
OntModelImpl. listImportedModels()
Deprecated.This method has been re-named tolistSubModels
, but note that to obtain the same behaviour aslistImportedModels
from Jena 2.4 and earlier, callers should invokeOntModelImpl.listSubModels(boolean)
with parametertrue
.ExtendedIterator<OntModel>
OntModelImpl. listSubModels()
Answer an iterator over the ontology models that are sub-models of this model.ExtendedIterator<OntModel>
OntModelImpl. listSubModels(boolean withImports)
Answer an iterator over the ontology models that are sub-models of this model. -
Uses of OntModel in org.apache.jena.rdf.model
Methods in org.apache.jena.rdf.model that return OntModel Modifier and Type Method Description static OntModel
ModelFactory. createOntologyModel()
Answer a new ontology model which will process in-memory models of ontologies expressed the default ontology language (OWL).static OntModel
ModelFactory. createOntologyModel(java.lang.String languageURI)
Answer a new ontology model which will process in-memory models of ontologies in the given language.static OntModel
ModelFactory. createOntologyModel(OntModelSpec spec)
Answer a new ontology model constructed according to the specification, which includes a ModelMaker which will create the necessary base model.static OntModel
ModelFactory. createOntologyModel(OntModelSpec spec, Model base)
Answer a new ontology model, constructed according to the given ontology model specification, and starting with the ontology data in the given model.static OntModel
ModelFactory. createOntologyModel(OntModelSpec spec, ModelMaker maker, Model base)
Answer a new ontology model which will process in-memory models of ontologies expressed the default ontology language (OWL).
-