Web Service Method: Request Top Concepts of a Concept Scheme
Web Service Method: Request Top Concepts of a Concept Scheme
Description |
|---|
Returns a list of direct top concepts for a concept scheme. |
URL: /PoolParty/api/thesaurus/{project}/topconcepts
Supported Methods |
|---|
GET |
Variable | Comment |
|---|---|
| The UUID or the URI supplement (textual identifier) of the project to be used. |
Parameter | Comment | Type | Required |
|---|---|---|---|
scheme | URI of the concept scheme | String | true |
properties | List of concept properties that should be fetched. E.g. you can choose a list like: See full list of Retrieve Properties in API Requests. | String | false |
language | Only top concepts with labels in this language will be displayed. The default language of the project will be used if no language is given. | String | false |
workflowStatus | Set to | boolean | false |
Array of concepts of the PoolParty thesaurus.
Attribute | Type | Comment |
|---|---|---|
| String | URI of the concept |
| String | Preferred label |
| Array of Strings | Alternative labels |
| Array of Strings | Hidden labels |
| Array of Strings | Definitions |
| Array of Strings | Broader concepts |
| Array of Strings | Narrower concepts |
| Array of Strings | Related concepts |
| Array of Strings | Concept schemes |
Example Request
http://<server-url>/PoolParty/api/thesaurus/bb2df837-7654-4c89-8994-d23f5468b56b/topconcepts?scheme=http://vocabulary.semantic-web.at/doku/Regions
Example Response
[
{
uri: "http://vocabulary.semantic-web.at/doku/Oceania",
prefLabel: "Oceania"
},
{
uri: "http://vocabulary.semantic-web.at/doku/Americas",
prefLabel: "Americas"
},
{
uri: "http://vocabulary.semantic-web.at/doku/Europe",
prefLabel: "Europe"
},
{
uri: "http://vocabulary.semantic-web.at/doku/Africa",
prefLabel: "Africa"
},
{
uri: "http://vocabulary.semantic-web.at/doku/Antartica",
prefLabel: "Antartica"
},
{
uri: "http://vocabulary.semantic-web.at/doku/Asia",
prefLabel: "Asia"
}
]