Class Triple

    • Method Detail

      • subject

        public RdfResource subject()
        Description copied from interface: RdfTriple
        Returns the subject of the triple.

        The subject is either an absolute IRI or a blank node identifier, denoting the resource being described by the statement.

        Specified by:
        subject in interface RdfTriple
        Returns:
        a RdfResource representing the subject of the triple; never null
      • predicate

        public RdfResource predicate()
        Description copied from interface: RdfTriple
        Returns the predicate of the triple.

        The predicate is an absolute IRI that specifies the property or relationship between the subject and the object of the triple.

        Specified by:
        predicate in interface RdfTriple
        Returns:
        a RdfResource representing the predicate of the triple; never null
      • object

        public RdfTerm object()
        Description copied from interface: RdfTriple
        Returns the object of the triple.

        The object can be:

        Specified by:
        object in interface RdfTriple
        Returns:
        a RdfTerm representing the object of the triple; never null
      • 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 java.lang.Object
        Returns:
        a string describing this RDF term.
      • hashCode

        public int hashCode()
        Description copied from interface: RdfTerm
        Returns a hash code value for this RDF term.
        Specified by:
        hashCode in interface RdfTerm
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code consistent with RdfTerm.equals(Object).
      • 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 java.lang.Object
        Parameters:
        obj - the object to compare with this term.
        Returns:
        true if the specified object is equal to this term; false otherwise.
      • printTriple

        static final java.lang.StringBuilder printTriple​(java.lang.StringBuilder builder,
                                                         RdfResource subject,
                                                         RdfResource predicate,
                                                         RdfTerm object)
      • printTripleTerm

        static final java.lang.StringBuilder printTripleTerm​(java.lang.StringBuilder builder,
                                                             RdfTriple triple)