Class JsonLdIRIImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      JsonLdIRIImpl​(com.github.jsonldjava.core.RDFDataset.Node node)  
      JsonLdIRIImpl​(java.lang.String iri)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Check it this RDFTerm is equal to another RDFTerm.
      java.lang.String getIRIString()
      Return the IRI encoded as a native Unicode String.
      The returned string must not include URL-encoding to escape non-ASCII characters.
      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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JsonLdIRIImpl

        JsonLdIRIImpl​(com.github.jsonldjava.core.RDFDataset.Node node)
      • JsonLdIRIImpl

        JsonLdIRIImpl​(java.lang.String iri)
    • Method Detail

      • ntriplesString

        public java.lang.String ntriplesString()
        Description copied from interface: RDFTerm
        Return the term serialised as specified by the RDF-1.1 N-Triples Canonical form.
        Specified by:
        ntriplesString in interface RDFTerm
        Returns:
        The term serialised as RDF-1.1 N-Triples.
        See Also:
        RDF-1.1 N-Triples Canonical form
      • getIRIString

        public java.lang.String getIRIString()
        Description copied from interface: IRI
        Return the IRI encoded as a native Unicode String.
        The returned string must not include URL-encoding to escape non-ASCII characters.
        Specified by:
        getIRIString in interface IRI
        Returns:
        The IRI encoded as a native Unicode String.
      • hashCode

        public int hashCode()
        Description copied from interface: RDFTerm
        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 RDFTerm.equals(Object) so that two equal RDFTerm produce the same hash code.

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