Interface QuadLike<G extends RDFTerm>
-
- All Superinterfaces:
TripleLike
- All Known Subinterfaces:
JsonLdQuad
,JsonLdQuadLike<G>
,Quad
,RDF4JQuad
- All Known Implementing Classes:
JsonLdQuadImpl
,JsonLdQuadLikeImpl
,JsonLdTripleImpl
,QuadImpl
,QuadImpl
public interface QuadLike<G extends RDFTerm> extends TripleLike
A generalised "quad-like" interface, extended byQuad
.A QuadLike statement has at least a
TripleLike.getSubject()
,TripleLike.getPredicate()
,TripleLike.getObject()
andgetGraphName()
, but unlike aQuad
does not have a formalisedQuad.equals(Object)
orQuad.hashCode()
semantics and is not required to be immutable or thread-safe. This interface can also be used for generalised quads (e.g. aBlankNode
as predicate).Implementations should specialise which specific
RDFTerm
types they return by overridingTripleLike.getSubject()
,TripleLike.getPredicate()
,TripleLike.getObject()
andgetGraphName()
.- Since:
- 0.3.0-incubating
- See Also:
Quad
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<G>
getGraphName()
The graph name (graph label) of this statement, if present.-
Methods inherited from interface org.apache.commons.rdf.api.TripleLike
getObject, getPredicate, getSubject
-
-
-
-
Method Detail
-
getGraphName
java.util.Optional<G> getGraphName()
The graph name (graph label) of this statement, if present.If
Optional.isPresent()
, then theOptional.get()
indicate the graph name of this statement. If the graph name is not present,e.g. the value isOptional.empty()
, it indicates that this Quad is in the default graph.
-
-