Package com.complexible.stardog.api
Interface BooleanQuery
A boolean (ASK) SPARQL query.
- Since:
- 2.0
- Version:
- 6.0
- Author:
- Michael Grove
-
Field Summary
Fields inherited from interface com.complexible.stardog.api.Query
NO_ID, NO_TIMEOUT -
Method Summary
Modifier and TypeMethodDescriptionSpecify the dataset this query will be executed against.limit(long theLimit) Set the maximum number of results that can be returned by this query.offset(long theOffset) Set the offset of the query results.Set the parameter to the xsd:boolean valueSet the parameter to the xsd:byte valueSet the parameter to the xsd:double valueSet the parameter to the xsd:float valueSet the parameter to the xsd:int valueSet the parameter to the xsd:long valueSet the parameter to the xsd:short valueSet the value of the parameterSet the parameter to the specified value.Set the parameter to the xsd:string valueSet the parameter to the xsd:URI valueSet the parameter to the xsd:date valueparameter(String theName, GregorianCalendar theValue) Set the parameter to the xsd:dateTime valuereasoning(boolean theReasoningType) {Specify whether you would like the query to be executed with reasoning.{Sets the schema that will be used by this query orif reasoning will not be used.nulltimeout(long theTimeout) Set the timeout for query execution.
-
Method Details
-
dataset
Specify the dataset this query will be executed against. This defines the active graph for the query and will override anything specified within the query. UseDatasets.NO_DATASETremove the dataset. -
limit
Set the maximum number of results that can be returned by this query. Setting the limit on the query will override any limit specified in the original query string, however, setting the limit toReadQuery.NO_LIMITwill not remove the limit if it is specified in the query, but you can use it to remove a limit that has already been set if there was not a limit specified in the query originally. -
offset
Set the offset of the query results. Similar toReadQuery.limit()this will override an offset in the query, and you can useReadQuery.NO_OFFSETto remove an offset specified on the query, but not in the query string. -
timeout
Set the timeout for query execution. -
reasoning
{Specify whether you would like the query to be executed with reasoning. For update queries, the reasoning flag only affects the evaluation of WHERE clauses in DELETE/INSERT queries.
You can only modify the reasoning flag of a query outside of a transaction. If querying within a transaction you can only use the
reasoning flag associated with the connection.If the reasoning schema is explicitly set via the
}Query.schema(String)function beforehand then callingreasoning(true)will have no effect. If the schema is not set then callingreasoning(true)is equivalent to setting the schema to thedefault schema. Callingreasoning(false)is always equivalent to setting the schema to thenull schema. -
schema
{Sets the schema that will be used by this query orif reasoning will not be used. If the schema is set with this functionnullQuery.reasoning(boolean)function is not needed to be called.} -
parameter
Set the value of the parameter -
parameter
Set the parameter to the xsd:int value -
parameter
Set the parameter to the xsd:long value -
parameter
Set the parameter to the xsd:float value -
parameter
Set the parameter to the xsd:double value -
parameter
Set the parameter to the xsd:short value -
parameter
Set the parameter to the xsd:boolean value -
parameter
Set the parameter to the xsd:byte value -
parameter
Set the parameter to the xsd:string value -
parameter
Set the parameter to the xsd:date value -
parameter
Set the parameter to the xsd:dateTime value -
parameter
Set the parameter to the xsd:URI value -
parameter
Set the parameter to the specified value. Convenience method which will delegate to one of the other parameter(...) methods
-