-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from IQSS/master
2nd Beta Deployment, 5/20
- Loading branch information
Showing
59 changed files
with
3,450 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ michael-local | |
ehthumbs.db | ||
Thumbs.db | ||
.vagrant | ||
*.pyc | ||
scripts/api/py_api_wrapper/demo-data/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Data Deposit API | ||
================ | ||
|
||
Please note that while Dataverse Network (DVN) 3.6 and higher support a | ||
new Data Deposit API documented at | ||
http://thedata.harvard.edu/guides/dataverse-api-main.html#data-deposit-api | ||
the API has not yet been added Dataverse 4.0 Beta. That work will be | ||
completed in https://redmine.hmdc.harvard.edu/issues/3385 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ Contents: | |
:maxdepth: 2 | ||
|
||
dev-main | ||
tools | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
===== | ||
Tools | ||
===== | ||
|
||
PageKite | ||
++++++++ | ||
|
||
PageKite is a fantastic service that can be used to share your | ||
local development environment over the Internet on a public IP address. | ||
|
||
With PageKite running on your laptop, the world can access a URL such as | ||
http://pdurbin.pagekite.me to see what you see at http://localhost:8080 | ||
|
||
Sign up at https://pagekite.net and follow the installation instructions or simply download https://pagekite.net/pk/pagekite.py | ||
|
||
The first time you run ``./pagekite.py`` a file at ``~/.pagekite.rc`` will be | ||
created. You can edit this file to configure PageKite to serve up port 8080 | ||
(the default GlassFish HTTP port) or the port of your choosing. | ||
|
||
According to https://pagekite.net/support/free-for-foss/ PageKite (very generously!) offers free accounts to developers writing software the meets http://opensource.org/docs/definition.php such as Dataverse. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
USERNAME=pete | ||
PASSWORD=pete | ||
DVN_SERVER=localhost:8181 | ||
DATAVERSE_ALIAS=peteTop | ||
curl --insecure --data-binary "@scripts/api/data-deposit/data/atom-entry-study.xml" -H "Content-Type: application/atom+xml" https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/collection/dataverse/$DATAVERSE_ALIAS \ | ||
| xmllint -format - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
modified from http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_editingcontent_metadata | ||
comments at https://docs.google.com/document/d/1Rn70XItfA6_mJ4JA3I7m4em0spfdXIIHhwkrgCl40uE/edit?usp=sharing | ||
see also https://redmine.hmdc.harvard.edu/issues/3246 | ||
--> | ||
<entry xmlns="http://www.w3.org/2005/Atom" | ||
xmlns:dcterms="http://purl.org/dc/terms/"> | ||
<!-- some embedded metadata --> | ||
<dcterms:title>Roasting at Home</dcterms:title> | ||
<dcterms:creator>Peets, John</dcterms:creator> | ||
<dcterms:creator>Stumptown, Jane</dcterms:creator> | ||
<!-- Producer with financial or admin responsibility of the data --> | ||
<dcterms:publisher>Coffee Bean State University</dcterms:publisher> | ||
<!-- related publications --> | ||
<dcterms:isReferencedBy holdingsURI="http://dx.doi.org/10.1038/dvn333" agency="DOI" IDNo="10.1038/dvn333">Peets, J., & Stumptown, J. (2013). Roasting at Home. New England Journal of Coffee, 3(1), 22-34.</dcterms:isReferencedBy> | ||
<!-- production date --> | ||
<dcterms:date>2013-07-11</dcterms:date> | ||
<!-- Other Identifier for the data in this study (or potentially global id if unused) --> | ||
<!-- | ||
<dcterms:identifier>hdl:1XXZY.1/XYXZ</dcterms:identifier> | ||
--> | ||
<dcterms:description>Considerations before you start roasting your own coffee at home.</dcterms:description> | ||
<!-- keywords --> | ||
<dcterms:subject>coffee</dcterms:subject> | ||
<dcterms:subject>beverage</dcterms:subject> | ||
<dcterms:subject>caffeine</dcterms:subject> | ||
<!-- geographic coverage --> | ||
<dcterms:coverage>United States</dcterms:coverage> | ||
<dcterms:coverage>Canada</dcterms:coverage> | ||
<!-- kind of data --> | ||
<dcterms:type>aggregate data</dcterms:type> | ||
<!-- List of sources of the data collection--> | ||
<dcterms:source>Stumptown, Jane. 2011. Home Roasting. Coffeemill Press.</dcterms:source> | ||
<!-- restrictions --> | ||
<dcterms:rights>Creative Commons CC-BY 3.0 (unported) http://creativecommons.org/licenses/by/3.0/</dcterms:rights> | ||
<!-- related materials --> | ||
<dcterms:relation>Peets, John. 2010. Roasting Coffee at the Coffee Shop. Coffeemill Press</dcterms:relation> | ||
</entry> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -x | ||
USERNAME=pete | ||
PASSWORD=pete | ||
DVN_SERVER=localhost:8181 | ||
#GLOBAL_ID=hdl:TEST/12345 | ||
GLOBAL_ID=`scripts/api/data-deposit/list-datasets | xpath '//id/text()' | cut -d'/' -f11,12` | ||
#curl --insecure -X DELETE https://$DVN_SERVER/api/datasets/$DATABASE_ID?key=$USERNAME | ||
curl --insecure -i -X DELETE https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/edit/study/$GLOBAL_ID | ||
#| xmllint -format - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
USERNAME=pete | ||
PASSWORD=pete | ||
DVN_SERVER=localhost:8181 | ||
DATAVERSE_ALIAS=peteTop | ||
curl --insecure https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/collection/dataverse/$DATAVERSE_ALIAS \ | ||
| xmllint -format - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
curl --insecure https://pete:pete@localhost:8181/dvn/api/data-deposit/v1/swordv2/service-document | xmllint -format - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
USERNAME=pete | ||
PASSWORD=pete | ||
DVN_SERVER=localhost:8181 | ||
#GLOBAL_ID=hdl:TEST/12345 | ||
GLOBAL_ID=`scripts/api/data-deposit/list-datasets | xpath '//id/text()' | cut -d'/' -f11,12` | ||
curl --insecure -s https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/edit/study/$GLOBAL_ID \ | ||
| xmllint -format - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
#scripts/api/data-deposit/show-statement | xpath "//entry/content/@*[name()='type' or name()='src']" | ||
scripts/api/data-deposit/show-statement | xpath '//entry/id/text()' | cut -d'/' -f11,12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
USERNAME=pete | ||
PASSWORD=pete | ||
DVN_SERVER=localhost:8181 | ||
GLOBAL_ID=`scripts/api/data-deposit/list-datasets | xpath '//id/text()' | cut -d'/' -f11,12` | ||
curl --insecure -s https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/statement/study/$GLOBAL_ID \ | ||
| xmllint -format - \ | ||
#| xpath '//entry/title' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
USERNAME=pete | ||
PASSWORD=pete | ||
DVN_SERVER=localhost:8181 | ||
GLOBAL_ID=`scripts/api/data-deposit/list-datasets | xpath '//id/text()' | cut -d'/' -f11,12` | ||
curl -s --insecure --data-binary @scripts/api/data-deposit/data/example.zip -H "Content-Disposition: filename=example.zip" -H "Content-Type: application/zip" -H "Packaging: http://purl.org/net/sword/package/SimpleZip" https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/edit-media/study/$GLOBAL_ID \ | ||
| xmllint -format - |
Oops, something went wrong.