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 OntModelOntModelFactory.createModel()Creates a fresh in-memory Ontology RDF Model with default personalities.static OntModelOntModelFactory.createModel(String uri, GraphRepository repository) Creates Ontology Model associated withOntSpecification.OWL2_DL_MEM_BUILTIN_RDFS_INFspec.static OntModelOntModelFactory.createModel(org.apache.jena.graph.Graph graph) Creates an Ontology RDF Model wrapper around the given graph with default personalities.static OntModelOntModelFactory.createModel(org.apache.jena.graph.Graph graph, OntPersonality personality) Creates an Ontology RDF Model wrapper around the given graph with given personalities.static OntModelOntModelFactory.createModel(org.apache.jena.graph.Graph graph, OntPersonality personality, org.apache.jena.reasoner.Reasoner reasoner) Creates anOntology Modelwhich isInference Model.static OntModelOntModelFactory.createModel(org.apache.jena.graph.Graph graph, OntSpecification spec) Creates an Ontology Model according to the specified specification.static OntModelOntModelFactory.createModel(org.apache.jena.graph.Graph graph, OntSpecification spec, GraphRepository repository) Creates an Ontology Model according to the specified specification.static OntModelOntModelFactory.createModel(OntSpecification spec) Creates an Ontology Model according to the specified specification.static OntModelOntModelFactory.createModel(OntSpecification spec, GraphRepository repository) Creates an anonymous Ontology Model according to the specified specification.static OntModelOntModelFactory.getModelOrNull(String uri, OntSpecification spec, GraphRepository repository) static OntModelOntModelFactory.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 OntEnhGraphOntEnhGraph.asPersonalityModel(OntModel graph) Represents the givenOnt[Graph]Modelas aOntEnhGraph. -
Uses of OntModel in org.apache.jena.ontapi.impl
Classes in org.apache.jena.ontapi.impl that implement OntModelModifier and TypeClassDescriptionclassImplementation 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) FiltersOntIndividuals 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 voidOntGraphModelImpl.checkFeature(OntModel m, OntModelControls setting, String featureName) static booleanOntGraphModelImpl.configValue(OntModel m, OntModelControls setting) booleanOntGraphModelImpl.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:importsection and to the graph hierarchy.OntStatement.getModel()Gets theOntology RDF ModelthisStatementwas created in.OntModel.removeImport(String uri) Removes the import (bothowl:importdeclaration and the corresponding graph) by the given uri if it is found.OntModel.removeImport(OntModel m) Removes a sub-model fromowl:importand from the graph hierarchy.OntModel.removeOntObject(OntObject obj) Removes the givenOntology Objectfrom the graph-model including itscontentand 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:importreference inside the base graph.Methods in org.apache.jena.ontapi.model with parameters of type OntModelModifier and TypeMethodDescriptionAdds a sub-model both to theowl:importsection and to the graph hierarchy.booleanAnswerstrueif the given model is present in theowl:importsof this model.OntModel.removeImport(OntModel m) Removes a sub-model fromowl:importand 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 OntConfigGets 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 giventypethat 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 OntStatementOntModels.toOntStatement(org.apache.jena.graph.Triple triple, OntModel model)