SPARQL Update

Manipulator

This node updates triples in a Semantic Web endpoint based on the triples from the input table. It is mandatory to choose a column for "Update value".

In order to prepend namespaces it is necessary to choose Prepend in the settings dialogue.

Additionally, you have to select further columns for subject, predicate and object. If all triple columns are selected (i.e. subject, predicate, object), the table is read out row-wise. It is possible to leave out subject, predicate, object cells empty; but at least one of these cells has to be non-empty.
Always the least significant element is updated with the entry in column "Update value". For instance, the following inputs are permitted:

Subject Predicate Object Update value Which element is updated?
Peter Martin Subject
Country Home Predicate
Germany Austria Object
Peter Country Home Predicate
Peter Country Germany Austria Object


If only one or two of the triple columns are picked, only these selected columns will be read-out. For instance, if you desire to update an object in a specific triple like
Subject Predicate Object Update value Which element is updated?
Peter Country Germany Austria Object
but only subject and predicate column are chosen, the update query will be interpreted as
Subject Predicate Object Update value Which element is updated?
Peter Country Austria Predicate
This may yield wrong results.

Functionality is provided using the Apache Jena Framework

Input Ports

  1. Type: Semantic Web Connection
    Semantic Web connection
  2. Type: Data
    Table containing triples and graph names

Output Ports

  1. Type: Semantic Web Connection
    Semantic Web connection

Extension

This node is part of the extension

KNIME Semantic Web

v4.0.0

Short Link

Drag node into KNIME Analytics Platform