Skip to main content

Web Service Method: Request Property Values of a Resource

Abstract

Web Service Method: Request Property Values of a Resource

Description

Returns values of a specific property of a selected resource (e.g. a concept).

URL: /PoolParty/api/thesaurus/{project}/getPropertyValues

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

property

URI of the property

String

true

Response

Values of the selected property

Attribute

Type

Comment

resource

String

URI of the resource

property

String

URI of the property

values

List of values

Values the resource has

Example

Example Request

http://<server>/PoolParty/api/thesaurus/1DCE0ED2-D7E8-0001-86A1-18652DF0D7A0/getPropertyValues?resource=http://vocabulary.semantic-web.at/cocktails/2d85fb1b-96cb-4c48-8df5-707032f34e71&property=http://vocabulary.semantic-web.at/cocktail-ontology/image

Example Response

{
    "resource": {
        "uri": "http://vocabulary.semantic-web.at/cocktails/2d85fb1b-96cb-4c48-8df5-707032f34e71"
    },
    "property": {
        "uri": "http://vocabulary.semantic-web.at/cocktail-ontology/image"
    },
    "values": [
        {
            "uri": "http://upload.wikimedia.org/wikipedia/commons/thumb/3/37/MargaritaReal.jpg/440px-MargaritaReal.jpg"
        }
    ]
}