Skip to main content

Web Service Method: Request Project Data Using SPARQL

Abstract

Web Service Method: Request Project Data Using SPARQL

Description

Request PoolParty project data using the SPARQL language. Typical use cases are specific read operations on project data that are not covered by other API services like Web Service Method: Request a Concept's Details, Web Service Method: Request Broader Concepts, etc.

URL: /PoolParty/sparql/{project}

Note

For more detailed information about SPARQL please see: SPARQL 1.1 Query language (W3C).

See also: HTTP Web Services Based on the SPARQL Endpoint

Request

Supported Methods

POST

Content-Type: application/x-www-form-urlencoded

Path Variables

Variable

Comment

{project}

Use UUID or URI supplement (textual identifier) of the project.

HTTP Parameters

Parameter

Comment

Type

Required

query

SPARQL query. Usage of a URL encoded query is recommended.

String

true

format

The expected result format. You can use e.g. text/html orapplication/json

String

false

Note

SPARQL endpoint can be accessed without credentials.

Request Payload

  • SPARQL query

  • result format

Response

SPARQL query result in selected format.

Example

Usage of a REST Client

The following screenshot shows the usage of the SPARQL endpoint using Postman:

  • Usage of header: Content-Type application/x-www-form-urlencoded (1)

  • Formulate appropriate SPARQL query and define the response format of the result set (2).

23901070.png