Package org.eclipse.rdf4j.model.impl
Class SimpleStatement
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractStatement
org.eclipse.rdf4j.model.impl.SimpleStatement
- All Implemented Interfaces:
Serializable,Statement
- Direct Known Subclasses:
ContextStatement,ExtensibleStatementImpl
Deprecated, for removal: This API element is subject to removal in a future version.
A simple default implementation of the
Statement interface for statements that don't have an associated
context. For statements that do have an associated context, ContextStatement can be used.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimpleStatement(Resource subject, IRI predicate, Value object) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new Statement with the supplied subject, predicate and object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexactSameObject(Value object) Deprecated, for removal: This API element is subject to removal in a future version.booleanexactSamePredicate(IRI predicate) Deprecated, for removal: This API element is subject to removal in a future version.booleanexactSameSubject(Resource subject) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the context of this statement.Deprecated, for removal: This API element is subject to removal in a future version.Gets the object of this statement.Deprecated, for removal: This API element is subject to removal in a future version.Gets the predicate of this statement.Deprecated, for removal: This API element is subject to removal in a future version.Gets the subject of this statement.Methods inherited from class org.eclipse.rdf4j.model.base.AbstractStatement
equals, hashCode, toString
-
Constructor Details
-
SimpleStatement
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new Statement with the supplied subject, predicate and object. *Note that creating SimpleStatement objects directly via this constructor is not the recommended approach. Instead, use a
ValueFactory(obtained from your repository or by usingSimpleValueFactory.getInstance()) to create new Statement objects.- Parameters:
subject- The statement's subject, must not be null.predicate- The statement's predicate, must not be null.object- The statement's object, must not be null.- See Also:
-
-
Method Details
-
getSubject
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:StatementGets the subject of this statement.- Returns:
- The statement's subject.
-
getPredicate
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:StatementGets the predicate of this statement.- Returns:
- The statement's predicate.
-
getObject
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:StatementGets the object of this statement.- Returns:
- The statement's object.
-
exactSameSubject
Deprecated, for removal: This API element is subject to removal in a future version. -
exactSamePredicate
Deprecated, for removal: This API element is subject to removal in a future version. -
exactSameObject
Deprecated, for removal: This API element is subject to removal in a future version. -
getContext
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:StatementGets the context of this statement.- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
instead