File tags in native API

28 views
Skip to first unread message

Thurston Arthritis

unread,
Jan 3, 2017, 11:36:17 AM1/3/17
to Dataverse Users Community
I would be extremely interested in the ability to retrieve file tags as part of metadata for an API GET request on a file.  Just wondering if this functionality exists and if not has it been discussed?  I was not able to find anything in the documentation concerning this and it seems reasonable to have the ability to retrieve the tags assigned to a file through an API call.

many thanks

Philip Durbin

unread,
Jan 3, 2017, 12:09:53 PM1/3/17
to dataverse...@googlegroups.com
Yes, this has been discussed at https://github.com/IQSS/dataverse/issues/3067 and I would recommend leaving a comment on that issue and/or subscribing to it for updates.

I agree with you that this (and all functionality) should be available via API, which is why I opened https://github.com/IQSS/dataverse/issues/3440 . I just adjusted the description of that issue and linked to the issue above.

If you happen to be running your own installation of Dataverse and have direct access to the Solr server, tags are indexed under "fileTag" and "fileTags". You can see this, for example, under the "File Tag" facet at https://dataverse.harvard.edu/dataverse/harvard?q=&types=files

I hope this helps,

Phil


On Tue, Jan 3, 2017 at 11:36 AM, Thurston Arthritis <unc....@gmail.com> wrote:
I would be extremely interested in the ability to retrieve file tags as part of metadata for an API GET request on a file.  Just wondering if this functionality exists and if not has it been discussed?  I was not able to find anything in the documentation concerning this and it seems reasonable to have the ability to retrieve the tags assigned to a file through an API call.

many thanks

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/fa2b5129-e08c-427b-9111-7282c8008d84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Thurston Arthritis

unread,
Jan 3, 2017, 12:38:07 PM1/3/17
to Dataverse Users Community, philip...@harvard.edu
Thanks for the feedback.  We are not running our own install (but using https://dataverse.unc.edu/).  

Is there any timeline on getting file tags included in a GET request?  I am trying to determine the most effective way of organizing my files in the Dataverse and file tags are my first choice, but I need the ability to retrieve tags through the API to make it useful for my processes.

------ verbose reason for wanting file tags from API GET request -------
I have loads of datasets and documents I want to dump into the Dataverse and I will be using the API to 'validate' our Dataverse repository against a database of files I 'plan' to load into the Dataverse.  I want to be able to simply pull the tags I apply to files in the Dataverse and not have to recreate them in my database of files by hand, or have them get out of sync because I forgot to update my database after applying tags in the Dataverse.  Having the API return the latest tags for files would be ideal.

- cheers  

Philip Durbin

unread,
Jan 3, 2017, 1:14:24 PM1/3/17
to dataverse...@googlegroups.com
I'm pretty sure the fix is straightforward so I just made this pull request: https://github.com/IQSS/dataverse/pull/3553

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Thurston Arthritis

unread,
Jan 3, 2017, 2:38:09 PM1/3/17
to Dataverse Users Community, philip...@harvard.edu
Super!  That will really help having the API send the tag metadata for the files.

- cheers
Reply all
Reply to author
Forward
0 new messages