public interface TripleLike
Triple
and
Quad
.
A TripleLike statement has at least a getSubject()
,
getPredicate()
and getObject()
, but unlike a Triple
does not have a formalised Triple.equals(Object)
or
Triple.hashCode()
semantics and is not required to be
immutable or thread-safe. This interfaced can also be used
for generalised triples (e.g. a BlankNode
as predicate).
Implementations should specialise which specific RDFTerm
types they
return by overriding getSubject()
, getPredicate()
and
getObject()
.
Modifier and Type | Method and Description |
---|---|
RDFTerm |
getObject()
The object of this statement.
|
RDFTerm |
getPredicate()
The predicate of this statement.
|
RDFTerm |
getSubject()
The subject of this statement.
|
RDFTerm getSubject()
RDFTerm getPredicate()
IRI
.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.