public class LPBindingEnvironment extends Object implements BindingEnvironment
Constructor and Description |
---|
LPBindingEnvironment(LPInterpreter interpeter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bind(Node var,
Node value)
Bind a variable in the current environment to the given value.
|
Node |
getGroundVersion(Node node)
Return the most ground version of the node.
|
Triple |
instantiate(TriplePattern pattern)
Instantiate a triple pattern against the current environment.
|
public LPBindingEnvironment(LPInterpreter interpeter)
public Node getGroundVersion(Node node)
getGroundVersion
in interface BindingEnvironment
public boolean bind(Node var, Node value)
bind
in interface BindingEnvironment
var
- a Node_RuleVariable defining the variable to bindvalue
- the value to bindpublic Triple instantiate(TriplePattern pattern)
instantiate
in interface BindingEnvironment
pattern
- the triple pattern to matchLicenced under the Apache License, Version 2.0