Class StatementPattern

java.lang.Object
org.eclipse.rdf4j.query.algebra.AbstractQueryModelNode
org.eclipse.rdf4j.query.algebra.StatementPattern
All Implemented Interfaces:
Serializable, Cloneable, QueryModelNode, TupleExpr, VariableScopeChange
Direct Known Subclasses:
EmptyStatementPattern, FedXStatementPattern, TrueStatementPattern

public class StatementPattern extends AbstractQueryModelNode implements TupleExpr
A tuple expression that matches a statement pattern against an RDF graph. Statement patterns can be targeted at one of three context scopes: all contexts, null context only, or named contexts only.
See Also:
  • Constructor Details

    • StatementPattern

      public StatementPattern(Var subject, Var predicate, Var object)
      Creates a statement pattern that matches a subject-, predicate- and object variable against statements from all contexts.
    • StatementPattern

      public StatementPattern(StatementPattern.Scope scope, Var subject, Var predicate, Var object)
      Creates a statement pattern that matches a subject-, predicate- and object variable against statements from the specified context scope.
    • StatementPattern

      public StatementPattern(Var subject, Var predicate, Var object, Var context)
      Creates a statement pattern that matches a subject-, predicate-, object- and context variable against statements from all contexts.
    • StatementPattern

      public StatementPattern(StatementPattern.Scope scope, Var subjVar, Var predVar, Var objVar, Var conVar)
      Creates a statement pattern that matches a subject-, predicate-, object- and context variable against statements from the specified context scope.
  • Method Details