Class JsonLdQuadLikeImpl<S extends RDFTerm, P extends RDFTerm, O extends RDFTerm, G extends RDFTerm>
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.QuadReturn the underlying JsonLDRDFDataset.QuadThe 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:QuadLikeThe 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:
getGraphNamein 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 anIRIorBlankNode.
-
getSubject
Description copied from interface:TripleLikeThe subject of this statement.- Specified by:
getSubjectin interfaceTripleLike- Returns:
- The subject, typically an
IRIorBlankNode.
-
getPredicate
Description copied from interface:TripleLikeThe predicate of this statement.- Specified by:
getPredicatein interfaceTripleLike- Returns:
- The predicate, typically an
IRI.
-
getObject
Description copied from interface:TripleLikeThe object of this statement.- Specified by:
getObjectin interfaceTripleLike- Returns:
- The object, typically an
IRI,BlankNodeorLiteral.
-
asJsonLdQuad
public com.github.jsonldjava.core.RDFDataset.Quad asJsonLdQuad()Description copied from interface:JsonLdTripleLikeReturn the underlying JsonLDRDFDataset.Quad- Specified by:
asJsonLdQuadin interfaceJsonLdTripleLike- Returns:
- The JsonLD
RDFDataset.Quad
-
toString
-