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 the
org.apache.jena.ontology package. |
org.apache.jena.rdf.model |
A package for creating and manipulating RDF graphs.
|
Modifier and Type | Method and Description |
---|---|
OntModel |
OntModel.getImportedModel(String uri)
Answer an
OntModel representing the imported ontology
with the given URI. |
OntModel |
OntResource.getOntModel()
Answer the model that this resource is attached to, assuming that it
is an
OntModel . |
OntModel |
OntDocumentManager.getOntology(String uri,
OntModelSpec spec)
Answer the ontology model that results from loading the document with the
given URI.
|
Modifier and Type | Method and Description |
---|---|
ExtendedIterator<OntModel> |
OntModel.listImportedModels()
Deprecated.
This method has been re-named to
listSubModels ,
but note that to obtain the same behaviour as listImportedModels
from Jena 2.4 and earlier, callers should invoke listSubModels(boolean)
with parameter true . |
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.
|
Modifier and Type | Method and 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,
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 List<OntClass> |
OntTools.namedHierarchyRoots(OntModel m)
Answer a list of the named hierarchy roots of a given
OntModel . |
void |
OntDocumentManager.unloadImport(OntModel model,
String uri)
Remove from the given model the import denoted by the given URI.
|
Modifier and Type | Class and Description |
---|---|
class |
OntModelImpl
Implementation of a model that can process general ontologies in OWL
and similar languages.
|
Modifier and Type | Method and Description |
---|---|
OntModel |
OntModelImpl.getImportedModel(String uri)
Answer an
OntModel representing the imported ontology
with the given URI. |
OntModel |
OntResourceImpl.getOntModel()
Answer the model that this resource is attached to, assuming that it
is an
OntModel . |
Modifier and Type | Method and Description |
---|---|
ExtendedIterator<OntModel> |
OntModelImpl.listImportedModels()
Deprecated.
This method has been re-named to
listSubModels ,
but note that to obtain the same behaviour as listImportedModels
from Jena 2.4 and earlier, callers should invoke OntModelImpl.listSubModels(boolean)
with parameter true . |
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.
|
Modifier and Type | Method and 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(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).
|
static OntModel |
ModelFactory.createOntologyModel(String languageURI)
Answer a new ontology model which will process in-memory models of
ontologies in the given language.
|
Licenced under the Apache License, Version 2.0