Class RDFStarEncodingStatement

  • All Implemented Interfaces:
    java.io.Serializable, Statement

    class RDFStarEncodingStatement
    extends java.lang.Object
    implements Statement
    Represents a Statement whose subject or object may be an RDF-star triple that will be encoded as a special IRI value on getSubject() and getObject().
    • Field Detail

    • Constructor Detail

      • RDFStarEncodingStatement

        RDFStarEncodingStatement​(Statement delegate)
    • Method Detail

      • getSubject

        public Resource getSubject()
        Description copied from interface: Statement
        Gets the subject of this statement.
        Specified by:
        getSubject in interface Statement
        Returns:
        The statement's subject.
      • getPredicate

        public IRI getPredicate()
        Description copied from interface: Statement
        Gets the predicate of this statement.
        Specified by:
        getPredicate in interface Statement
        Returns:
        The statement's predicate.
      • getObject

        public Value getObject()
        Description copied from interface: Statement
        Gets the object of this statement.
        Specified by:
        getObject in interface Statement
        Returns:
        The statement's object.
      • getContext

        public Resource getContext()
        Description copied from interface: Statement
        Gets the context of this statement.
        Specified by:
        getContext in interface Statement
        Returns:
        The statement's context, or null in case of the null context or if not applicable.
      • equals

        public boolean equals​(java.lang.Object other)
        Description copied from interface: Statement
        Compares this statement to another object.
        Specified by:
        equals in interface Statement
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - the object to compare this statement to
        Returns:
        true if the other object is an instance of Statement and if their subjects, predicates, objects and contexts are equal; false otherwise