Interface Triple

All Superinterfaces:
TripleLike
All Known Subinterfaces:
JsonLdTriple, RDF4JTriple
All Known Implementing Classes:
JsonLdTripleImpl, TripleImpl, TripleImpl

public interface Triple extends TripleLike
An RDF-1.1 Triple, as defined by RDF-1.1 Concepts and Abstract Syntax, a W3C Recommendation published on 25 February 2014.

A Triple object in Commons RDF is considered immutable, that is, over its life time it will have consistent behaviour for its equals(Object), and the RDFTerm instances returned from getSubject(), getPredicate() and getObject() will have consistent RDFTerm.equals(Object) behaviour.

Note that Triple methods are not required to return object identical (==) instances as long as they are equivalent according to RDFTerm.equals(Object). Specialisations of Triple may provide additional methods that are documented to be mutable.

Triple methods are thread-safe, however specialisations may provide additional methods that are documented to not be thread-safe.

Triples can be safely used in hashing collections like HashSet and HashMap.

Any Triple can be used interchangeably across Commons RDF implementations.

See Also: