Interface Quad

All Superinterfaces:
QuadLike<BlankNodeOrIRI>, TripleLike
All Known Subinterfaces:
JsonLdQuad, RDF4JQuad
All Known Implementing Classes:
JsonLdQuadImpl, QuadImpl, QuadImpl

public interface Quad extends QuadLike<BlankNodeOrIRI>
A Quad is a statement in a RDF-1.1 Dataset, as defined by RDF-1.1 Concepts and Abstract Syntax, a W3C Working Group Note published on 25 February 2014.

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

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

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

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

Any Quad can be used interchangeably across Commons RDF implementations.

Since:
0.3.0-incubating
See Also: