public class ServiceParams extends Object
BD.SERVICE_PARAM
. There may be zero or more such triple patterns. The
Predicate (key) and Object (val) positions for those triple patterns are
extracted into a ServiceParams
object. For each key, there may be one
or more values.
SERVICE{ bd:serviceParam :key1 :val1 . bd:serviceParam :key1 :val2 . bd:serviceParam :key2 :val3 . }
Constructor and Description |
---|
ServiceParams() |
Modifier and Type | Method and Description |
---|---|
void |
add(org.openrdf.model.URI param,
TermNode value)
Add.
|
void |
clear(org.openrdf.model.URI param)
Clear.
|
boolean |
contains(org.openrdf.model.URI param)
Check for existence.
|
static ServiceParams |
gatherServiceParams(ServiceCallCreateParams createParams)
Gather the service params (any statement patterns with the subject of
BD.SERVICE_PARAM . |
List<TermNode> |
get(org.openrdf.model.URI param)
Helper.
|
TermNode |
get(org.openrdf.model.URI param,
TermNode defaultValue)
Get a singleton value for the specified param.
|
Boolean |
getAsBoolean(org.openrdf.model.URI param)
Helper.
|
Boolean |
getAsBoolean(org.openrdf.model.URI param,
Boolean defaultValue)
Helper.
|
Integer |
getAsInt(org.openrdf.model.URI param)
Helper.
|
Integer |
getAsInt(org.openrdf.model.URI param,
Integer defaultValue)
Helper.
|
org.openrdf.model.Literal |
getAsLiteral(org.openrdf.model.URI param)
Helper.
|
org.openrdf.model.Literal |
getAsLiteral(org.openrdf.model.URI param,
org.openrdf.model.Literal defaultValue)
Helper.
|
Long |
getAsLong(org.openrdf.model.URI param)
Helper.
|
Long |
getAsLong(org.openrdf.model.URI param,
Long defaultValue)
Helper.
|
String |
getAsString(org.openrdf.model.URI param)
Helper.
|
String |
getAsString(org.openrdf.model.URI param,
String defaultValue)
Helper.
|
org.openrdf.model.URI |
getAsURI(org.openrdf.model.URI param)
Helper.
|
org.openrdf.model.URI |
getAsURI(org.openrdf.model.URI param,
org.openrdf.model.URI defaultValue)
Helper.
|
IVariable<IV> |
getAsVar(org.openrdf.model.URI param)
Helper.
|
IVariable<IV> |
getAsVar(org.openrdf.model.URI param,
IVariable<IV> defaultValue)
Helper.
|
Iterator<Map.Entry<org.openrdf.model.URI,List<TermNode>>> |
iterator()
Iterator.
|
void |
set(org.openrdf.model.URI param,
TermNode value)
Set (clear and add).
|
String |
toString() |
public void add(org.openrdf.model.URI param, TermNode value)
public void set(org.openrdf.model.URI param, TermNode value)
public void clear(org.openrdf.model.URI param)
public boolean contains(org.openrdf.model.URI param)
public TermNode get(org.openrdf.model.URI param, TermNode defaultValue)
public Boolean getAsBoolean(org.openrdf.model.URI param)
public Integer getAsInt(org.openrdf.model.URI param)
public Long getAsLong(org.openrdf.model.URI param)
public String getAsString(org.openrdf.model.URI param)
public org.openrdf.model.Literal getAsLiteral(org.openrdf.model.URI param)
public org.openrdf.model.Literal getAsLiteral(org.openrdf.model.URI param, org.openrdf.model.Literal defaultValue)
public org.openrdf.model.URI getAsURI(org.openrdf.model.URI param)
public org.openrdf.model.URI getAsURI(org.openrdf.model.URI param, org.openrdf.model.URI defaultValue)
public IVariable<IV> getAsVar(org.openrdf.model.URI param, IVariable<IV> defaultValue)
public static ServiceParams gatherServiceParams(ServiceCallCreateParams createParams)
BD.SERVICE_PARAM
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.