Package org.eclipse.rdf4j.model
Interface Statement
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ExtensibleStatement
- All Known Implementing Classes:
AbstractStatement
,ExtensibleStatementImpl
,GenericStatement
,LinkedHashModel.ModelStatement
,MemStatement
,UnboundStatement
An RDF statement, with optional associated context. A statement can have an associated context in specific cases, for
example when fetched from a repository.
Additional utility functionality for working with Statement
objects is available in the
org.eclipse.rdf4j.model.util.Statements
utility class.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this statement to another object.Gets the context of this statement.Gets the object of this statement.Gets the predicate of this statement.Gets the subject of this statement.int
hashCode()
Computes the hash code of this statement.
-
Method Details
-
getSubject
-
getPredicate
-
getObject
-
getContext
Resource getContext()Gets the context of this statement.- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
equals
Compares this statement to another object. -
hashCode
int hashCode()Computes the hash code of this statement.- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this statement computed as
Objects.hash
(getSubject()
,getPredicate()
,getObject()
,getContext()
)
-