Uses of Interface
org.apache.jena.ontology.OntModel
Package
Description
Provides a set of abstractions and convenience classes for accessing and manipluating ontologies
represented in RDF.
Provides default implementations for the abstractions defined in the
org.apache.jena.ontology
package.A package for creating and manipulating RDF graphs.
-
Uses of OntModel in org.apache.jena.ontology
Modifier and TypeMethodDescriptionOntModel.getImportedModel
(String uri) Answer anOntModel
representing the imported ontology with the given URI.OntResource.getOntModel()
Answer the model that this resource is attached to, assuming that it is anOntModel
.OntDocumentManager.getOntology
(String uri, OntModelSpec spec) Answer the ontology model that results from loading the document with the given URI.Modifier and TypeMethodDescriptionOntModel.listSubModels()
Answer an iterator over the ontology models that are sub-models of this model.OntModel.listSubModels
(boolean withImports) Answer an iterator over the ontology models that are sub-models of this model.Modifier and TypeMethodDescriptionstatic OntClass
Answer the lowest common ancestor of two classes in a given ontology.static OntClass
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, 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.OntTools.namedHierarchyRoots
(OntModel m) Answer a list of the named hierarchy roots of a givenOntModel
.void
OntDocumentManager.unloadImport
(OntModel model, String uri) Remove from the given model the import denoted by the given URI. -
Uses of OntModel in org.apache.jena.ontology.impl
Modifier and TypeClassDescriptionclass
Implementation of a model that can process general ontologies in OWL and similar languages.Modifier and TypeMethodDescriptionOntModelImpl.getImportedModel
(String uri) Answer anOntModel
representing the imported ontology with the given URI.OntResourceImpl.getOntModel()
Answer the model that this resource is attached to, assuming that it is anOntModel
.Modifier and TypeMethodDescriptionOntModelImpl.listSubModels()
Answer an iterator over the ontology models that are sub-models of this model.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
Modifier and TypeMethodDescriptionstatic 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
(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, ModelMaker maker, Model base) Answer a new ontology model which will process in-memory models of ontologies expressed the default ontology language (OWL).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.