Package org.apache.commons.rdf.api
Interface TripleLike
-
- All Known Subinterfaces:
JsonLdQuad
,JsonLdQuadLike<G>
,JsonLdTriple
,JsonLdTripleLike
,Quad
,QuadLike<G>
,RDF4JQuad
,RDF4JTriple
,RDF4JTripleLike
,Triple
- All Known Implementing Classes:
JsonLdQuadImpl
,JsonLdQuadLikeImpl
,JsonLdTripleImpl
,QuadImpl
,QuadImpl
,TripleImpl
,TripleImpl
public interface TripleLike
A generalised "triple-like" interface, extended byTriple
andQuad
.A TripleLike statement has at least a
getSubject()
,getPredicate()
andgetObject()
, but unlike aTriple
does not have a formalisedTriple.equals(Object)
orTriple.hashCode()
semantics and is not required to be immutable or thread-safe. This interfaced can also be used for generalised triples (e.g. aBlankNode
as predicate).Implementations should specialise which specific
RDFTerm
types they return by overridinggetSubject()
,getPredicate()
andgetObject()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RDFTerm
getObject()
The object of this statement.RDFTerm
getPredicate()
The predicate of this statement.RDFTerm
getSubject()
The subject of this statement.
-