Skip to main content

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

Request

Supported Methods

GET

Path Variables

Variable

Comment

{project}

The UUID or the URI supplement (textual identifier) of the project to be used.

HTTP Parameters

Parameter

Comment

Type

Required

resource

URI of the resource

String

true

Response

Types of the selected resource

Attribute

Type

Comment

resource

String

URI of the resource

rdfTypes

List of types

List of types that are applied to the resource

Example

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"
        }
    ]
}