Skip to main content

Execute SPARQL Construct Query

Abstract

Execute SPARQL Construct Query

DescriptionExecute SPARQL Construct Query (uv-t-sparqlConstruct):

This DPU transforms input using the SPARQL Construct query provided. The result of the SPARQL Construct - the created triples - is stored to the output.

Note: Internally, the query is translated to SPARQL Update query before it is executed.

It supports RDF Validation extension.

Configuration Parameters

Name

Description

Example

Per-graph execution

If checked query is executed per-graph

true

SPARQL construct query

SPARQL construct query

CONSTRUCT {?s ?p ?o} WHERE {?s ?p ?o}

Inputs and Outputs

Name

Type

Data Unit

Description

Mandatory

input

input

RDFDataUnit

RDF input

(tick)

output

output

RDFDataUnit

transformed RDF output

(tick)
ExamplesGenerate UUIDs with SPARQL Construct

The following image shows a fragment of a pipeline which downloads an Excel file from the server and transforms it into RDF. With a SPARQL Construct we add a skos:prefLabel and convert the URI generated by the Tabular Transformer into a UUID. The DPU configuration is illustrated in the image below.

24576312.png
24576313.png
Download an Excel File Containing Download Links, Convert It to RDF and Write a SPARQL Construct to Configure Another Files Download DPU

The following image shows a fragment of a pipeline which downloads an Excel file from the tmp folder of the UnifiedViews server. The data of the Excel file is subsequently converted to RDF and serves as input for the SPARQL Construct Query. The purpose of this query is to construct the configuration file of the second Files Download DPU. The query creates triples containing the download URI and the file name of the files that are to be downloaded. With this configuration file the Files Download DPU downloads the indicated files. After the files are downloaded they are uploaded to the tmp folder of the UnifiedViews server using the Files Upload DPU. The DPU configuration is illustrated in the image below.

24576314.png
24576316.png