Package com.complexible.stardog.api

# Interface UpdateQuery

All Superinterfaces:
  `Query<Void>`

public interface UpdateQuery extends Query<Void>

A SPARQL Update query

Since:
  2.0
Version:
  5.0
Author:
  Michael Grove

- ## Field Summary

  ### Fields inherited from interface com.complexible.stardog.api.Query

  `NO_ID, NO_TIMEOUT`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `UpdateQuery`
  `reasoning(boolean theReasoningFlag)`
  Specify whether you would like the query to be executed with reasoning.

  ### Methods inherited from interface com.complexible.stardog.api.Query

  `baseURI, dataset, dataset, execute, explain, explain, explain, getID, getSchema, hint, hints, id, isReasoningEnabled, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameter, parameters, queryString, schema, timeout, timeout, toString`

- ## Method Details

  - ### reasoning

    UpdateQuery reasoning(boolean theReasoningFlag)

    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 calling `reasoning(true)` will have no effect. If the schema is not set then calling `reasoning(true)` is equivalent to setting the schema to the `default schema`. Calling `reasoning(false)` is always equivalent to setting the schema to the `null schema`.

    Specified by:
      `reasoning` in interface `Query<Void>`
    Parameters:
      `theReasoningFlag` - the reasoning flag
    Returns:
      this query