Web Service Method: Update Literal of a Concept or Concept Scheme
Web Service Method: Update Literal of a Concept or Concept Scheme
Description |
---|
Updates a SKOS literal of a concept or concept scheme. |
URL: /PoolParty/api/thesaurus/{project}/updateLiteral
Supported Methods |
---|
POST |
application/x-www-form-urlencoded
Variable | Comment |
---|---|
| The UUID or the URI supplement (textual identifier) of the project to be used. |
Parameter | Comment | Type | Required |
---|---|---|---|
resource | URI of the Resource | String | true |
newLabel | The new value for the RDF literal | String | true |
oldLabel | The outdated value of the RDF literal | String | true |
language | The language of the literal - default language if not defined | String | false |
property | The type of skos label. Possible values for concepts: Possible values for concept schemes: See full list of Retrieve Properties in API Requests. | String | true |
http status code: 200 if OK.
Note
The service checks if operation is SKOS compatible. For example you can not update an alternative label so that it matches a preferred label. In such cases a http status code 400 is returned, together with a message about the causes for the bad request error.
POST Request
http://<server-url>/PoolParty/api/thesaurus/APItests/updateLiteral?resource=http://test.info/glossary/2614&newLabel=Test preflabel&oldLabel=carbon price&language=en&property=skos:prefLabel