Interface GraphQLQuery
- All Superinterfaces:
Query<graphql.ExecutionResult>
Executable GraphQL query. This interface extends Query but parameters are treated as GraphQL input values
and not as RDF parameters. As a result Query.parameters() will always be empty and instead {#variables()} should be used.
- Since:
- 5.1
- Version:
- 5.1
- Author:
- Evren Sirin
-
Field Summary
Fields inherited from interface com.complexible.stardog.api.Query
NO_ID, NO_TIMEOUT -
Method Summary
Modifier and TypeMethodDescriptionNot supported for GraphQL queries.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.schema()Returns the schema name associated with the query ornullif ther eis no schema.Select the GraphQL schema that will be used for executing the query.timeout(long theTimeout) Set the timeout for query execution.Returns th input variables for the GraphQL query.
-
Method Details
-
dataset
Not supported for GraphQL queries. -
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
Select the GraphQL schema that will be used for executing the query. The provided name should be the name of a GraphQL schema that has beensavedin the system. The schema will be used for validating the query as well as the translation of the inputs and outputs. -
schema
String schema()Returns the schema name associated with the query ornullif ther eis no schema.- Returns:
- the schema name associated with the query
-
timeout
Set the timeout for query execution. -
variables
Returns th input variables for the GraphQL query.- Returns:
- the input variables
-
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
-