Class TripleConstraintImpl

java.lang.Object
org.aksw.jenax.arq.util.triple.TripleConstraintImpl
All Implemented Interfaces:
Predicate<org.apache.jena.graph.Triple>, TripleConstraint

public class TripleConstraintImpl extends Object implements TripleConstraint
  • Field Details

    • pattern

      protected org.apache.jena.graph.Triple pattern
    • expr

      protected org.apache.jena.sparql.expr.Expr expr
  • Constructor Details

    • TripleConstraintImpl

      public TripleConstraintImpl(org.apache.jena.graph.Triple pattern, org.apache.jena.sparql.expr.Expr expr)
  • Method Details

    • create

      public static TripleConstraint create(org.apache.jena.sparql.expr.Expr expr)
    • create

      public static TripleConstraint create(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
    • create

      public static TripleConstraint create(org.apache.jena.graph.Triple pattern)
    • create

      public static TripleConstraint create(org.apache.jena.graph.Triple triple, org.apache.jena.sparql.expr.Expr expr)
    • test

      public boolean test(org.apache.jena.graph.Triple t)
      Specified by:
      test in interface Predicate<org.apache.jena.graph.Triple>
    • getMatchTriple

      public org.apache.jena.graph.Triple getMatchTriple()
      Description copied from interface: TripleConstraint
      A possibly (less selective) representation of the constraint as a match triple suitable for pre-filtering using Graph.find(Triple) Must never return null. The most unselective triple pattern is Triple.createMatch(null, null, null).
      Specified by:
      getMatchTriple in interface TripleConstraint
      Returns:
    • isMatchTripleExhaustive

      public boolean isMatchTripleExhaustive()
      Description copied from interface: TripleConstraint
      True if TripleConstraint.getMatchTriple() matches the same set of triples as TripleConstraint.getExpr().
      Specified by:
      isMatchTripleExhaustive in interface TripleConstraint
    • getExpr

      public org.apache.jena.sparql.expr.Expr getExpr()
      Description copied from interface: TripleConstraint
      An expression which only allows a subset of the variables ?s ?p and ?o
      Specified by:
      getExpr in interface TripleConstraint