From a60bd78f25a87fd2f3b8863f1623733727b60874 Mon Sep 17 00:00:00 2001 From: Bryon Jacob Date: Tue, 2 Nov 2021 14:38:47 -0500 Subject: [PATCH] Updating to match Content-types from platform --- src/main/resources/world/data/api/swagger.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/resources/world/data/api/swagger.json b/src/main/resources/world/data/api/swagger.json index f02bf8d..da33eaf 100644 --- a/src/main/resources/world/data/api/swagger.json +++ b/src/main/resources/world/data/api/swagger.json @@ -12769,9 +12769,12 @@ "post": { "consumes": [ "application/json-l", - "application/json" + "application/json", + "application/n-triples", + "text/turtle", + "application/rdf+xml" ], - "description": "Append JSON data to a stream associated with a dataset. \n\ndata.world streams are append-only by default. Alternatively, if a primary key is specified (see: `POST:/streams/{owner}/{id}/{streamId}/schema`), data.world will replace records with the same primary key value.\n\n**Streams don't need to be created before you can append data to them**. They will be created on-demand, when the first record is appended or by defining its schema.\n\nMultiple records can be appended at once by using JSON-L (`application/json-l`) as the request content type.\n\n**IMPORTANT**\n\nData uploaded to a dataset via a stream is not immediatelly processed. Instead, it is processed automatically in accordance with the dataset settings (default: daily) or as a result of calling `POST:/datasets/{owner}/{id}/sync`.\n\nOnce processed, the contents of a stream will appear as part of the respective dataset as a `.jsonl` file (e.g. `my-stream` will produce a file named `my-stream.jsonl`).", + "description": "Append JSON or RDF data to a stream associated with a dataset. \n\ndata.world streams are append-only by default. Alternatively, if a primary key is specified (see: `POST:/streams/{owner}/{id}/{streamId}/schema`), data.world will replace records with the same primary key value.\n\n**Streams don't need to be created before you can append data to them**. They will be created on-demand, when the first record is appended or by defining its schema.\n\nMultiple records can be appended at once by using JSON-L (`application/json-l`) as the request content type.\n\n**IMPORTANT**\n\nData uploaded to a dataset via a stream is not immediatelly processed. Instead, it is processed automatically in accordance with the dataset settings (default: daily) or as a result of calling `POST:/datasets/{owner}/{id}/sync`.\n\nOnce processed, the contents of a stream will appear as part of the respective dataset as a `.jsonl` file (e.g. `my-stream` will produce a file named `my-stream.jsonl`).\n\nRDF datatypes will be aggregated into a single RDF graph - each payload can contain an arbitrary subgraph, and the resulting graph will be the union of those graphs.", "operationId": "appendRecords", "parameters": [ { @@ -14783,4 +14786,4 @@ "name": "DOIs" } ] -} \ No newline at end of file +}