Class Quad

    • Method Detail

      • graphName

        public java.util.Optional<RdfResource> graphName()
        Description copied from interface: RdfQuad
        Returns the optional graph name for this N-Quad statement.

        If the N-Quad is part of a named graph, this method returns an Optional containing the graph name. Otherwise, it returns Optional.empty() if no graph name is specified.

        Specified by:
        graphName in interface RdfQuad
        Returns:
        an Optional containing the graph name if present, or Optional.empty() if not set
      • toString

        public java.lang.String toString()
        Description copied from interface: RdfTerm
        Returns a string representation of this RDF term.
        Specified by:
        toString in interface RdfTerm
        Overrides:
        toString in class Triple
        Returns:
        a string describing this RDF term.
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from interface: RdfTerm
        Compares this RDF term to the specified object. Implementations must override this method to provide equality checks appropriate to the term type.
        Specified by:
        equals in interface RdfTerm
        Overrides:
        equals in class Triple
        Parameters:
        obj - the object to compare with this term.
        Returns:
        true if the specified object is equal to this term; false otherwise.