Interface RDFTerm

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)
      Check it this RDFTerm is equal to another RDFTerm.
      int hashCode()
      Calculate a hash code for this RDFTerm.
      java.lang.String ntriplesString()
      Return the term serialised as specified by the RDF-1.1 N-Triples Canonical form.
    • Method Detail

      • ntriplesString

        java.lang.String ntriplesString()
        Return the term serialised as specified by the RDF-1.1 N-Triples Canonical form.
        Returns:
        The term serialised as RDF-1.1 N-Triples.
        See Also:
        RDF-1.1 N-Triples Canonical form
      • hashCode

        int hashCode()
        Calculate a hash code for this RDFTerm.

        As an RDFTerm is immutable, this method will always return the same hashCode over the lifetime of this object.

        This method MUST be implemented in conjunction with equals(Object) so that two equal RDFTerm produce the same hash code.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for this RDFTerm.
        See Also:
        IRI.hashCode(), Literal.hashCode(), BlankNode.hashCode()