public interface QuadLike<G extends RDFTerm> extends TripleLike
Quad
.
A QuadLike statement has at least a TripleLike.getSubject()
,
TripleLike.getPredicate()
, TripleLike.getObject()
and getGraphName()
,
but unlike a Quad
does not have a formalised
Quad.equals(Object)
or Quad.hashCode()
semantics and is not
required to be immutable or thread-safe. This interface can
also be used for generalised quads (e.g. a BlankNode
as
predicate).
Implementations should specialise which specific RDFTerm
types they
return by overriding TripleLike.getSubject()
, TripleLike.getPredicate()
,
TripleLike.getObject()
and getGraphName()
.
Quad
Modifier and Type | Method and Description |
---|---|
Optional<G> |
getGraphName()
The graph name (graph label) of this statement, if present.
|
getObject, getPredicate, getSubject
Optional<G> getGraphName()
If Optional.isPresent()
, then the Optional.get()
indicate
the graph name of this statement. If the graph name is not present,e.g.
the value is Optional.empty()
, it indicates that this Quad is in
the default graph.
Optional.isPresent()
, the graph name of this quad,
otherwise Optional.empty()
, indicating the default graph.
The graph name is typically an IRI
or BlankNode
.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.