Class JsonLdQuadLikeImpl<S extends RDFTerm,​P extends RDFTerm,​O extends RDFTerm,​G extends RDFTerm>

    • Constructor Summary

      Constructors 
      Constructor Description
      JsonLdQuadLikeImpl​(com.github.jsonldjava.core.RDFDataset.Quad jsonldQuad, java.lang.String blankNodePrefix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.github.jsonldjava.core.RDFDataset.Quad asJsonLdQuad()
      Return the underlying JsonLD RDFDataset.Quad
      java.util.Optional<G> getGraphName()
      The graph name (graph label) of this statement, if present.
      O getObject()
      The object of this statement.
      P getPredicate()
      The predicate of this statement.
      S getSubject()
      The subject of this statement.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • rdfTermFactory

        private static JsonLdRDF rdfTermFactory
      • quad

        private final com.github.jsonldjava.core.RDFDataset.Quad quad
      • blankNodePrefix

        private final java.lang.String blankNodePrefix
    • Constructor Detail

      • JsonLdQuadLikeImpl

        JsonLdQuadLikeImpl​(com.github.jsonldjava.core.RDFDataset.Quad jsonldQuad,
                           java.lang.String blankNodePrefix)
    • Method Detail

      • getGraphName

        public java.util.Optional<G> getGraphName()
        Description copied from interface: QuadLike
        The graph name (graph label) of this statement, if present.

        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.

        Specified by:
        getGraphName in interface QuadLike<S extends RDFTerm>
        Returns:
        If Optional.isPresent(), the graph name of this quad, otherwise Optional.empty(), indicating the default graph. The graph name is typically an IRI or BlankNode.
      • getSubject

        public S getSubject()
        Description copied from interface: TripleLike
        The subject of this statement.
        Specified by:
        getSubject in interface TripleLike
        Returns:
        The subject, typically an IRI or BlankNode.
      • getPredicate

        public P getPredicate()
        Description copied from interface: TripleLike
        The predicate of this statement.
        Specified by:
        getPredicate in interface TripleLike
        Returns:
        The predicate, typically an IRI.
      • asJsonLdQuad

        public com.github.jsonldjava.core.RDFDataset.Quad asJsonLdQuad()
        Description copied from interface: JsonLdTripleLike
        Return the underlying JsonLD RDFDataset.Quad
        Specified by:
        asJsonLdQuad in interface JsonLdTripleLike
        Returns:
        The JsonLD RDFDataset.Quad
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object