public class ServiceCallUtility extends Object
ServiceCall
invocations.Constructor and Description |
---|
ServiceCallUtility() |
Modifier and Type | Method and Description |
---|---|
static org.openrdf.query.BindingSet |
bigdata2Openrdf(LexiconRelation lex,
Set<IVariable<?>> vars,
IBindingSet in)
Convert the
IBindingSet into an openrdf BindingSet . |
static org.openrdf.query.BindingSet[] |
convert(LexiconRelation lex,
Set<IVariable<?>> projectedVars,
IBindingSet[] in)
Convert
IBindingSet [] to openrdf BindingSet []. |
static BigdataURI |
getConstantServiceURI(IVariableOrConstant<?> serviceRef)
Return the effective service URI IFF the value expression for the service
reference is a constant.
|
static BigdataURI |
getServiceURI(IVariableOrConstant<?> serviceRef,
IBindingSet bset)
Return the effective service URI.
|
static IBindingSet[] |
resolve(AbstractTripleStore db,
org.openrdf.query.BindingSet[] serviceResults)
Batch resolve BigdataValues to IVs.
|
public static BigdataURI getConstantServiceURI(IVariableOrConstant<?> serviceRef)
null
.RuntimeException
- if the service reference is a constant but does not evaluate
to a URI
.NotMaterializedException
- if the service reference evaluates to an IV
which is
not materialized.public static BigdataURI getServiceURI(IVariableOrConstant<?> serviceRef, IBindingSet bset)
bset
- A solution which will be used to evaluate the service
reference value expression.RuntimeException
- if the service reference is not bound.RuntimeException
- if the service reference does not evaluate to a URI
.NotMaterializedException
- if the service reference evaluates to an IV
which is
not materialized.public static org.openrdf.query.BindingSet bigdata2Openrdf(LexiconRelation lex, Set<IVariable<?>> vars, IBindingSet in)
IBindingSet
into an openrdf BindingSet
.
vars
- The set of variables which are to be projected (optional).
When given, only the projected variables are in the returned
BindingSet
.in
- A bigdata IBindingSet
with materialized values.NotMaterializedException
- if a non-inline IV
has not had its IVCache
set.public static org.openrdf.query.BindingSet[] convert(LexiconRelation lex, Set<IVariable<?>> projectedVars, IBindingSet[] in)
IBindingSet
[] to openrdf BindingSet
[].projectedVars
- When given, variables which are not projected will not be
present in the returned solutions (optional).in
- The solutions to be converted (required).public static IBindingSet[] resolve(AbstractTripleStore db, org.openrdf.query.BindingSet[] serviceResults)
Note: This will be a distributed operation on a cluster.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.