public class RemoteServiceOptions extends ServiceOptionsBase
RemoteServiceOptions options for additional URL
query parameters (defaultGraph, etc), authentication, etc.RemoteServiceFactoryImpl| Constructor and Description |
|---|
RemoteServiceOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAcceptHeader()
The
Accept header. |
SPARQLVersion |
getSPARQLVersion()
Returns if
SPARQLVersion.SPARQL_11 iff the end point supports
SPARQL 1.1. |
boolean |
isBigdataNativeService()
Always returns
false since the service is remote. |
boolean |
isGET()
When
true, use GET for query and otherwise use POST (default
). |
boolean |
isRemoteService()
Always returns
true since the service is remote. |
boolean |
isSparql10()
Return
true iff the end point supports
SPARQL 1.0 |
void |
setAcceptHeader(String newValue)
Set a non-default
Accept header. |
void |
setGET(boolean newValue) |
void |
setSPARQLVersion(SPARQLVersion sparqlVersion) |
String |
toString() |
isBigdataLBS, isRunFirst, setBigdataLBS, setRunFirstpublic final boolean isBigdataNativeService()
false since the service is remote.public final boolean isRemoteService()
true since the service is remote.public boolean isSparql10()
IServiceOptionstrue iff the end point supports
SPARQL 1.0public boolean isGET()
true, use GET for query and otherwise use POST (default
). POST can often handle larger queries than GET
due to limits at the HTTP client layer and will defeat http caching and
thus provide a current view of the committed state of the SPARQL end
point when the end point is a read/write database. However, GET supports
HTTP caching and can scale much better when the SPARQL end point is a
read-only resource or a read-mostly resource where stale reads are
acceptable.public void setGET(boolean newValue)
public String getAcceptHeader()
Accept header.null if the default header should be
used.public void setAcceptHeader(String newValue)
Accept header.newValue - The new value -or- null to clear the old value.public SPARQLVersion getSPARQLVersion()
IServiceOptionsSPARQLVersion.SPARQL_11 iff the end point supports
SPARQL 1.1.
When SPARQLVersion.SPARQL_10, the solutions will be vectored to the end point
using a technique which is compatible with SPARQL 1.0.SPARQLVersionpublic void setSPARQLVersion(SPARQLVersion sparqlVersion)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.