public class BindingSetUtil extends Object
BindingSet
handling.Constructor and Description |
---|
BindingSetUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
agreesOn(org.openrdf.query.BindingSet first,
org.openrdf.query.BindingSet second)
Returns true if the value of every binding name on first agrees with
the value of the binding name (if exists) on the second bindingset
|
static boolean |
hasBNode(org.openrdf.query.BindingSet bindings) |
static org.openrdf.query.BindingSet |
merge(org.openrdf.query.BindingSet first,
org.openrdf.query.BindingSet second)
Merge two bindingSet into one.
|
static org.openrdf.query.BindingSet |
project(Collection<String> vars,
org.openrdf.query.BindingSet bindings)
Project a binding set to a potentially smaller binding set that
contain only the variable bindings that are in vars set.
|
static org.openrdf.query.BindingSet |
project(Collection<String> vars,
org.openrdf.query.BindingSet bindings,
org.openrdf.query.BindingSet parent) |
static Collection<String> |
projectNames(Collection<String> vars,
org.openrdf.query.BindingSet bindings)
Returns a subset of vars with the variable names that appear in bindings.
|
public static org.openrdf.query.BindingSet merge(org.openrdf.query.BindingSet first, org.openrdf.query.BindingSet second)
first
- second
- public static org.openrdf.query.BindingSet project(Collection<String> vars, org.openrdf.query.BindingSet bindings)
bindings
- vars
- public static org.openrdf.query.BindingSet project(Collection<String> vars, org.openrdf.query.BindingSet bindings, org.openrdf.query.BindingSet parent)
public static Collection<String> projectNames(Collection<String> vars, org.openrdf.query.BindingSet bindings)
vars
- bindings
- public static boolean hasBNode(org.openrdf.query.BindingSet bindings)
public static boolean agreesOn(org.openrdf.query.BindingSet first, org.openrdf.query.BindingSet second)
first
- second
- Copyright © 2015 SemaGrow - FP7. All rights reserved.