Class GenericStatement<R extends Resource,​I extends IRI,​V extends Value>

    • Field Detail

      • subject

        protected final R extends Resource subject
      • predicate

        protected final I extends IRI predicate
      • object

        protected final V extends Value object
      • context

        protected final R extends Resource context
    • Constructor Detail

      • GenericStatement

        protected GenericStatement​(R subject,
                                   I predicate,
                                   V object,
                                   R context)
        Creates a new Statement with the supplied subject, predicate and object for the specified associated context.

        Note that creating an objects directly via this constructor is not the recommended approach. Instead, use a ValueFactory (obtained from your repository or by using SimpleValueFactory.getInstance()) to create new Statement objects.

        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.