@Experimental public interface Triple extends Resource
Statement, a triple
never has an associated context.
Additional utility functionality for working with Triple objects is available in the
org.eclipse.rdf4j.model.util.Statements utility class.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compares this triple to another object.
|
Value |
getObject()
Gets the object of this triple.
|
IRI |
getPredicate()
Gets the predicate of this triple.
|
Resource |
getSubject()
Gets the subject of this triple.
|
int |
hashCode()
Computes the hash code of this triple.
|
default boolean |
isTriple()
Check if the object is an instance of the given type.
|
isResourceisBNode, isIRI, isLiteral, stringValuedefault boolean isTriple()
ValueResource getSubject()
IRI getPredicate()
Value getObject()
boolean equals(Object other)
equals in class Objectother - the object to compare this triple totrue if the other object is an instance of Triple and if their
subjects, predicates and objects are equal; false otherwiseint hashCode()
hashCode in class ObjectObjects.hash(
getSubject(), getPredicate(), getObject())Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.