Web Service Method: Remove Relation Between Two Concepts
Web Service Method: Remove Relation Between Two Concepts
Description |
---|
Removes a relation between two concepts. This is the opposite functionality of Web Service Method: Add Relation Between Two Concepts. |
URL: /PoolParty/api/thesaurus/{project}/removeRelation
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 |
---|---|---|---|
sourceConcept | URI of the source Concept | String | true |
targetConcept | URI of the target Concept | String | true |
property | The relation type. E.g. you can choose a property like: See full list of Retrieve Properties in API Requests. | String | true |
http status code: 200if OK.
Note
The service checks if the operation is SKOS compatible. For example you can not remove a relationship that causes a disintegration of the hierarchical structure of the thesaurus. In such cases an 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/removeRelation?sourceConcept=http://test.info/glossary/1913&targetConcept=http://test.info/glossary/2614&property=narrower