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

Return altLabels too for REST API "/vocid/label" #640

Closed
DGmaps opened this issue Oct 23, 2017 · 3 comments · Fixed by #981
Closed

Return altLabels too for REST API "/vocid/label" #640

DGmaps opened this issue Oct 23, 2017 · 3 comments · Fixed by #981
Assignees
Milestone

Comments

@DGmaps
Copy link

DGmaps commented Oct 23, 2017

Hi,

I see that in the context of 'Concept-specific methods' the "/vocid/label" allows you to retrieve the prefLabel of a term starting from the uri.

Is it possible to enrich the response in order to retrieve also the altLabel?

Maybe a query that allows to return prefLabel and altLable from the uri already exists, but I did not find it.

Could you please help?

Thank you

@osma osma added this to the Next Tasks milestone Oct 24, 2017
@osma
Copy link
Member

osma commented Oct 24, 2017

There is a data method that returns all the data for a concept, including both prefLabel and altLabel but also a lot of other information. Maybe that would solve your problem?

But returning both prefLabel and altLabels for the label method seems possible too, if you really need it.

@DGmaps
Copy link
Author

DGmaps commented Oct 24, 2017

Hi Osma,

thanks for your prompt reply.

As you said, 'data' method allows to return altLabel, but also a lot of other information that make the response not easy to read. It returns an array of values, and just one of them is the real data set that I need. The others are terms 'related' to the target uri.
If there is a way to filter data 'related' to the target uri, in order to exclude them from the response it could be fine, but until now I have not found a proper filter.

Indeed what I need is a simple response like the one provided by 'label'.

Could you please help me to understand how to obtain the altLabel in addition to prefLabel when I call 'label' ?

@osma
Copy link
Member

osma commented Oct 24, 2017

Getting the altLabel using the label method is not supported at the moment. It should be rather easy to add that functionality. For now we are filing this as an enhancement proposal.

@osma osma changed the title Rest API "/vocid/label" Return altLabels too for REST API "/vocid/label" Oct 24, 2017
@osma osma modified the milestones: Next Tasks, Contribution-dependent features Mar 12, 2018
@osma osma added the size-medium 2 hours to 2 days label Apr 30, 2020
@joelit joelit self-assigned this Apr 30, 2020
@osma osma closed this as completed in #981 May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants