Web Service Method: Request Types of a Resource
Abstract
Web Service Method: Request Types of a Resource
Description |
---|
Returns a list of all rdf:types for the given resource (for example a concept). |
URL: /PoolParty/api/thesaurus/{project}/getTypes
Supported Methods |
---|
GET |
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 |
Types of the selected resource
Attribute | Type | Comment |
---|---|---|
| String | URI of the resource |
| List of types | List of types that are applied to the resource |
Example Request Types of a skos:collection
http://<server>/PoolParty/api/thesaurus/1DCE0ED2-D7E8-0001-86A1-18652DF0D7A0/getTypes?resource=http://vocabulary.semantic-web.at/cocktails/8e00ef49-8beb-4e59-930a-a79dc05fd2bb
Example Response
{ "resource": { "uri": "http://vocabulary.semantic-web.at/cocktails/8e00ef49-8beb-4e59-930a-a79dc05fd2bb" }, "rdfTypes": [ { "uri": "http://www.w3.org/2004/02/skos/core#Collection" } ] }