Notes Services
Notes Services
Notes services provide methods to manage notes assigned to concepts.
Note
These services are a programmatic equivalent to manually Adding Notes to your Concepts.
Web Service Method: Create a New Note for a Concept
Web Service Method: Create a New Note for a Concept
Description |
---|
Creates a new note for a concept. |
URL: /PoolParty/api/thesaurus/{project}/createNote
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 |
---|---|---|---|
concept | URI of the concept that should get the note. | String | true |
title | Title of the note | String | true |
comment | Comment of the note | String | |
type | Type of the note. Can be either | String | true |
http status code 200if OK.
POST Request Example
http://<server-url>/PoolParty/api/thesaurus/<project-Id>/createNote?concept=http://rockefeller.poolparty.biz/Eurovoc/8&title=My note&type=historyNote&comment=The comment
Web Service Method: Delete a Concept Note
Web Service Method: Delete a Concept Note
Description |
---|
Deletes a concept note. |
URL: /PoolParty/api/thesaurus/{project}/deleteNote
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 |
---|---|---|---|
concept | URI of the concept the note should be deleted from. | String | true |
bNodeId | Blank node ID | String | true |
http status code 200 if OK.
POST Request Example
http://<server-url>/PoolParty/api/thesaurus/<project-Id>/deleteNote?concept=http://rockefeller.poolparty.biz/Eurovoc/8&bNodeId=node1a728uifrx8
Web Service Method: Request Concept Notes
Web Service Method: Request Concept Notes
Description |
---|
Returns a list of notes of a concept. |
URL: /PoolParty/api/thesaurus/{project}/notes
Supported Methods |
---|
GET |
Variable | Comment |
---|---|
| The UUID or the URI supplement (textual identifier) of the project to be used. |
Parameter | Comment | Type | Required |
---|---|---|---|
concept | URI of the concept | String | true |
Notes of the requested concept.
Attribute | Type | Comment |
---|---|---|
| String | URI of the concept |
| String | Preferred label |
| Strings | Alternative labels |
| Strings | Hidden labels |
| Strings | Definitions |
| Strings | Broader concepts |
http://<server-url>/PoolParty/api/thesaurus/<projectID>/notes?concept=<concept-uri>
GET Request
http://<server-url>/PoolParty/api/thesaurus/bb2df837-7654-4c89-8994-d23f5468b56b/notes?concept=http://vocabulary.semantic-web.at/doku/Americas
Example Response
[ { "uri": "node1a728uifrx4", "title": "Test history note", "comment": "This note describes the history", "created": "2015-12-21T16:50:16Z", "creator": "huberf", "type": "http://www.w3.org/2004/02/skos/core#historyNote" }, { "uri": "node1a728uifrx3", "title": "An editorial note", "comment": "Containing editorial description.", "created": "2015-12-21T16:49:42Z", "creator": "huberf", "type": "http://www.w3.org/2004/02/skos/core#editorialNote" }, { "uri": "node1a728uifrx2", "title": "A change note", "comment": "With description of latest change", "created": "2015-12-21T16:49:21Z", "creator": "huberf", "type": "http://www.w3.org/2004/02/skos/core#changeNote" } ]