Package org.eclipse.rdf4j.rio.helpers
Class RDFStarEncodingStatement
- java.lang.Object
-
- org.eclipse.rdf4j.rio.helpers.RDFStarEncodingStatement
-
- All Implemented Interfaces:
java.io.Serializable,Statement
class RDFStarEncodingStatement extends java.lang.Object implements Statement
Represents aStatementwhose subject or object may be an RDF-star triple that will be encoded as a special IRI value ongetSubject()andgetObject().
-
-
Constructor Summary
Constructors Constructor Description RDFStarEncodingStatement(Statement delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Compares this statement to another object.ResourcegetContext()Gets the context of this statement.ValuegetObject()Gets the object of this statement.IRIgetPredicate()Gets the predicate of this statement.ResourcegetSubject()Gets the subject of this statement.inthashCode()Computes the hash code of this statement.
-
-
-
Field Detail
-
delegate
private final Statement delegate
-
-
Constructor Detail
-
RDFStarEncodingStatement
RDFStarEncodingStatement(Statement delegate)
-
-
Method Detail
-
getSubject
public Resource getSubject()
Description copied from interface:StatementGets the subject of this statement.- Specified by:
getSubjectin interfaceStatement- Returns:
- The statement's subject.
-
getPredicate
public IRI getPredicate()
Description copied from interface:StatementGets the predicate of this statement.- Specified by:
getPredicatein interfaceStatement- Returns:
- The statement's predicate.
-
getObject
public Value getObject()
Description copied from interface:StatementGets the object of this statement.
-
getContext
public Resource getContext()
Description copied from interface:StatementGets the context of this statement.- Specified by:
getContextin interfaceStatement- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
equals
public boolean equals(java.lang.Object other)
Description copied from interface:StatementCompares this statement to another object.
-
hashCode
public int hashCode()
Description copied from interface:StatementComputes the hash code of this statement.- Specified by:
hashCodein interfaceStatement- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code for this statement computed as
Objects.hash(Statement.getSubject(),Statement.getPredicate(),Statement.getObject(),Statement.getContext())
-
-