| java.lang.Object com.hp.hpl.jena.reasoner.rulesys.impl.LPBindingEnvironment
LPBindingEnvironment | public class LPBindingEnvironment implements BindingEnvironment(Code) | | Implementation of the binding environment interface for use in LP
backward rules.
author: Dave Reynolds version: $Revision: 1.7 $ on $Date: 2008/01/02 12:06:17 $ |
interpreter | protected LPInterpreter interpreter(Code) | | The interpreter which holds the context for this environment
|
bind | public boolean bind(Node var, Node value)(Code) | | Bind a variable in the current envionment to the given value.
Checks that the new binding is compatible with any current binding.
Parameters: var - a Node_RuleVariable defining the variable to bind Parameters: value - the value to bind false if the binding fails |
getGroundVersion | public Node getGroundVersion(Node node)(Code) | | Return the most ground version of the node. If the node is not a variable
just return it, if it is a varible bound in this environment return the binding,
if it is an unbound variable return the variable.
|
instantiate | public Triple instantiate(TriplePattern pattern)(Code) | | Instantiate a triple pattern against the current environment.
This version handles unbound varibles by turning them into bNodes.
Parameters: clause - the triple pattern to match Parameters: env - the current binding environment a new, instantiated triple |
|
|