--
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/feb3f42a-f7c1-4d6b-ae7f-52e624e06353%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I don't believe we have an API for all of this but we definitely should. Can you please open an issue at https://github.com/IQSS/dataverse/issues ? Thanks!If you want to get a "true" or "false" back for if a file is restricted, you could try something like this:
curl -s 'https://dataverse.harvard.edu/api/datasets/:persistentId?persistentId=doi:10.7910/DVN/TJCLKP' | jq '.data.latestVersion.files[0].restricted'But that's just the "restricted" boolean... nothing about Terms of Use.I hope this helps,Phil
On Wed, May 2, 2018 at 9:52 AM, Laura Huisintveld <laura.hu...@dans.knaw.nl> wrote:
Hello all,
I have a question about the Dataverse API. Is it possible to retrieve with the API information about access restrictions on file level?
I do see the Terms of Use and the Licence information in the JSON output, but I do not see any access information on file level.
This dataset for example has one restricted, and one unrestricted file: https://dataverse.nl/api/datasets/:persistentId/?persistentId=hdl:10411/IW15PI
I can't see if a file is restricted if I look up the metadata through the API, but maybe there is another API call I can use?
Thanks!
Laura
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/feb3f42a-f7c1-4d6b-ae7f-52e624e06353%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for your reply Phil.
I have created an issue: https://github.com/IQSS/dataverse/issues/4645
Op woensdag 2 mei 2018 17:52:39 UTC+2 schreef Philip Durbin:
I don't believe we have an API for all of this but we definitely should. Can you please open an issue at https://github.com/IQSS/dataverse/issues ? Thanks!If you want to get a "true" or "false" back for if a file is restricted, you could try something like this:
curl -s 'https://dataverse.harvard.edu/api/datasets/:persistentId?persistentId=doi:10.7910/DVN/TJCLKP' | jq '.data.latestVersion.files[0].restricted'But that's just the "restricted" boolean... nothing about Terms of Use.I hope this helps,Phil
On Wed, May 2, 2018 at 9:52 AM, Laura Huisintveld <laura.hu...@dans.knaw.nl> wrote:
Hello all,
I have a question about the Dataverse API. Is it possible to retrieve with the API information about access restrictions on file level?
I do see the Terms of Use and the Licence information in the JSON output, but I do not see any access information on file level.
This dataset for example has one restricted, and one unrestricted file: https://dataverse.nl/api/datasets/:persistentId/?persistentId=hdl:10411/IW15PI
I can't see if a file is restricted if I look up the metadata through the API, but maybe there is another API call I can use?
Thanks!
Laura
--
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+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/feb3f42a-f7c1-4d6b-ae7f-52e624e06353%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
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/6de35869-0fe1-41da-9ede-327785c45ece%40googlegroups.com.