com.bigdata.rdf.sail.bench
Class NanoSparqlClient.QueryOptions

java.lang.Object
  extended by com.bigdata.rdf.sail.bench.NanoSparqlClient.QueryOptions
All Implemented Interfaces:
Cloneable
Enclosing class:
NanoSparqlClient

public static class NanoSparqlClient.QueryOptions
extends Object
implements Cloneable

Options for the query.


Field Summary
 Boolean analytic
          When non-null, either enable or disable the analytic query package for the request.
 String baseURI
          The baseURI (optional).
 String defaultGraphUri
          The default graph URI (optional).
 long elapsedNanos
           
 boolean explain
          When true, request an explanation for the query.
 String method
          Either GET or POST.
 long nresults
           
 String password
           
 String queryStr
          The SPARQL query.
 QueryType queryType
           
 boolean quiet
           
 String serviceURL
          The URL of the SPARQL endpoint.
 boolean showParseTree
          When true, show the parsed operator tree (on the client side).
 boolean showQuery
          When true, show the original query string.
 boolean showResults
          When true, show the results of the query (on stdout).
 String source
          The source for this query (e.g., the file from which it was read) (optional).
 int timeout
          The connection timeout (ms).
 AbstractTripleStore tmpKb
          Temp KB provided to the parser.
 boolean useCaches
          When false, the http connection will be directed to ignore caches.
 String username
           
 boolean verbose
           
 
Constructor Summary
NanoSparqlClient.QueryOptions()
          The query is not specified to the constructor must be set explicitly by the caller.
NanoSparqlClient.QueryOptions(String serviceURL, String queryStr)
           
 
Method Summary
 NanoSparqlClient.QueryOptions clone()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tmpKb

public AbstractTripleStore tmpKb
Temp KB provided to the parser. This KB is empty, but the parser needs one to resolve RDF Values to IVs. So, we need one to parse even though we are not going to do any resolution.


serviceURL

public String serviceURL
The URL of the SPARQL endpoint.


username

public String username

password

public String password

source

public String source
The source for this query (e.g., the file from which it was read) (optional).


queryStr

public String queryStr
The SPARQL query.


baseURI

public String baseURI
The baseURI (optional).


defaultGraphUri

public String defaultGraphUri
The default graph URI (optional).


explain

public boolean explain
When true, request an explanation for the query.


analytic

public Boolean analytic
When non-null, either enable or disable the analytic query package for the request.


timeout

public int timeout
The connection timeout (ms).


method

public String method
Either GET or POST. In general, GET is more transparent while POST is not cached.


useCaches

public boolean useCaches
When false, the http connection will be directed to ignore caches.


showQuery

public boolean showQuery
When true, show the original query string.


showParseTree

public boolean showParseTree
When true, show the parsed operator tree (on the client side).


showResults

public boolean showResults
When true, show the results of the query (on stdout).


verbose

public boolean verbose

quiet

public boolean quiet

queryType

public QueryType queryType

nresults

public long nresults

elapsedNanos

public long elapsedNanos
Constructor Detail

NanoSparqlClient.QueryOptions

public NanoSparqlClient.QueryOptions()
The query is not specified to the constructor must be set explicitly by the caller.


NanoSparqlClient.QueryOptions

public NanoSparqlClient.QueryOptions(String serviceURL,
                                     String queryStr)
Parameters:
serviceURL - The SPARQL end point URL.
queryStr - The SPARQL query.
Method Detail

clone

public NanoSparqlClient.QueryOptions clone()
Overrides:
clone in class Object


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.