Class ContextStatement

    • Constructor Detail

      • ContextStatement

        protected ContextStatement​(Resource subject,
                                   IRI predicate,
                                   Value object,
                                   Resource context)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new Statement with the supplied subject, predicate and object for the specified associated context.
        Parameters:
        subject - The statement's subject, must not be null.
        predicate - The statement's predicate, must not be null.
        object - The statement's object, must not be null.
        context - The statement's context, null to indicate no context is associated.
    • Method Detail

      • getContext

        public Resource getContext()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: Statement
        Gets the context of this statement.
        Specified by:
        getContext in interface Statement
        Overrides:
        getContext in class SimpleStatement
        Returns:
        The statement's context, or null in case of the null context or if not applicable.
      • exactSameContext

        public boolean exactSameContext​(Resource context)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • toString

        public String toString()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        toString in class AbstractStatement