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

Expose Controlled Vocabulary Terms in the API #1510

Closed
posixeleni opened this issue Feb 25, 2015 · 8 comments · Fixed by #9213
Closed

Expose Controlled Vocabulary Terms in the API #1510

posixeleni opened this issue Feb 25, 2015 · 8 comments · Fixed by #9213

Comments

@posixeleni
Copy link
Contributor

With the Native API we should be able to expose controlled vocabulary terms.

For example: this would be helpful if someone wants to use our required Subject controlled vocabulary without having to manually add and update the terms.

See this IRC chat for more information on user needs: http://irclog.greptilian.com/rest/2015-02-07#i_95635

@pdurbin is also stubbing this out here: 9e6c218

@posixeleni posixeleni added this to the In Review - 4.x milestone Feb 25, 2015
@pdurbin
Copy link
Member

pdurbin commented Feb 25, 2015

@pdurbin is also stubbing this out here: 9e6c218

For now the output is this but it's hard-coded to only show subject. We could make it more general. Also, not to open a can of worms but I have no idea what the plan is for languages besides English. Anyway, here's the current output:

{
  "data": [
    "Arts and Humanities",
    "Astronomy and Astrophysics",
    "Business and Management",
    "Chemistry",
    "Earth and Environmental Sciences",
    "Engineering",
    "Medicine, Health & Life Sciences",
    "Computer and Information Science",
    "Law",
    "Mathematical Sciences",
    "Physics",
    "Social Sciences",
    "Other"
  ],
  "status": "OK"
}

@posixeleni
Copy link
Contributor Author

thanks Phil. This will be helpful for OJS so I'm pinging @jwhitney @axfelix

@pdurbin
Copy link
Member

pdurbin commented Feb 25, 2015

That's fine but I'm purposely not documenting it until we decide what we want. "API design is building in future regret." ;)

@pdurbin pdurbin modified the milestones: In Review - 4.0, In Review - 4.x Apr 3, 2015
@pdurbin
Copy link
Member

pdurbin commented Apr 3, 2015

@bencomp
Copy link
Contributor

bencomp commented Feb 10, 2016

See also: #2357

@pdurbin
Copy link
Member

pdurbin commented Oct 14, 2016

This has been requested at IQSS/dataverse-client-java#6

@pdurbin
Copy link
Member

pdurbin commented Dec 2, 2021

Related:

@pdurbin
Copy link
Member

pdurbin commented Jun 17, 2022

"Programmatically determine list of dataset subjects" has been requested at datalad/datalad-dataverse#27 by @mih.

As explained above, years ago we stubbed out an API for this at 9e6c218 but it remains hidden behind the "admin" API.

In practice, integrations still have to hard-code the list of subjects.

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