Skip to main content

Web Service Method: Update Project Data Using SPARQL

Abstract

Web Service Method: Update Project Data Using SPARQL

Description

Update raw RDF data of a PoolParty project using the SPARQL update language. Typical use cases are INSERT, DELETE and INSERT/DELETE operations on existing project data.

URL: /PoolParty/api/projects/{project}/update

Note

Updates that are performed with this method are not reflected in the project history. Consider alternative services like add Literal, add Relation, remove Literal, etc. which support history tracking.

For more detailed information about SPARQL update please see: SPARQL 1.1 Graph Update (W3C).

Warning

For the correct usage of SPARQL Updates you have to be aware of the graphs, into which PoolParty projects are structured.

Find more details here: PoolParty Project Modules

Request

Supported Methods

POST

Content-Type: text/plain

Path Variables

Variable

Comment

{project}

The UUID or the URI supplement (textual identifier) of the project to be used.

Request Object

  • SPARQL update query

Response

Returns status 200 if method was executed successfully.

Example

Usage of a REST Client

The following screenshots show the usage of the import service using Postman:

1) Usage of header: Content-Type text/plain

23901068.png

2) Formulate an appropriate SPARQL Update.

In this example skos:notation with value "1234" is add to a specific concept:

23901067.png