java.lang.Object
org.apache.commons.rdf.jsonldjava.JsonLdQuadLikeImpl<S,P,O,G>
- All Implemented Interfaces:
QuadLike<G>
,TripleLike
,JsonLdQuadLike<G>
,JsonLdTripleLike
- Direct Known Subclasses:
JsonLdQuadImpl
,JsonLdTripleImpl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonLdQuadLikeImpl
(com.github.jsonldjava.core.RDFDataset.Quad jsonldQuad, String blankNodePrefix) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.jsonldjava.core.RDFDataset.Quad
Return the underlying JsonLDRDFDataset.Quad
The graph name (graph label) of this statement, if present.The object of this statement.The predicate of this statement.The subject of this statement.toString()
-
Field Details
-
rdfTermFactory
-
quad
private final com.github.jsonldjava.core.RDFDataset.Quad quad -
blankNodePrefix
-
-
Constructor Details
-
JsonLdQuadLikeImpl
JsonLdQuadLikeImpl(com.github.jsonldjava.core.RDFDataset.Quad jsonldQuad, String blankNodePrefix)
-
-
Method Details
-
getGraphName
Description copied from interface:QuadLike
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.- Specified by:
getGraphName
in interfaceQuadLike<S extends RDFTerm>
- Returns:
- If
Optional.isPresent()
, the graph name of this quad, otherwiseOptional.empty()
, indicating the default graph. The graph name is typically anIRI
orBlankNode
.
-
getSubject
Description copied from interface:TripleLike
The subject of this statement.- Specified by:
getSubject
in interfaceTripleLike
- Returns:
- The subject, typically an
IRI
orBlankNode
.
-
getPredicate
Description copied from interface:TripleLike
The predicate of this statement.- Specified by:
getPredicate
in interfaceTripleLike
- Returns:
- The predicate, typically an
IRI
.
-
getObject
Description copied from interface:TripleLike
The object of this statement.- Specified by:
getObject
in interfaceTripleLike
- Returns:
- The object, typically an
IRI
,BlankNode
orLiteral
.
-
asJsonLdQuad
public com.github.jsonldjava.core.RDFDataset.Quad asJsonLdQuad()Description copied from interface:JsonLdTripleLike
Return the underlying JsonLDRDFDataset.Quad
- Specified by:
asJsonLdQuad
in interfaceJsonLdTripleLike
- Returns:
- The JsonLD
RDFDataset.Quad
-
toString
-