Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST search method: ask for preflabels in all languages #432

Closed
osma opened this issue Jan 14, 2016 · 0 comments
Closed

REST search method: ask for preflabels in all languages #432

osma opened this issue Jan 14, 2016 · 0 comments
Labels
Milestone

Comments

@osma
Copy link
Member

osma commented Jan 14, 2016

The REST search method currently returns the prefLabel of the concept in at most two languages (lang and labellang).

Web developers at the National Library of Finland who are using the method for e.g. autocomplete functionality in a web CMS have requested to get all the languages in a single call.

This could be implemented by adding another extension using the fields parameter: fields=prefLabels would cause a new property to be added to the result objects, e.g.

{
    "uri": "http://www.yso.fi/onto/yso/p19378",
    "type": [
        "skos:Concept"
    ],
    "localname": "p19378",
    "prefLabel": "cat",
    "lang": "en",
    "vocab": "yso",
    "prefLabels": {
        "fi": "kissa",
        "sv": "katt",
        "en": "cat"
    }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants