Uses of Interface
org.apache.jena.ontapi.model.OntModel
Packages that use OntModel
Package
Description
-
Uses of OntModel in org.apache.jena.ontapi
Methods in org.apache.jena.ontapi that return OntModelModifier and TypeMethodDescriptionstatic OntModel
OntModelFactory.createModel()
Creates a fresh in-memory Ontology RDF Model with default personalities.static OntModel
OntModelFactory.createModel
(String uri, GraphRepository repository) Creates Ontology Model associated withOntSpecification.OWL2_DL_MEM_BUILTIN_RDFS_INF
spec.static OntModel
OntModelFactory.createModel
(org.apache.jena.graph.Graph graph) Creates an Ontology RDF Model wrapper around the given graph with default personalities.static OntModel
OntModelFactory.createModel
(org.apache.jena.graph.Graph graph, OntPersonality personality) Creates an Ontology RDF Model wrapper around the given graph with given personalities.static OntModel
OntModelFactory.createModel
(org.apache.jena.graph.Graph graph, OntPersonality personality, org.apache.jena.reasoner.Reasoner reasoner) Creates anOntology Model
which isInference Model
.static OntModel
OntModelFactory.createModel
(org.apache.jena.graph.Graph graph, OntSpecification spec) Creates an Ontology Model according to the specified specification.static OntModel
OntModelFactory.createModel
(org.apache.jena.graph.Graph graph, OntSpecification spec, GraphRepository repository) Creates an Ontology Model according to the specified specification.static OntModel
OntModelFactory.createModel
(OntSpecification spec) Creates an Ontology Model according to the specified specification.static OntModel
OntModelFactory.createModel
(OntSpecification spec, GraphRepository repository) Creates an anonymous Ontology Model according to the specified specification.static OntModel
OntModelFactory.getModelOrNull
(String uri, OntSpecification spec, GraphRepository repository) static OntModel
OntModelFactory.getModelOrNull
(org.apache.jena.graph.Node name, OntSpecification spec, GraphRepository repository) -
Uses of OntModel in org.apache.jena.ontapi.common
Methods in org.apache.jena.ontapi.common with parameters of type OntModelModifier and TypeMethodDescriptionstatic OntEnhGraph
OntEnhGraph.asPersonalityModel
(OntModel graph) Represents the givenOnt[Graph]Model
as aOntEnhGraph
. -
Uses of OntModel in org.apache.jena.ontapi.impl
Classes in org.apache.jena.ontapi.impl that implement OntModelModifier and TypeClassDescriptionclass
Implementation of a model that can process general ontologies in OWL and similar languages.Methods in org.apache.jena.ontapi.impl with type parameters of type OntModelModifier and TypeMethodDescriptionstatic <M extends OntModel & OntEnhGraph>
org.apache.jena.util.iterator.ExtendedIterator<OntIndividual>OntGraphModelImpl.listIndividuals
(M model, Set<String> reserved, org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> assertions) FiltersOntIndividual
s from the specifiedExtendedIterator
.Methods in org.apache.jena.ontapi.impl that return OntModelModifier and TypeMethodDescriptionOntGraphModelImpl.writeAll
(OutputStream out, String lang) OntGraphModelImpl.writeAll
(OutputStream out, String lang, String base) Methods in org.apache.jena.ontapi.impl that return types with arguments of type OntModelModifier and TypeMethodDescriptionOntGraphModelImpl.imports()
OntGraphModelImpl.imports
(OntPersonality personality) Lists all top-level sub-models built with the givenpersonality
.Methods in org.apache.jena.ontapi.impl with parameters of type OntModelModifier and TypeMethodDescriptionstatic void
OntGraphModelImpl.checkFeature
(OntModel m, OntModelControls setting, String featureName) static boolean
OntGraphModelImpl.configValue
(OntModel m, OntModelControls setting) boolean
OntGraphModelImpl.removeImport
(OntModel m) -
Uses of OntModel in org.apache.jena.ontapi.impl.objects
Constructors in org.apache.jena.ontapi.impl.objects with parameters of type OntModelModifierConstructorDescriptionOntStatementImpl
(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate, org.apache.jena.rdf.model.RDFNode object, OntModel model) -
Uses of OntModel in org.apache.jena.ontapi.model
Methods in org.apache.jena.ontapi.model that return OntModelModifier and TypeMethodDescriptionAdds a sub-model both to theowl:import
section and to the graph hierarchy.OntStatement.getModel()
Gets theOntology RDF Model
thisStatement
was created in.OntModel.removeImport
(String uri) Removes the import (bothowl:import
declaration and the corresponding graph) by the given uri if it is found.OntModel.removeImport
(OntModel m) Removes a sub-model fromowl:import
and from the graph hierarchy.OntModel.removeOntObject
(OntObject obj) Removes the givenOntology Object
from the graph-model including itscontent
and annotations.OntModel.removeOntStatement
(OntStatement statement) Removes the statement from the graph-model including its annotations with sub-annotations hierarchy.Methods in org.apache.jena.ontapi.model that return types with arguments of type OntModelModifier and TypeMethodDescriptionOntModel.imports()
Lists all sub-models that belong to the top-level hierarchy and haveowl:import
reference inside the base graph.Methods in org.apache.jena.ontapi.model with parameters of type OntModelModifier and TypeMethodDescriptionAdds a sub-model both to theowl:import
section and to the graph hierarchy.boolean
Answerstrue
if the given model is present in theowl:imports
of this model.OntModel.removeImport
(OntModel m) Removes a sub-model fromowl:import
and from the graph hierarchy. -
Uses of OntModel in org.apache.jena.ontapi.utils
Methods in org.apache.jena.ontapi.utils that return types with arguments of type OntModelModifier and TypeMethodDescriptionstatic org.apache.jena.util.iterator.ExtendedIterator<OntModel>
OntModels.listImports
(OntModel model) Lists all imported models from the given one.Methods in org.apache.jena.ontapi.utils with parameters of type OntModelModifier and TypeMethodDescriptionstatic OntConfig
Gets model's config.static org.apache.jena.util.iterator.ExtendedIterator<OntModel>
OntModels.listImports
(OntModel model) Lists all imported models from the given one.static org.apache.jena.util.iterator.ExtendedIterator<OntEntity>
OntModels.listLocalEntities
(OntModel model) Lists all OWL entities that are defined in the base graph.static <O extends OntObject>
org.apache.jena.util.iterator.ExtendedIterator<O>OntModels.listLocalObjects
(OntModel model, Class<? extends O> type) Lists all ontology objects with the giventype
that are defined in the base graph.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listLocalStatements
(OntModel model, org.apache.jena.rdf.model.Resource s, org.apache.jena.rdf.model.Property p, org.apache.jena.rdf.model.RDFNode o) Lists all model statements, which belong to the base graph, using the given SPO.static Stream<OntClass.Named>
OntModels.namedHierarchyRoots
(OntModel m) Answers a stream of the named hierarchy roots of a given OntModel.static OntStatement
OntModels.toOntStatement
(org.apache.jena.graph.Triple triple, OntModel model)