Web Service Method: Export and Download Project Data

Description

Export and download data of a project in RDF format.

Note

This service is the equivalent to the PoolParty frontend functionalityExport RDF Project Data

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

Content-Type

application/json

Request

Supported Methods

POST

Path Variables

Variable

Comment

{project}

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

HTTP Parameters

Parameter

Comment

Type

Required

format

The RDF format in which the returned data should be serialized.

You can use these RDF Serialization Formats as parameter value.

String

true

modules

The list of project modules that should be exported.

You can use these PoolParty Project Modules as parameter value.

Note

To learn more about the syntax to request a list of modules in a single request, please see: Using a List of Request Parameters

Array of String

true

prettyPrint

Pretty prints the exported data

boolean

false

properties

List of properties to exclude from export

Array of String

false

Note

Export of multiple modules only works when you use serialization formats that support named graphs. See comments in RDF Serialization Formats

If you try to export multiple modules in a single request using a serialization format that does not support graphs, you will retrieve the following error response:

{
 "errorMessage": "Serialization formats that do not support named graphs can only export exactly one module",
 "status": 400
}

Response

Selected project data in RDF format.

Example

Example Request

curl --location --request POST 'https://<server>/PoolParty/api/projects/<project>/export'
--header 'Content-Type: application/json'
--data-raw '{
  "modules" : [ "concepts" ],
  "format": "Turtle"
}'

Example Response

@prefix csw: <http://semantic-web.at/ontologies/csw.owl#> .
@prefix dbpedia: <http://dbpedia.org/resource/> .
@prefix freebase: <http://rdf.freebase.com/ns/> .
@prefix opencyc: <http://sw.opencyc.org/concept/> .
@prefix cyc: <http://sw.cyc.com/concept/> .
@prefix ctag: <http://commontag.org/ns#> .

<http://vocabulary.semantic-web.at/cocktails/c56ced28-5ecd-4436-b152-25edf326c07c> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients> .
<http://vocabulary.semantic-web.at/cocktails/7dede323-e986-4417-b723-c9c7a7fe82ba> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Beverages>,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients>,<http://vocabulary.semantic-web.at/cocktail-ontology/Alcoholic-Beverages> .
<http://vocabulary.semantic-web.at/cocktails/8f09ee6f-d5b9-4b8a-aa17-b0665fae4e83> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Beverages>,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients>,<http://vocabulary.semantic-web.at/cocktail-ontology/Alcoholic-Beverages> .
<http://vocabulary.semantic-web.at/cocktails/403d1249-f37f-4f43-bebf-8dde9677d886> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Beverages>,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients>,<http://vocabulary.semantic-web.at/cocktail-ontology/Alcoholic-Beverages> .
<http://vocabulary.semantic-web.at/cocktails/0381bd47-ad07-428a-b5c4-ee2608f2ebd3> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Drinkware> .
<http://vocabulary.semantic-web.at/cocktails/0> a skos:ConceptScheme .
<http://vocabulary.semantic-web.at/cocktails/16b625c5-3930-4cf8-a75b-b25e72f2bfb6> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Beverages>,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients>,<http://vocabulary.semantic-web.at/cocktail-ontology/Alcoholic-Beverages> .
<http://vocabulary.semantic-web.at/cocktails/4c6a85a7-de2a-42a9-9664-3279e53bac48> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Beverages>,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients>,<http://vocabulary.semantic-web.at/cocktail-ontology/Alcoholic-Beverages> .
<http://vocabulary.semantic-web.at/cocktails/7a2ef9c4-4083-4531-9edc-b27e0353349e> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Beverages>,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients>,<http://vocabulary.semantic-web.at/cocktail-ontology/Alcoholic-Beverages> .
<http://vocabulary.semantic-web.at/cocktails/1b9d9c87-9a94-465a-b7e9-feee6c77bf03> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Beverages>,<http://vocabulary.semantic-web.at/cocktail-ontology/Ingredients>,<http://vocabulary.semantic-web.at/cocktail-ontology/Alcoholic-Beverages> .
<http://vocabulary.semantic-web.at/cocktails/a0fba95c-d29e-4954-8800-f5e6de1e6f86> a skos:Concept,<http://vocabulary.semantic-web.at/cocktail-ontology/Cocktail> .

...