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"
    }
},
@osma osma added this to the Next Tasks milestone Jan 14, 2016
@osma osma modified the milestones: Next Tasks, 1.6 Feb 16, 2016
henriyli pushed a commit that referenced this issue Mar 29, 2016
henriyli pushed a commit that referenced this issue Mar 30, 2016
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