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 iteratorover 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 OntStatementOntClassImpl.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 OntStatementOntClassImpl.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 OntStatementOntObjectImpl.getMainStatement()Returns the mainOntStatementwhich 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 Iteratorover 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 OntStatementOntObject.addAnnotation(OntAnnotationProperty predicate, String lexicalForm) Adds no-lang annotation assertion.default OntStatementOntObject.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 propertyas predicate andRDF Nodeas value.default OntStatementOntStatement.addAnnotation(OntAnnotationProperty predicate, String text) Creates and returns a textual no-lang sub-annotation-assertion.default OntStatementOntStatement.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 propertyandRDF Nodevalue and returns a newly added annotation assertion statement.default OntStatementOntObjectProperty.addAsymmetricDeclaration()Creates theP rdf:type owl:AsymmetricPropertyproperty declaration statement, wherePis this property.default OntStatementOntIndividual.addClassAssertion(OntClass clazz) Creates and returns a class-assertion statementa rdf:type C, whereais this individual.default OntStatementOntIndividual.addDifferentFromStatement(OntIndividual other) Adds aowl:differentFromindividual statement.default OntStatementOntClass.Named.addDisjointUnionOfStatement(Collection<OntClass> classes) Creates a disjoint-union section returning its root statement to allow adding annotations.default OntStatementOntClass.Named.addDisjointUnionOfStatement(OntClass... classes) Creates aDisjointUnionontology listand returns the statementCN owl:disjointUnionOf ( C1 ... Cn )to allow the addition of annotations.default OntStatementOntClass.addDisjointWithStatement(OntClass other) Adds the given class as a disjoint class and returns the corresponding statement to provide the ability to add annotations.default OntStatementOntProperty.addDomainStatement(org.apache.jena.rdf.model.Resource domain) Adds a statement$this rdfs:domain $domain.default OntStatementOntClass.addEquivalentClassStatement(OntClass other) Adds the given class as an equivalent class and returns the corresponding statement to provide the ability to add annotations.default OntStatementOntDataRange.Named.addEquivalentClassStatement(OntDataRange other) Creates an equivalent class statement with the givenData Range expression.default OntStatementOntDataProperty.addEquivalentPropertyStatement(OntDataProperty other) Creates and returns a newowl:equivalentPropertystatement with the given property as an object and this property as a subject.default OntStatementOntObjectProperty.addEquivalentPropertyStatement(OntObjectProperty other) Creates and returns a newowl:equivalentPropertystatement with the given property as an object and this property as a subject.default OntStatementOntRelationalProperty.addFunctionalDeclaration()Creates theP rdf:type owl:FunctionalPropertyproperty declaration statement, wherePis this property.default OntStatementOntClass.addHasKeyStatement(Collection<OntObjectProperty> objectProperties, Collection<OntDataProperty> dataProperties) Creates anowl:hasKeystatement returning the root statement to allow the subsequent annotations adding.OntClass.addHasKeyStatement(OntRelationalProperty... properties) Creates aHasKeylogical construction asontology listand returns the statementC owl:hasKey ( P1 ... Pm R1 ... Rn )to allow the subsequent addition of annotations.default OntStatementOntObjectProperty.addInverseFunctionalDeclaration()Creates theP rdf:type owl:InverseFunctionalPropertyproperty declaration statement, wherePis this property.default OntStatementOntObjectProperty.addInverseOfStatement(OntObjectProperty other) Adds a new inverse-of statement.default OntStatementOntObjectProperty.addIrreflexiveDeclaration()Creates theP rdf:type owl:IrreflexivePropertyproperty declaration statement, wherePis this property.default OntStatementOntObjectProperty.addPropertyChainAxiomStatement(Collection<OntObjectProperty> properties) Adds a new sub-property-of chain statement.default OntStatementOntObjectProperty.addPropertyChainAxiomStatement(OntObjectProperty... properties) Creates a property chainontology listand returns the statementP owl:propertyChainAxiom ( P1 ... Pn )to allow the addition of annotations.default OntStatementOntDataProperty.addPropertyDisjointWithStatement(OntDataProperty other) Adds a disjoint object property (i.e. the_:this owl:propertyDisjointWith @otherstatement).default OntStatementOntObjectProperty.addPropertyDisjointWithStatement(OntObjectProperty other) Adds a disjoint object property (i.e., the_:this owl:propertyDisjointWith @otherstatement).default OntStatementOntProperty.addRangeStatement(org.apache.jena.rdf.model.Resource range) Adds range statement$this rdfs:range $range.default OntStatementOntObjectProperty.addReflexiveDeclaration()Creates theP rdf:type owl:ReflexivePropertyproperty declaration statement, wherePis this property.default OntStatementOntIndividual.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 OntStatementOntClass.addSubClassOfStatement(OntClass other) Adds the given class as a superclass and returns the corresponding statement to provide the ability to add annotations.default OntStatementOntProperty.addSubPropertyOfStatement(org.apache.jena.rdf.model.Resource property) Adds the given property as super property returning a new statement to annotate.default OntStatementOntObjectProperty.addSymmetricDeclaration()Creates theP rdf:type owl:SymmetricPropertyproperty declaration statement, wherePis this property.default OntStatementOntObjectProperty.addTransitiveDeclaration()Creates theP rdf:type owl:TransitivePropertyproperty declaration statement, wherePis this property.default OntStatementOntStatement.annotate(OntAnnotationProperty property, String text) Annotates the statement with the given predicate and textual message.default OntStatementOntStatement.annotate(OntAnnotationProperty property, String text, String lang) Annotates the statement with the given predicate and language-tagged textual message.default OntStatementOntStatement.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 Statementin this model who's SPO is that of thetriple.default OntStatementOntStatement.clearAnnotations()Removes all sub-annotations including their children.default OntStatementOntStatement.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 mainOntStatementwhich 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 graphfor 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 OntStatementOntModels.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 Statementin the form of a flat stream.static Set<OntStatement>OntModels.getAllAnnotations(OntStatement statement) For the specifiedStatementgets all its annotation assertions recursively including their sub-annotations.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>OntModels.listAllAnnotations(OntStatement statement) For the specifiedStatementlists 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 anExtendedIteratorover allOntology Statements, 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 Statementin the form of a flat stream.static Set<OntStatement>OntModels.getAllAnnotations(OntStatement statement) For the specifiedStatementgets all its annotation assertions recursively including their sub-annotations.static org.apache.jena.util.iterator.ExtendedIterator<OntStatement>OntModels.listAllAnnotations(OntStatement statement) For the specifiedStatementlists 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 anExtendedIteratorover allOntology Statements, which are obtained from splitting the given statement into several equivalent ones but with disjoint annotations.