Uses of Interface
org.apache.jena.ontapi.model.OntStatement
Packages that use OntStatement
Package
Description
-
Uses of OntStatement in org.apache.jena.ontapi.impl
Methods in org.apache.jena.ontapi.impl that return types with arguments of type OntStatementModifier and TypeMethodDescriptionorg.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntGraphModelImpl.listLocalStatements
(org.apache.jena.rdf.model.Resource s, org.apache.jena.rdf.model.Property p, org.apache.jena.rdf.model.RDFNode o) Lists all statements in the base model that match a pattern in the form ofExtended Iterator
.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntGraphModelImpl.listOntStatements
(org.apache.jena.rdf.model.Resource s, org.apache.jena.rdf.model.Property p, org.apache.jena.rdf.model.RDFNode o) Returns anextended iterator
over all the statements in the model that match a pattern.OntGraphModelImpl.localStatements
(org.apache.jena.rdf.model.Resource s, org.apache.jena.rdf.model.Property p, org.apache.jena.rdf.model.RDFNode o) OntGraphModelImpl.statements()
OntGraphModelImpl.statements
(org.apache.jena.rdf.model.Resource s, org.apache.jena.rdf.model.Property p, org.apache.jena.rdf.model.RDFNode o) Methods in org.apache.jena.ontapi.impl with parameters of type OntStatement -
Uses of OntStatement in org.apache.jena.ontapi.impl.objects
Classes in org.apache.jena.ontapi.impl.objects that implement OntStatementMethods in org.apache.jena.ontapi.impl.objects that return OntStatementModifier and TypeMethodDescriptionOntAnnotationImpl.addAnnotation
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) OntObjectImpl.addAnnotation
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) Adds an annotation assertion.OntStatementImpl.addAnnotation
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) OntObjectPropertyImpl.addAsymmetricDeclaration()
OntIndividualImpl.addDifferentFromStatement
(OntIndividual other) static <X extends OntRelationalProperty>
OntStatementOntPropertyImpl.addDisjointWith
(OntGraphModelImpl m, X property, X other) static OntStatement
OntClassImpl.addDisjointWithStatement
(OntGraphModelImpl m, OntClass clazz, OntClass other) OntClassImpl.addDisjointWithStatement
(OntClass other) OntSimpleClassImpl.addDisjointWithStatement
(OntClass other) OntAnnotationPropertyImpl.addDomainStatement
(org.apache.jena.rdf.model.Resource domain) static OntStatement
OntClassImpl.addEquivalentClass
(OntGraphModelImpl m, OntClass clazz, OntClass other) OntClassImpl.addEquivalentClassStatement
(OntClass other) OntNamedDataRangeImpl.addEquivalentClassStatement
(OntDataRange other) OntSimpleClassImpl.addEquivalentClassStatement
(OntClass other) static <X extends OntRelationalProperty>
OntStatementOntPropertyImpl.addEquivalentProperty
(OntGraphModelImpl m, X property, X other) OntDataPropertyImpl.addEquivalentPropertyStatement
(OntDataProperty other) OntObjectPropertyImpl.addEquivalentPropertyStatement
(OntObjectProperty other) OntDataPropertyImpl.addFunctionalDeclaration()
OntObjectPropertyImpl.addFunctionalDeclaration()
OntClassImpl.addHasKeyStatement
(OntRelationalProperty... properties) OntSimpleClassImpl.addHasKeyStatement
(OntRelationalProperty... properties) OntObjectPropertyImpl.addInverseFunctionalDeclaration()
OntObjectPropertyImpl.addInverseOfStatement
(OntObjectProperty other) OntObjectPropertyImpl.addIrreflexiveDeclaration()
OntDataPropertyImpl.addPropertyDisjointWithStatement
(OntDataProperty other) OntObjectPropertyImpl.addPropertyDisjointWithStatement
(OntObjectProperty other) OntAnnotationPropertyImpl.addRangeStatement
(org.apache.jena.rdf.model.Resource range) OntObjectPropertyImpl.addReflexiveDeclaration()
OntIndividualImpl.addSameAsStatement
(OntIndividual other) OntObjectImpl.addStatement
(org.apache.jena.rdf.model.Property property, org.apache.jena.rdf.model.RDFNode value) OntObjectPropertyImpl.addSymmetricDeclaration()
OntObjectPropertyImpl.addTransitiveDeclaration()
OntStatementImpl.asRootStatement()
OntAnnotationImpl.getBase()
OntListImpl.getMainStatement()
final OntStatement
OntObjectImpl.getMainStatement()
Returns the mainOntStatement
which determines the nature of this ontological resource.OntObjectImpl.getRequiredProperty
(org.apache.jena.rdf.model.Property property) Returns an ont-statement with the given subject and property.Methods in org.apache.jena.ontapi.impl.objects that return types with arguments of type OntStatementModifier and TypeMethodDescriptionOntObjectImpl.annotations()
Lists all annotation property assertions (so-called plain annotations) attached to this object plus all bulk annotations of the root statement.OntStatementImpl.annotations()
OntObjectImpl.assertions()
Lists all annotation property assertions (so-called plain annotations) attached to this object.OntListImpl.content()
OntObjectImpl.content()
Lists the content of the object, i.e., all characteristic statements (seeOntObject.spec()
), plus all additional statements in which this object is the subject, minus those of them whose predicate is an annotation property (annotations are not included).OntAnnotationPropertyImpl.findRootStatement()
OntClassImpl.findRootStatement()
OntClassImpl.NaryRestrictionImpl.findRootStatement()
OntClassImpl.RestrictionImpl.findRootStatement()
OntDataPropertyImpl.findRootStatement()
OntDataRangeImpl.findRootStatement()
OntDisjointImpl.findRootStatement()
OntFacetRestrictionImpl.findRootStatement()
OntIndividualImpl.AnonymousImpl.findRootStatement()
OntIndividualImpl.NamedImpl.findRootStatement()
OntNamedDataRangeImpl.findRootStatement()
OntNegativePropertyAssertionImpl.findRootStatement()
OntObjectImpl.findRootStatement()
Finds the first declaration root statement.OntObjectPropertyImpl.InversePropertyImpl.findRootStatement()
OntObjectPropertyImpl.NamedImpl.findRootStatement()
OntSimpleClassImpl.findRootStatement()
OntSimplePropertyImpl.findRootStatement()
OntSWRLImpl.AtomImpl.findRootStatement()
OntSWRLImpl.ImpImpl.findRootStatement()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntAnnotationImpl.listAnnotations()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntObjectImpl.listAnnotations()
Lists all related annotation assertions.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntStatementImpl.listAnnotations()
Lists all annotation assertion statements related to this one.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntAnnotationImpl.listAssertions()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntObjectImpl.listAssertions()
Returns an iterator over object's annotation property assertions.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntIndividualImpl.listClassAssertions()
Lists all class assertion statements.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntListImpl.listContent()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntSWRLImpl.BuiltInAtomImpl.listPredicateStatements()
static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntAnnotationImpl.listRelatedStatements
(OntAnnotation annotation) Lists annotation assertions plus sub-annotation root statements.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntAnnotationImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntClassImpl.CardinalityRestrictionImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntClassImpl.ComplementOfImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntClassImpl.ComponentRestrictionImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntClassImpl.HasSelfImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntClassImpl.NaryRestrictionImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntClassImpl.OnPropertyRestrictionImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntDataRangeImpl.ComplementOfImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntDataRangeImpl.RestrictionImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntDisjointImpl.IndividualsImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntDisjointImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntListImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntNegativePropertyAssertionImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntObjectImpl.listSpec()
Lists all object's characteristic statements according to its OWL2 specification.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntSWRLImpl.BinaryImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntSWRLImpl.BuiltInAtomImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntSWRLImpl.DArgImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntSWRLImpl.ImpImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntSWRLImpl.UnaryImpl.listSpec()
org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntStatementImpl.listSplitStatements()
Splits the statement into several equivalent ones but with disjoint annotations.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntObjectImpl.listStatements()
Returns anExtended Iterator
over all the properties of this resource.org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntObjectImpl.listStatements
(org.apache.jena.rdf.model.Property p) Lists all the values of the propertyp
.OntListImpl.spec()
OntObjectImpl.spec()
Lists all characteristic statements of the ontology resource, i.e., all those statements which completely determine this object nature according to the OWL2 specification.OntObjectImpl.statement
(org.apache.jena.rdf.model.Property property) Returns the first statement for the specified property.OntObjectImpl.statement
(org.apache.jena.rdf.model.Property property, org.apache.jena.rdf.model.RDFNode value) Returns the first statement for the specified property and object.OntObjectImpl.statements()
OntObjectImpl.statements
(org.apache.jena.rdf.model.Property property) org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntDataRangeImpl.RestrictionImpl.withRestrictionsSpec()
-
Uses of OntStatement in org.apache.jena.ontapi.model
Methods in org.apache.jena.ontapi.model that return OntStatementModifier and TypeMethodDescriptionOntAnnotation.addAnnotation
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) Adds a new annotation assertion to this annotation resource.default OntStatement
OntObject.addAnnotation
(OntAnnotationProperty predicate, String lexicalForm) Adds no-lang annotation assertion.default OntStatement
OntObject.addAnnotation
(OntAnnotationProperty predicate, String txt, String lang) Adds lang annotation assertion.OntObject.addAnnotation
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) Adds an annotation assertion with the givenannotation property
as predicate andRDF Node
as value.default OntStatement
OntStatement.addAnnotation
(OntAnnotationProperty predicate, String text) Creates and returns a textual no-lang sub-annotation-assertion.default OntStatement
OntStatement.addAnnotation
(OntAnnotationProperty predicate, String text, String lang) Creates and returns a textual language-tagged sub-annotation-assertion.OntStatement.addAnnotation
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) Annotates the statement with the givenannotation property
andRDF Node
value and returns a newly added annotation assertion statement.default OntStatement
OntObjectProperty.addAsymmetricDeclaration()
Creates theP rdf:type owl:AsymmetricProperty
property declaration statement, whereP
is this property.default OntStatement
OntIndividual.addClassAssertion
(OntClass clazz) Creates and returns a class-assertion statementa rdf:type C
, wherea
is this individual.default OntStatement
OntIndividual.addDifferentFromStatement
(OntIndividual other) Adds aowl:differentFrom
individual statement.default OntStatement
OntClass.Named.addDisjointUnionOfStatement
(Collection<OntClass> classes) Creates a disjoint-union section returning its root statement to allow adding annotations.default OntStatement
OntClass.Named.addDisjointUnionOfStatement
(OntClass... classes) Creates aDisjointUnion
ontology list
and returns the statementCN owl:disjointUnionOf ( C1 ... Cn )
to allow the addition of annotations.default OntStatement
OntClass.addDisjointWithStatement
(OntClass other) Adds the given class as a disjoint class and returns the corresponding statement to provide the ability to add annotations.default OntStatement
OntProperty.addDomainStatement
(org.apache.jena.rdf.model.Resource domain) Adds a statement$this rdfs:domain $domain
.default OntStatement
OntClass.addEquivalentClassStatement
(OntClass other) Adds the given class as an equivalent class and returns the corresponding statement to provide the ability to add annotations.default OntStatement
OntDataRange.Named.addEquivalentClassStatement
(OntDataRange other) Creates an equivalent class statement with the givenData Range expression
.default OntStatement
OntDataProperty.addEquivalentPropertyStatement
(OntDataProperty other) Creates and returns a newowl:equivalentProperty
statement with the given property as an object and this property as a subject.default OntStatement
OntObjectProperty.addEquivalentPropertyStatement
(OntObjectProperty other) Creates and returns a newowl:equivalentProperty
statement with the given property as an object and this property as a subject.default OntStatement
OntRelationalProperty.addFunctionalDeclaration()
Creates theP rdf:type owl:FunctionalProperty
property declaration statement, whereP
is this property.default OntStatement
OntClass.addHasKeyStatement
(Collection<OntObjectProperty> objectProperties, Collection<OntDataProperty> dataProperties) Creates anowl:hasKey
statement returning the root statement to allow the subsequent annotations adding.OntClass.addHasKeyStatement
(OntRelationalProperty... properties) Creates aHasKey
logical construction asontology list
and returns the statementC owl:hasKey ( P1 ... Pm R1 ... Rn )
to allow the subsequent addition of annotations.default OntStatement
OntObjectProperty.addInverseFunctionalDeclaration()
Creates theP rdf:type owl:InverseFunctionalProperty
property declaration statement, whereP
is this property.default OntStatement
OntObjectProperty.addInverseOfStatement
(OntObjectProperty other) Adds a new inverse-of statement.default OntStatement
OntObjectProperty.addIrreflexiveDeclaration()
Creates theP rdf:type owl:IrreflexiveProperty
property declaration statement, whereP
is this property.default OntStatement
OntObjectProperty.addPropertyChainAxiomStatement
(Collection<OntObjectProperty> properties) Adds a new sub-property-of chain statement.default OntStatement
OntObjectProperty.addPropertyChainAxiomStatement
(OntObjectProperty... properties) Creates a property chainontology list
and returns the statementP owl:propertyChainAxiom ( P1 ... Pn )
to allow the addition of annotations.default OntStatement
OntDataProperty.addPropertyDisjointWithStatement
(OntDataProperty other) Adds a disjoint object property (i.e. the_:this owl:propertyDisjointWith @other
statement).default OntStatement
OntObjectProperty.addPropertyDisjointWithStatement
(OntObjectProperty other) Adds a disjoint object property (i.e., the_:this owl:propertyDisjointWith @other
statement).default OntStatement
OntProperty.addRangeStatement
(org.apache.jena.rdf.model.Resource range) Adds range statement$this rdfs:range $range
.default OntStatement
OntObjectProperty.addReflexiveDeclaration()
Creates theP rdf:type owl:ReflexiveProperty
property declaration statement, whereP
is this property.default OntStatement
OntIndividual.addSameAsStatement
(OntIndividual other) Adds a same individual reference.OntObject.addStatement
(org.apache.jena.rdf.model.Property property, org.apache.jena.rdf.model.RDFNode value) Adds an ont-statement by attaching predicate and object (value) to this resource.default OntStatement
OntClass.addSubClassOfStatement
(OntClass other) Adds the given class as a superclass and returns the corresponding statement to provide the ability to add annotations.default OntStatement
OntProperty.addSubPropertyOfStatement
(org.apache.jena.rdf.model.Resource property) Adds the given property as super property returning a new statement to annotate.default OntStatement
OntObjectProperty.addSymmetricDeclaration()
Creates theP rdf:type owl:SymmetricProperty
property declaration statement, whereP
is this property.default OntStatement
OntObjectProperty.addTransitiveDeclaration()
Creates theP rdf:type owl:TransitiveProperty
property declaration statement, whereP
is this property.default OntStatement
OntStatement.annotate
(OntAnnotationProperty property, String text) Annotates the statement with the given predicate and textual message.default OntStatement
OntStatement.annotate
(OntAnnotationProperty property, String text, String lang) Annotates the statement with the given predicate and language-tagged textual message.default OntStatement
OntStatement.annotate
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) Annotates the statement with the given predicate and value.OntModel.asStatement
(org.apache.jena.graph.Triple triple) Answers anOntology Statement
in this model who's SPO is that of thetriple
.default OntStatement
OntStatement.clearAnnotations()
Removes all sub-annotations including their children.default OntStatement
OntStatement.deleteAnnotation
(OntAnnotationProperty property) Deletes all (sub-)annotations with the given predicate-property.OntStatement.deleteAnnotation
(OntAnnotationProperty property, org.apache.jena.rdf.model.RDFNode value) Deletes the child annotation if present.OntAnnotation.getBase()
Returns the base statement, i.e. statement to which this bulk-annotation is attached.OntObject.getMainStatement()
Returns the mainOntStatement
which determines the nature of this ontological resource.OntObject.getRequiredProperty
(org.apache.jena.rdf.model.Property property) Returns the first statement for the specified property.Methods in org.apache.jena.ontapi.model that return types with arguments of type OntStatementModifier and TypeMethodDescriptionOntAnnotation.annotations()
Just a synonym forOntAnnotation.assertions()
.OntObject.annotations()
Lists all top-level annotations attached to the root statement of this object.OntStatement.annotations()
Lists all annotations related to this statement.default Stream<OntStatement>
OntStatement.annotations
(OntAnnotationProperty property) Lists all annotations by the property.OntAnnotation.assertions()
Returns the annotations assertions attached to this annotation resource.OntIndividual.content()
Lists the content of the object, i.e., all characteristic statements (seeOntObject.spec()
), plus all additional statements in which this object is the subject, minus those of them whose predicate is an annotation property (annotations are not included).default Stream<OntStatement>
OntList.content()
Returns the root statement plus spec.OntObject.content()
Lists the content of the object, i.e., all characteristic statements (seeOntObject.spec()
), plus all additional statements in which this object is the subject, minus those of them whose predicate is an annotation property (annotations are not included).default Stream<OntStatement>
OntModel.localStatements()
OntModel.localStatements
(org.apache.jena.rdf.model.Resource s, org.apache.jena.rdf.model.Property p, org.apache.jena.rdf.model.RDFNode o) Lists all statements from thebase graph
for the specified subject, predicate and object.default Stream<OntStatement>
OntIndividual.positiveAssertions()
Lists all positive assertions for this individual.default Stream<OntStatement>
OntIndividual.positiveAssertions
(OntNamedProperty predicate) Lists all positive property assertions for this individual and the given predicate.OntDataRange.Restriction.spec()
Lists all characteristic statements of the ontology resource, i.e., all those statements which completely determine this object nature according to the OWL2 specification.OntList.spec()
Lists all statements related to this list.OntObject.spec()
Lists all characteristic statements of the ontology resource, i.e., all those statements which completely determine this object nature according to the OWL2 specification.OntObject.statement
(org.apache.jena.rdf.model.Property property) Returns the first statement for the specified property.OntObject.statement
(org.apache.jena.rdf.model.Property property, org.apache.jena.rdf.model.RDFNode value) Returns the first statement for the specified property and object.OntModel.statements()
Lists all ont-statements.OntModel.statements
(org.apache.jena.rdf.model.Resource s, org.apache.jena.rdf.model.Property p, org.apache.jena.rdf.model.RDFNode o) Lists all statements for the specified subject, predicate and object (SPO).OntObject.statements()
Lists all top-level statements related to this object (i.e., with subject=this
).OntObject.statements
(org.apache.jena.rdf.model.Property property) Lists ont-statements by the predicate.Methods in org.apache.jena.ontapi.model with parameters of type OntStatementModifier and TypeMethodDescriptionOntModel.removeOntStatement
(OntStatement statement) Removes the statement from the graph-model including its annotations with sub-annotations hierarchy. -
Uses of OntStatement in org.apache.jena.ontapi.utils
Methods in org.apache.jena.ontapi.utils that return OntStatementModifier and TypeMethodDescriptionstatic OntStatement
OntModels.toOntStatement
(org.apache.jena.graph.Triple triple, OntModel model) Methods in org.apache.jena.ontapi.utils that return types with arguments of type OntStatementModifier and TypeMethodDescriptionstatic Stream<OntStatement>
OntModels.annotations
(OntStatement statement) Recursively lists all annotations for the givenOntology Statement
in the form of a flat stream.static Set<OntStatement>
OntModels.getAllAnnotations
(OntStatement statement) For the specifiedStatement
gets all its annotation assertions recursively including their sub-annotations.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listAllAnnotations
(OntStatement statement) For the specifiedStatement
lists all its annotation assertions recursively including their sub-annotations.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listAnnotations
(OntObject o) Lists all direct object's annotations.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listAnnotations
(OntStatement s) Returns an iterator over all direct annotations of the given ontology statement.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 org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listSplitStatements
(OntStatement statement) Returns anExtendedIterator
over allOntology Statement
s, which are obtained from splitting the given statement into several equivalent ones but with disjoint annotations.Methods in org.apache.jena.ontapi.utils with parameters of type OntStatementModifier and TypeMethodDescriptionstatic Stream<OntStatement>
OntModels.annotations
(OntStatement statement) Recursively lists all annotations for the givenOntology Statement
in the form of a flat stream.static Set<OntStatement>
OntModels.getAllAnnotations
(OntStatement statement) For the specifiedStatement
gets all its annotation assertions recursively including their sub-annotations.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listAllAnnotations
(OntStatement statement) For the specifiedStatement
lists all its annotation assertions recursively including their sub-annotations.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listAnnotations
(OntStatement s) Returns an iterator over all direct annotations of the given ontology statement.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>
OntModels.listSplitStatements
(OntStatement statement) Returns anExtendedIterator
over allOntology Statement
s, which are obtained from splitting the given statement into several equivalent ones but with disjoint annotations.