Class SimpleTriple

java.lang.Object
org.eclipse.rdf4j.model.base.AbstractTriple
org.eclipse.rdf4j.model.impl.SimpleTriple
All Implemented Interfaces:
Serializable, Resource, Triple, Value

public class SimpleTriple extends AbstractTriple
A simple default implementation of the Triple interface.
Author:
Pavel Mihaylov
See Also:
  • Constructor Details

    • 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:
  • Method Details