Interface GraphQLQuery
-
- All Superinterfaces:
Query<graphql.ExecutionResult>
public interface GraphQLQuery extends Query<graphql.ExecutionResult>
Executable GraphQL query. This interface extends
Querybut parameters are treated as GraphQL input values and not as RDF parameters. As a resultQuery.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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GraphQLQuerydataset(Dataset theDataset)Not supported for GraphQL queries.GraphQLQueryparameter(java.lang.String theName, boolean theValue)Set the parameter to the xsd:boolean valueGraphQLQueryparameter(java.lang.String theName, byte theValue)Set the parameter to the xsd:byte valueGraphQLQueryparameter(java.lang.String theName, double theValue)Set the parameter to the xsd:double valueGraphQLQueryparameter(java.lang.String theName, float theValue)Set the parameter to the xsd:float valueGraphQLQueryparameter(java.lang.String theName, int theValue)Set the parameter to the xsd:int valueGraphQLQueryparameter(java.lang.String theName, long theValue)Set the parameter to the xsd:long valueGraphQLQueryparameter(java.lang.String theName, short theValue)Set the parameter to the xsd:short valueGraphQLQueryparameter(java.lang.String theName, Value theValue)Set the value of the parameterGraphQLQueryparameter(java.lang.String theName, java.lang.Object theObj)Set the parameter to the specified value.GraphQLQueryparameter(java.lang.String theName, java.lang.String theValue)Set the parameter to the xsd:string valueGraphQLQueryparameter(java.lang.String theName, java.net.URI theURI)Set the parameter to the xsd:URI valueGraphQLQueryparameter(java.lang.String theName, java.util.Date theValue)Set the parameter to the xsd:date valueGraphQLQueryparameter(java.lang.String theName, java.util.GregorianCalendar theValue)Set the parameter to the xsd:dateTime valueGraphQLQueryreasoning(boolean theReasoningType){Specify whether you would like the query to be executed with reasoning.java.lang.Stringschema()Returns the schema name associated with the query ornullif ther eis no schema.GraphQLQueryschema(java.lang.String theSchemaName)Select the GraphQL schema that will be used for executing the query.GraphQLQuerytimeout(long theTimeout)Set the timeout for query execution.default java.util.Map<java.lang.String,java.lang.Object>variables()Returns th input variables for the GraphQL query.
-
-
-
Method Detail
-
dataset
GraphQLQuery dataset(Dataset theDataset)
Not supported for GraphQL queries.
-
reasoning
GraphQLQuery reasoning(boolean theReasoningType)
{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
GraphQLQuery schema(java.lang.String theSchemaName)
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
java.lang.String schema()
Returns the schema name associated with the query ornullif ther eis no schema.- Returns:
- the schema name associated with the query
-
timeout
GraphQLQuery timeout(long theTimeout)
Set the timeout for query execution.
-
variables
default java.util.Map<java.lang.String,java.lang.Object> variables()
Returns th input variables for the GraphQL query.- Returns:
- the input variables
-
parameter
GraphQLQuery parameter(java.lang.String theName, Value theValue)
Set the value of the parameter
-
parameter
GraphQLQuery parameter(java.lang.String theName, int theValue)
Set the parameter to the xsd:int value
-
parameter
GraphQLQuery parameter(java.lang.String theName, long theValue)
Set the parameter to the xsd:long value
-
parameter
GraphQLQuery parameter(java.lang.String theName, float theValue)
Set the parameter to the xsd:float value
-
parameter
GraphQLQuery parameter(java.lang.String theName, double theValue)
Set the parameter to the xsd:double value
-
parameter
GraphQLQuery parameter(java.lang.String theName, short theValue)
Set the parameter to the xsd:short value
-
parameter
GraphQLQuery parameter(java.lang.String theName, boolean theValue)
Set the parameter to the xsd:boolean value
-
parameter
GraphQLQuery parameter(java.lang.String theName, byte theValue)
Set the parameter to the xsd:byte value
-
parameter
GraphQLQuery parameter(java.lang.String theName, java.lang.String theValue)
Set the parameter to the xsd:string value
-
parameter
GraphQLQuery parameter(java.lang.String theName, java.util.Date theValue)
Set the parameter to the xsd:date value
-
parameter
GraphQLQuery parameter(java.lang.String theName, java.util.GregorianCalendar theValue)
Set the parameter to the xsd:dateTime value
-
parameter
GraphQLQuery parameter(java.lang.String theName, java.net.URI theURI)
Set the parameter to the xsd:URI value
-
parameter
GraphQLQuery parameter(java.lang.String theName, java.lang.Object theObj)
Set the parameter to the specified value. Convenience method which will delegate to one of the other parameter(...) methods
-
-