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:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Value

    Value.Type
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SimpleTriple(Resource subject, IRI predicate, Value object)
    Creates a new Triple with the supplied subject, predicate and object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares this triple to another object.
    Gets the object of this triple.
    Gets the predicate of this triple.
    Gets the subject of this triple.
    int
    Computes the hash code of this triple.
    Returns the String-value of a Value object.
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Resource

    isResource
    Modifier and Type
    Method
    Description
    default boolean
    Check if the object is an instance of the given type.

    Methods inherited from interface Triple

    getType, isTriple
    Modifier and Type
    Method
    Description
    default Value.Type
     
    default boolean
    Check if the object is an instance of the given type.

    Methods inherited from interface Value

    isBNode, isIRI, isLiteral
    Modifier and Type
    Method
    Description
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
  • 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