Class WrapperBlankNode

  • All Implemented Interfaces:
    org.apache.commons.rdf.api.BlankNode, org.apache.commons.rdf.api.BlankNodeOrIRI, org.apache.commons.rdf.api.RDFTerm

    public class WrapperBlankNode
    extends WrapperBlankNodeOrIRI
    implements org.apache.commons.rdf.api.BlankNode
    A wrapper for Blank Node terms which contains methods that aid authoring wrapping classes.
    • Constructor Detail

      • WrapperBlankNode

        protected WrapperBlankNode​(org.apache.commons.rdf.api.RDFTerm original,
                                   org.apache.commons.rdf.api.Graph graph)
        Create a new subject node with a backing Graph object.
        Parameters:
        original - The subject node, must be a non-null BlankNode
        graph - The wrapped graph, may not be null
    • Method Detail

      • uniqueReference

        public String uniqueReference()
        Specified by:
        uniqueReference in interface org.apache.commons.rdf.api.BlankNode
      • ntriplesString

        public String ntriplesString()
        Specified by:
        ntriplesString in interface org.apache.commons.rdf.api.RDFTerm
      • hashCode

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

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.apache.commons.rdf.api.BlankNode
        Specified by:
        equals in interface org.apache.commons.rdf.api.RDFTerm
        Overrides:
        equals in class Object