Class SimpleTriple

    • Constructor Detail

      • SimpleTriple

        protected SimpleTriple​(Resource subject,
                               IRI predicate,
                               Value object)
        Creates a new Triple with the supplied subject, predicate and object.

        Note that creating SimpleStatement objects directly via this constructor is not the recommended approach. Instead, use an instance of ValueFactory to create new Triple objects.

        Parameters:
        subject - The triple's subject, must not be null.
        predicate - The triple's predicate, must not be null.
        object - The triple's object, must not be null.
        See Also:
        SimpleValueFactory.createTriple(Resource, IRI, Value)