Package org.aksw.jenax.arq.util.triple
Class TripleConstraintImpl
java.lang.Object
org.aksw.jenax.arq.util.triple.TripleConstraintImpl
- All Implemented Interfaces:
Predicate<org.apache.jena.graph.Triple>,TripleConstraint
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTripleConstraintImpl(org.apache.jena.graph.Triple pattern, org.apache.jena.sparql.expr.Expr expr) -
Method Summary
Modifier and TypeMethodDescriptionstatic TripleConstraintcreate(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) static TripleConstraintcreate(org.apache.jena.graph.Triple pattern) static TripleConstraintcreate(org.apache.jena.graph.Triple triple, org.apache.jena.sparql.expr.Expr expr) static TripleConstraintcreate(org.apache.jena.sparql.expr.Expr expr) org.apache.jena.sparql.expr.ExprgetExpr()An expression which only allows a subset of the variables ?s ?p and ?oorg.apache.jena.graph.TripleA possibly (less selective) representation of the constraint as a match triple suitable for pre-filtering usingGraph.find(Triple)Must never return null.booleanTrue ifTripleConstraint.getMatchTriple()matches the same set of triples asTripleConstraint.getExpr().booleantest(org.apache.jena.graph.Triple t)
-
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
-
create
public static TripleConstraint create(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) -
create
-
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) -
getMatchTriple
public org.apache.jena.graph.Triple getMatchTriple()Description copied from interface:TripleConstraintA possibly (less selective) representation of the constraint as a match triple suitable for pre-filtering usingGraph.find(Triple)Must never return null. The most unselective triple pattern is Triple.createMatch(null, null, null).- Specified by:
getMatchTriplein interfaceTripleConstraint- Returns:
-
isMatchTripleExhaustive
public boolean isMatchTripleExhaustive()Description copied from interface:TripleConstraintTrue ifTripleConstraint.getMatchTriple()matches the same set of triples asTripleConstraint.getExpr().- Specified by:
isMatchTripleExhaustivein interfaceTripleConstraint
-
getExpr
public org.apache.jena.sparql.expr.Expr getExpr()Description copied from interface:TripleConstraintAn expression which only allows a subset of the variables ?s ?p and ?o- Specified by:
getExprin interfaceTripleConstraint
-