Class: UpdateQueryPayload

UpdateQueryPayload()

Payload object holding common request parameters applicable for the statements endpoint with a sparql update query.

The query is mandatory parameter.

Content type parameter which is used for setting the Content-Type http header is optional and by default application/sparql-update type is set.

Constructor

new UpdateQueryPayload()

Constructs this payload class.

Author:
  • Mihail Radkov
  • Svilen Velikov
Source:

Methods

getDefaultGraphs() → {string|Array.<string>}

Source:
Returns:

Default graphs for the query for retrieving.

Type
string | Array.<string>

getInsertGraphs() → {string|Array.<string>}

Source:
Returns:

Default graphs set for the query for inserting.

Type
string | Array.<string>

getNamedGraphs() → {string|Array.<string>}

Source:
Returns:

Named graphs set for the query for retrieving.

Type
string | Array.<string>

getQuery() → {string}

Source:
Returns:

a query which was populated in the payload.

Type
string

getRemoveGraphs() → {string|Array.<string>}

Source:
Returns:

Default graphs set for the query for removing.

Type
string | Array.<string>

getSupportedContentTypes()

Source:

setDefaultGraphs(defaultGraphsopt) → {UpdateQueryPayload}

One or more named graph URIs to be used as default graph(s) for retrieving.

Parameters:
Name Type Attributes Description
defaultGraphs string | Array.<string> <optional>
Source:
Returns:
Type
UpdateQueryPayload

setInsertGraphs(insertGraphsopt) → {UpdateQueryPayload}

One or more default graphs for inserting statements.

Parameters:
Name Type Attributes Description
insertGraphs string | Array.<string> <optional>
Source:
Returns:
Type
UpdateQueryPayload

setNamedGraphs(namedGraphsopt) → {UpdateQueryPayload}

One or more named graph URIs to be used as named graph(s) for retrieving.

Parameters:
Name Type Attributes Description
namedGraphs string | Array.<string> <optional>
Source:
Returns:
Type
UpdateQueryPayload

setQuery(query) → {UpdateQueryPayload}

Parameters:
Name Type Description
query string

The query as string to be evaluated.

Source:
Returns:
Type
UpdateQueryPayload

setRemoveGraphs(removeGraphsopt) → {UpdateQueryPayload}

One or more default graphs for removing statements.

Parameters:
Name Type Attributes Description
removeGraphs string | Array.<string> <optional>
Source:
Returns:
Type
UpdateQueryPayload

validateParams()

Source: