Class RDFResourceIRI

All Implemented Interfaces:
Serializable, Comparable<RDFNode>, org.apache.commons.rdf.api.BlankNodeOrIRI, org.apache.commons.rdf.api.IRI, org.apache.commons.rdf.api.RDFTerm, HasIRI

public class RDFResourceIRI extends RDFResource implements org.apache.commons.rdf.api.IRI
IRI node implementation.
See Also:
  • Constructor Details

    • RDFResourceIRI

      public RDFResourceIRI(IRI resource)
      Parameters:
      resource - the resource
  • Method Details

    • getIRI

      public IRI getIRI()
      Description copied from interface: HasIRI
      Gets the IRI of this object.
      Specified by:
      getIRI in interface HasIRI
      Returns:
      The IRI of this object
    • getResource

      public IRI getResource()
      Specified by:
      getResource in class RDFResource
      Returns:
      the resource IRI
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.apache.commons.rdf.api.IRI
      Specified by:
      hashCode in interface org.apache.commons.rdf.api.RDFTerm
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Specified by:
      equals in interface org.apache.commons.rdf.api.IRI
      Specified by:
      equals in interface org.apache.commons.rdf.api.RDFTerm
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getIRIString

      public String getIRIString()
      Specified by:
      getIRIString in interface org.apache.commons.rdf.api.IRI
    • getNodeIDValue

      public String getNodeIDValue()
      Description copied from class: RDFResource
      For blank nodes, return a valid value for the RDF/XML nodeId attribute. For non blank nodes, an exception should be thrown. The method must only be called on blank nodes.
      Specified by:
      getNodeIDValue in class RDFResource
      Returns:
      a valid value for thE RDF/XML nodeId attribute