Skip to content

Commit

Permalink
SWORD: support author affiliation, contributor name/type #899
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Oct 17, 2014
1 parent df7bdfc commit 5257f0d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/api/data-deposit/create-dataset-899-expansion
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 -s --insecure --data-binary "@scripts/api/data-deposit/data/atom-entry-study-899-expansion.xml" -H "Content-Type: application/atom+xml" -u $USERNAME:$PASSWORD https://$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/collection/dataverse/$DATAVERSE_ALIAS \
| xmllint -format -
27 changes: 27 additions & 0 deletions scripts/api/data-deposit/data/atom-entry-study-899-expansion.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:dcterms="http://purl.org/dc/terms/">
<dcterms:title>“Changes in test-taking patterns over time” concerning the Flynn Effect in Estonia</dcterms:title>
<!-- description of the data rather than the article -->
<dcterms:description>The dataset from our previous Intelligence paper consists of data collected with the National Intelligence Tests (NIT, Estonian adaptation) in two historical time points: in 1934/36 (N=890) and 2006 (N=913) for students with an average age of 13. The data-file consists of information about cohort, age, and gender and test results at the item level for nine of the ten NIT subtests and subtest scores for the 10th subtest. Three answer types are separated: right answer, wrong answer and missing answer. Data can be used for psychometric research of cohort and sex differences at the scale and item level.</dcterms:description>
<!-- Author and Affiliation are being used by this particular user. Affiliation is another attribute hack -->
<dcterms:creator affiliation="Department of Psychology, University of Tartu, Estonia">Must, Olev</dcterms:creator>
<dcterms:creator affiliation="Department of Psychology, University of Tartu, Estonia">Must, Aasa</dcterms:creator>
<dcterms:contributor type="Funder">Estonian Scientific Foundation: grant no 2387 and 5856. European Social Fund: a Primus grant (#3-8.2/60) to Anu Realo. Baylor University financial support for data quality control in archive.</dcterms:contributor>
<!-- dataset producer rather than Journal Publisher: -->
<dcterms:publisher>Insert Dataset publisher</dcterms:publisher>
<dcterms:rights>Journal copyright, license or terms of use notice</dcterms:rights>
<!-- production date in Dataverse: -->
<!-- date, if published: -->
<dcterms:date>2014-09-22</dcterms:date>
<dcterms:available>2014-09-22</dcterms:available>
<!-- URI attributes, if published: -->
<dcterms:isReferencedBy agency="DOI" IDNo="" holdingsURI="http://dx.doi.org/">Must, O., &amp; Must, A. (2014). Sample submission. Journal Of Plugin Testing, 1(2).</dcterms:isReferencedBy>
<!-- Discipline, subject classification, keywords & coverage, if journal has enabled these fields enabled in article metadata forms -->
<dcterms:subject>Academic discipline</dcterms:subject>
<dcterms:subject>Subject classification</dcterms:subject>
<dcterms:subject>Article keywords</dcterms:subject>
<dcterms:subject>Geographic coverage</dcterms:subject>
<!-- Supplementary file: subject, type -->
<dcterms:subject>Keyword 1, keyword 2, keyword 3</dcterms:subject>
<dcterms:type>Data Set</dcterms:type>
</entry>
6 changes: 6 additions & 0 deletions scripts/api/data-deposit/dataset-field
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
if [ -z "$1" ]; then
curl -s http://localhost:8080/api/datasetfield
else
curl -s http://localhost:8080/api/datasetfield/$1
fi
3 changes: 3 additions & 0 deletions scripts/database/reference_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ INSERT INTO foreignmetadatafieldmapping (id, foreignfieldxpath, metadatablocknam
INSERT INTO foreignmetadatafieldmapping (id, foreignfieldxpath, metadatablockname, datasetfieldname, isattribute, parentfieldmapping_id, foreignmetadataformatmapping_id) VALUES (12, ':coverage', 'geospatial', 'otherGeographicCoverage', FALSE, NULL, 1 );
INSERT INTO foreignmetadatafieldmapping (id, foreignfieldxpath, metadatablockname, datasetfieldname, isattribute, parentfieldmapping_id, foreignmetadataformatmapping_id) VALUES (13, ':type', 'socialscience', 'kindOfData', FALSE, NULL, 1 );
INSERT INTO foreignmetadatafieldmapping (id, foreignfieldxpath, metadatablockname, datasetfieldname, isattribute, parentfieldmapping_id, foreignmetadataformatmapping_id) VALUES (14, ':source', 'socialscience', 'dataSources', FALSE, NULL, 1 );
INSERT INTO foreignmetadatafieldmapping (id, foreignfieldxpath, metadatablockname, datasetfieldname, isattribute, parentfieldmapping_id, foreignmetadataformatmapping_id) VALUES (15, 'affiliation', 'citation', 'authorAffiliation', TRUE, 3, 1 );
INSERT INTO foreignmetadatafieldmapping (id, foreignfieldxpath, metadatablockname, datasetfieldname, isattribute, parentfieldmapping_id, foreignmetadataformatmapping_id) VALUES (16, ':contributor', 'citation', 'contributorName', FALSE, NULL, 1 );
INSERT INTO foreignmetadatafieldmapping (id, foreignfieldxpath, metadatablockname, datasetfieldname, isattribute, parentfieldmapping_id, foreignmetadataformatmapping_id) VALUES (17, 'type', 'citation', 'contributorType', TRUE, 16, 1 );

0 comments on commit 5257f0d

Please sign in to comment.