IQSS logo

IRC log for #dataverse, 2017-08-23

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:04 jri joined #dataverse
01:43 djbrooke joined #dataverse
02:23 djbrooke joined #dataverse
04:04 jri joined #dataverse
04:11 djbrooke joined #dataverse
05:03 bjonnh joined #dataverse
05:03 karissa joined #dataverse
05:46 djbrooke joined #dataverse
07:01 jri joined #dataverse
07:04 jri joined #dataverse
08:47 djbrooke joined #dataverse
12:36 djbrooke joined #dataverse
13:06 djbrooke joined #dataverse
13:10 andrewSC joined #dataverse
14:07 djbrooke joined #dataverse
14:15 timmo joined #dataverse
14:18 mdehollander joined #dataverse
14:21 mdehollander joined #dataverse
14:22 dataverse-user joined #dataverse
14:22 dataverse-user I have a question
14:23 mdehollander Hi, I have a issue using the python api to query demo.dataverse.org. When I invoke the get_dataset_by_doi function I get an empty response, while I do have a Dataverse object. Is this a known issue?
14:25 pdurbin mdehollander: I wonder if that method is being exercised by Travis tests at https://travis-ci.org/IQSS/dataverse-client-python
14:25 pdurbin andrewSC: have you tried that method?
14:25 pdurbin dataverse-user: hi, what is your question?
14:26 dataverse-user Can i change the language at the dataverse?
14:26 dataverse-user I want change for the spanish
14:28 pdurbin dataverse-user: https://dataverse.scholarsportal.info has a button for French and http://opendata.pku.edu.cn has a button for Chinese, but these are both forks. :(
14:28 dataverse-user To use the repository, what should I preserve in the design?
14:29 pdurbin dataverse-user: a long time ago, someone was working on a Spanish translation: https://groups.google.com/d/msg/dataverse-community/qr-Hnop_xpc/ehC1KxNNEgAJ
14:30 djbrooke joined #dataverse
14:30 pdurbin mdehollander: I see I used that method way back when I opened https://github.com/IQSS/dataverse-client-python/issues/28 . If you suspect it's now broken, can you please open an issue on that repo?
14:31 pdurbin dataverse-user: I'm not a designer, so I'm not sure how to answer your question. :)
14:31 dataverse-user To use dataverse
14:32 dataverse-user I can change all the style
14:32 dataverse-user ??
14:32 dataverse-user Can I change everything?
14:33 pdurbin EVERYTHING! :)
14:33 pdurbin You have full control over CSS because the file you provide (optionally) gets loaded last.
14:33 dataverse-user Traducir  My question is, because I saw other repositories that use dataverse and leave the dataverse logos  97/5000 Mi pregunta es, porque vi otros repositorios que usan dataverse y dejan los logotipos dataverse Sugerir un cambio
14:36 pdurbin dataverse-user: the reason why most installations of Dataverse leave the logo is that the customization feature is very new. It shipped with 4.7 ( https://dataverse.org/blog/dataverse-47-release ). Most sites haven't upgraded yet or having tried this new feature. We're eager to get feedback on it.
14:37 andrewSC pdurbin, mdehollander: I unfortunately haven' tried that method
14:37 dataverse-user Ok Thank you
14:37 mdehollander @pdurbin, I don't see a test for get_dataset_by_doi, although it is uses in setup_method in test_dataset.py. But i don't think you can directly call it
14:37 andrewSC s/haven'/haven't/
14:38 pdurbin andrewSC: do you have any advise for mdehollander on using Dataverse APIs from Python?
14:38 pdurbin advice*
14:38 mdehollander i got into this because it is in the Usage information on github. Is there another working function to retrieve files for a dataset?
14:39 mdehollander For the get_dataset_by_doi I will fill in an issue on github
14:39 pdurbin mdehollander: sure, you can get a list of files like this, for example: https://dataverse.harvard.edu/api/datasets/:persistentId?persistentId=doi:10.7910/DVN/TJCLKP
14:41 mdehollander @pdurbin: Is that also possible with the python api?
14:42 pdurbin mdehollander: nope. Want to make a pull request? :)
14:43 pdurbin mdehollander: can you please open an issue for that too? :)
14:44 mdehollander Is there a way to see some more verbose output with the python api? Maybe debug mode? So that at least you can see where it goes wrong and which api call it is making?
14:46 pdurbin mdehollander: I'm looking here but I don't see anything about a debug mode: https://github.com/IQSS/dataverse-client-python/blob/66a01e216812b338c9502911a2d022223b9094a7/dataverse/dataverse.py#L142
14:47 andrewSC pdurbin: unfortunately not, other than to consider the native api with the requests module--it's how we're going to do the backend for the tool we're writing
14:47 andrewSC until I can get to the python module ;)
14:48 pdurbin yeah, makes sense. have you used `requests`, mdehollander ?
14:52 scolapasta joined #dataverse
14:52 mdehollander like in the python requests module? Yes, I have used that in the past.
14:52 pdurbin mdehollander: thanks for opening https://github.com/IQSS/dataverse-client-python/issues/43 . andrewSC do you feel like adding a little snippet of code as a comment for how to download a list of files by DOI using requests?
14:52 pdurbin mdehollander: oh good, you've used requests.
14:52 * pdurbin waves at scolapasta
14:53 andrewSC pdurbin: possibly, I'll see if I can get to it
14:54 pdurbin andrewSC: cool
14:54 pdurbin mdehollander: is that all you need for now? A list of files by DOI?
14:55 mdehollander I can see what I can do. At the moment I was just giving the python API a try to see how it performs. Not sure what I need in the future. Is the python API maintained by IQSS or is it a community effort?
14:57 pdurbin mdehollander: you're making me realize that http://guides.dataverse.org/en/4.7.1/api/client-libraries.html could be improved to state more explicitly that these client libraries are maintained by the community.
14:58 pdurbin I guess I could add a note to the README.
15:00 djbrooke joined #dataverse
15:00 pdurbin added: clarify that the library is maintained by community · IQSS/dataverse-client-python@0730a65 - https://github.com/IQSS/dataverse-client-python/commit/0730a65
15:01 pdurbin mdehollander: if it helps, I added this one-liner to the issue you opened. It lists files by DOI: curl https://demo.dataverse.org/api/datasets/:persistentId?persistentId=doi:10.5072/FK2/PVH0HO  | jq '.data.latestVersion.files[].dataFile.filename'
15:03 mdehollander @pdurbin, thanks. I will have a look at it.
15:07 pdurbin sure
15:29 pameyer joined #dataverse
15:32 pameyer mdehollander: I'm with andrewSC on using the dataverse native API + python requests module. I've had reasonable luck with it so far
15:52 djbrooke joined #dataverse
15:54 djbrooke joined #dataverse
16:05 pdurbin good
16:21 djbrooke joined #dataverse
16:40 jri joined #dataverse
16:42 donsizemore joined #dataverse
17:00 djbrooke joined #dataverse
17:35 pameyer joined #dataverse
18:20 axfelix joined #dataverse
18:23 axfelix joined #dataverse
18:33 djbrooke joined #dataverse
18:49 djbrooke joined #dataverse
19:10 axfelix joined #dataverse
20:20 pameyer joined #dataverse
21:22 djbrooke joined #dataverse
21:23 dataverse-user joined #dataverse
21:23 dataverse-user Hi philip
21:23 dataverse-user I have a question
21:24 dataverse-user Where is the document from the main page of dataverse in the project package or when it is installed?
21:25 dataverse-user to modify it
21:46 djbrooke joined #dataverse
21:50 djbrooke joined #dataverse
21:52 dataverse-user joined #dataverse
21:52 pdurbin dataverse-user: dataverse.xhtml is both the home page and the page for a dataverse: https://github.com/IQSS/dataverse/blob/v4.7.1/src/main/webapp/dataverse.xhtml
21:56 pdurbin But instead of modifying it, you should try using the "Custom Homepage" feature to replace it with an HTML page you create: http://guides.dataverse.org/en/4.7.1/installation/config.html#custom-homepage
22:01 dataverse-user joined #dataverse
22:22 djbrooke joined #dataverse
23:11 jri joined #dataverse
23:33 djbrooke joined #dataverse

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.