Interface RestrictionManager
- Type Parameters:
V-
- All Known Implementing Classes:
RestrictionManagerImpl
public interface RestrictionManager
Interface for associating restrictions with
(query) variables.
- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptiondetermineSatisfiability(org.apache.jena.sparql.expr.Expr expr) Test whether the given expression is satisfiable in regard to the given restrictionsgetOrCreateLocalRestriction(org.apache.jena.sparql.core.Var a) getRestriction(org.apache.jena.sparql.core.Var a) Get the restriction associated with the given variablegetRestriction(org.apache.jena.sparql.expr.Expr expr) Return the restriction associated with as expression.voidstateLiteral(org.apache.jena.sparql.core.Var a, org.apache.jena.sparql.expr.NodeValue b) voidstateNode(org.apache.jena.sparql.core.Var a, org.apache.jena.graph.Node b) voidstateNonEqual(org.apache.jena.sparql.core.Var a, org.apache.jena.sparql.core.Var b) voidstateType(org.apache.jena.sparql.core.Var a, RdfTermType type) void
-
Method Details
-
determineSatisfiability
Test whether the given expression is satisfiable in regard to the given restrictions- Parameters:
expr- The expression to test for satisfiability- Returns:
- The assessment of the satisfiability
-
getRestriction
Get the restriction associated with the given variable- Parameters:
a-- Returns:
-
getRestriction
Return the restriction associated with as expression. If the expression is a variable, getRestriction(Var) is invoked. restriction[concat("a", "b")] = prefixset({"ab"})- Parameters:
expr-- Returns:
-
getOrCreateLocalRestriction
-
stateType
-
stateNode
void stateNode(org.apache.jena.sparql.core.Var a, org.apache.jena.graph.Node b) -
stateUri
-
stateLiteral
void stateLiteral(org.apache.jena.sparql.core.Var a, org.apache.jena.sparql.expr.NodeValue b) -
stateNonEqual
void stateNonEqual(org.apache.jena.sparql.core.Var a, org.apache.jena.sparql.core.Var b)
-