cirneco 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +57 -0
  3. data/.travis.yml +17 -0
  4. data/Gemfile +5 -0
  5. data/Gemfile.lock +129 -0
  6. data/LICENSE.md +21 -0
  7. data/README.md +44 -0
  8. data/Rakefile +5 -0
  9. data/bin/cirneco.rb +5 -0
  10. data/cirneco.gemspec +41 -0
  11. data/lib/cirneco/api.rb +90 -0
  12. data/lib/cirneco/base.rb +21 -0
  13. data/lib/cirneco/cli.rb +28 -0
  14. data/lib/cirneco/data_center.rb +23 -0
  15. data/lib/cirneco/doi.rb +33 -0
  16. data/lib/cirneco/media.rb +15 -0
  17. data/lib/cirneco/metadata.rb +15 -0
  18. data/lib/cirneco/utils.rb +28 -0
  19. data/lib/cirneco/version.rb +3 -0
  20. data/lib/cirneco/work.rb +206 -0
  21. data/lib/cirneco.rb +7 -0
  22. data/resources/kernel-4.0/include/datacite-contributorType-v4.xsd +35 -0
  23. data/resources/kernel-4.0/include/datacite-dateType-v4.xsd +21 -0
  24. data/resources/kernel-4.0/include/datacite-descriptionType-v4.xsd +19 -0
  25. data/resources/kernel-4.0/include/datacite-funderIdentifierType-v4.xsd +15 -0
  26. data/resources/kernel-4.0/include/datacite-relatedIdentifierType-v4.xsd +32 -0
  27. data/resources/kernel-4.0/include/datacite-relationType-v4.xsd +39 -0
  28. data/resources/kernel-4.0/include/datacite-resourceType-v4.xsd +26 -0
  29. data/resources/kernel-4.0/include/datacite-titleType-v4.xsd +14 -0
  30. data/resources/kernel-4.0/metadata.xsd +470 -0
  31. data/resources/kernel-4.0/samples/datacite-example-Box_dateCollected_DataCollector-v4.0.xml +52 -0
  32. data/resources/kernel-4.0/samples/datacite-example-GeoLocation-v4.0.xml +66 -0
  33. data/resources/kernel-4.0/samples/datacite-example-HasMetadata-v4.0.xml +62 -0
  34. data/resources/kernel-4.0/samples/datacite-example-ResearchGroup_Methods-v4.0.xml +44 -0
  35. data/resources/kernel-4.0/samples/datacite-example-ResourceTypeGeneral_Collection-v4.0.xml +52 -0
  36. data/resources/kernel-4.0/samples/datacite-example-complicated-v4.0.xml +54 -0
  37. data/resources/kernel-4.0/samples/datacite-example-dataset-v4.0.xml +39 -0
  38. data/resources/kernel-4.0/samples/datacite-example-full-v4.0.xml +71 -0
  39. data/resources/kernel-4.0/samples/datacite-example-fundingReference-v.4.0.xml +59 -0
  40. data/resources/kernel-4.0/samples/datacite-example-relationTypeIsIdenticalTo-v4.0.xml +65 -0
  41. data/resources/kernel-4.0/samples/datacite-example-video-v4.0.xml +31 -0
  42. data/resources/kernel-4.0/samples/datacite-example-workflow-v4.0.xml +55 -0
  43. data/spec/api_spec.rb +103 -0
  44. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml +52 -0
  45. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_next_doi.yml +52 -0
  46. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_number_of_latest_doi.yml +52 -0
  47. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +52 -0
  48. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +40 -0
  49. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +44 -0
  50. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +44 -0
  51. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +42 -0
  52. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +40 -0
  53. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +60 -0
  54. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +62 -0
  55. data/spec/spec_helper.rb +35 -0
  56. data/spec/utils_spec.rb +42 -0
  57. data/spec/work_spec.rb +54 -0
  58. metadata +401 -0
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/FK25H7QRS</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Rizk-Jackson, Angela</creatorName>
7
+ <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0002-1732-8550</nameIdentifier>
8
+ </creator>
9
+ </creators>
10
+ <titles>
11
+ <title>Analysis of ADNI data: Normal to MCI conversion</title>
12
+ </titles>
13
+ <publisher>University of California, San Francisco</publisher>
14
+ <publicationYear>2013</publicationYear>
15
+ <subjects>
16
+ <subject>Aging</subject>
17
+ <subject>Cognition</subject>
18
+ <subject>Risk-factor</subject>
19
+ <subject>Mild Cognitive Impairment</subject>
20
+ <subject>Prediction</subject>
21
+ <subject>Modeling</subject>
22
+ </subjects>
23
+ <contributors>
24
+ <contributor contributorType="ResearchGroup">
25
+ <contributorName>Center for Imaging of Neurodegenerative Disease</contributorName>
26
+ </contributor>
27
+ </contributors>
28
+ <resourceType resourceTypeGeneral="Dataset"/>
29
+ <relatedIdentifiers>
30
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsReferencedBy">10.5072/j.jalz.2012.05.911</relatedIdentifier>
31
+ </relatedIdentifiers>
32
+ <descriptions>
33
+ <description descriptionType="Abstract">
34
+ This study replication data resource includes information referencing specific items in the Alzheimer's Disease Neuroimaging Initiative (ADNI) database that were used with the included analysis scripts (R statistical software) to reach conclusions
35
+ presented in the referenced publication (DOI: 10.1016/j.jalz.2012.05.911).
36
+ </description>
37
+ <description descriptionType="Methods">
38
+ Utilizing the ADNI database, we identified 41 individuals who remained stable for 48-months (NC) and 16 who converted to MCI (CNV). Of these 57 subjects, all had available baseline clinical and MRI data, but only 16 NC and 11 CNV had available
39
+ FDG-PET data. Wilcoxon Rank Sum tests assessed baseline demographic and clinical imbalances between CNV and NC. The effect of conversion status on neuroimaging measures at baseline was tested using linear regression modeling. Finally, linear
40
+ discriminant analysis (LDA) models were created using features from an a-priori subset of clinical metrics, MRI measures, and FDG-PET measures obtained at baseline to predict which individuals would later convert to MCI and which would remain stable.
41
+ We used a leave-one-out cross validation strategy and permutation analysis to confirm significance.
42
+ </description>
43
+ </descriptions>
44
+ </resource>
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/1003496</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Barton, T.</creatorName>
7
+ </creator>
8
+ <creator>
9
+ <creatorName>Bowler, D.</creatorName>
10
+ </creator>
11
+ </creators>
12
+ <titles>
13
+ <title>
14
+ Archaeological Evaluation, 64 Kenneth Street, Stornoway Isle of Lewis
15
+ </title>
16
+ </titles>
17
+ <publisher>Scottish Urban Archaeological Trust Ltd.</publisher>
18
+ <publicationYear>2008</publicationYear>
19
+ <subjects>
20
+ <subject>Archaeology</subject>
21
+ <subject>Grey Literature</subject>
22
+ </subjects>
23
+ <language>eng</language>
24
+ <resourceType resourceTypeGeneral="Collection">Report</resourceType>
25
+ <alternateIdentifiers>
26
+ <alternateIdentifier alternateIdentifierType="ADS Grey Lit ID">4335</alternateIdentifier>
27
+ <alternateIdentifier alternateIdentifierType="OASIS ID">suatltd1-48159</alternateIdentifier>
28
+ </alternateIdentifiers>
29
+ <sizes>
30
+ <size>Doc: 46 kb</size>
31
+ <size>PDF: 750 kb</size>
32
+ <size>JPG: 700 kb</size>
33
+ </sizes>
34
+ <formats>
35
+ <format>application/msword</format>
36
+ <format>application/pdf</format>
37
+ <format>image/jpeg</format>
38
+ </formats>
39
+ <rightsList>
40
+ <rights rightsURI="http://archaeologydataservice.ac.uk/advice/termsOfUseAndAccess">Terms of Use and Access to ADS Resources</rights>
41
+ </rightsList>
42
+ <descriptions>
43
+ <description descriptionType="Other">
44
+ Unpublished fieldwork reports (Grey Literature Library)
45
+ </description>
46
+ </descriptions>
47
+ <geoLocations>
48
+ <geoLocation>
49
+ <geoLocationPlace>Stornoway, Western Isles, Scotland</geoLocationPlace>
50
+ </geoLocation>
51
+ </geoLocations>
52
+ </resource>
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/testpub</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Smith, John</creatorName>
7
+ </creator>
8
+ <creator>
9
+ <creatorName>つまらないものですが</creatorName>
10
+ <nameIdentifier nameIdentifierScheme="ISNI" schemeURI="http://isni.org/isni/">0000000134596520</nameIdentifier>
11
+ </creator>
12
+ </creators>
13
+ <titles>
14
+ <title>Właściwości rzutowań podprzestrzeniowych</title>
15
+ <title titleType="TranslatedTitle">Translation of Polish titles</title>
16
+ </titles>
17
+ <publisher>Springer</publisher>
18
+ <publicationYear>2010</publicationYear>
19
+ <subjects>
20
+ <subject subjectScheme="DDC">830 German &amp; related literatures</subject>
21
+ <subject>Polish Literature</subject>
22
+ </subjects>
23
+ <contributors>
24
+ <contributor contributorType="DataCollector">
25
+ <contributorName>Doe, John</contributorName>
26
+ <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0001-5393-1421</nameIdentifier>
27
+ </contributor>
28
+ </contributors>
29
+ <language>GER</language>
30
+ <resourceType resourceTypeGeneral="Text">Monograph</resourceType>
31
+ <alternateIdentifiers>
32
+ <alternateIdentifier alternateIdentifierType="ISBN">937-0-4523-12357-6</alternateIdentifier>
33
+ </alternateIdentifiers>
34
+ <relatedIdentifiers>
35
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5272/oldertestpub</relatedIdentifier>
36
+ </relatedIdentifiers>
37
+ <sizes>
38
+ <size>256 pages</size>
39
+ </sizes>
40
+ <formats>
41
+ <format>pdf</format>
42
+ </formats>
43
+ <version>2</version>
44
+ <rightsList>
45
+ <rights rightsURI="http://creativecommons.org/licenses/by-nd/2.0/">Creative Commons Attribution-NoDerivs 2.0 Generic</rights>
46
+ </rightsList>
47
+ <descriptions>
48
+ <description descriptionType="Abstract">
49
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
50
+ takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
51
+ et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
52
+ </description>
53
+ </descriptions>
54
+ </resource>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/D3P26Q35R-Test</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Fosmire, Michael</creatorName>
7
+ </creator>
8
+ <creator>
9
+ <creatorName>Wertz, Ruth</creatorName>
10
+ </creator>
11
+ <creator>
12
+ <creatorName>Purzer, Senay</creatorName>
13
+ </creator>
14
+ </creators>
15
+ <titles>
16
+ <title>Critical Engineering Literacy Test (CELT)</title>
17
+ </titles>
18
+ <publisher>Purdue University Research Repository (PURR)</publisher>
19
+ <publicationYear>2013</publicationYear>
20
+ <subjects>
21
+ <subject>Assessment</subject>
22
+ <subject>Information Literacy</subject>
23
+ <subject>Engineering</subject>
24
+ <subject>Undergraduate Students</subject>
25
+ <subject>CELT</subject>
26
+ <subject>Purdue University</subject>
27
+ </subjects>
28
+ <language>eng</language>
29
+ <resourceType resourceTypeGeneral="Dataset">Dataset</resourceType>
30
+ <version>1</version>
31
+ <descriptions>
32
+ <description descriptionType="Abstract">
33
+ We developed an instrument, Critical Engineering Literacy Test (CELT), which is a multiple choice instrument designed to measure undergraduate students’ scientific and information literacy skills. It requires students to first read a technical memo
34
+ and, based on the memo’s arguments, answer eight multiple choice and six open-ended response questions. We collected data from 143 first-year engineering students and conducted an item analysis. The KR-20 reliability of the instrument was .39. Item
35
+ difficulties ranged between .17 to .83. The results indicate low reliability index but acceptable levels of item difficulties and item discrimination indices. Students were most challenged when answering items measuring scientific and mathematical
36
+ literacy (i.e., identifying incorrect information).
37
+ </description>
38
+ </descriptions>
39
+ </resource>
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/example-full</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Miller, Elizabeth</creatorName>
7
+ <givenName>Elizabeth</givenName>
8
+ <familyName>Miller</familyName>
9
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0001-5000-0007</nameIdentifier>
10
+ <affiliation>DataCite</affiliation>
11
+ </creator>
12
+ </creators>
13
+ <titles>
14
+ <title xml:lang="en-us">Full DataCite XML Example</title>
15
+ <title xml:lang="en-us" titleType="Subtitle">Demonstration of DataCite Properties.</title>
16
+ </titles>
17
+ <publisher>DataCite</publisher>
18
+ <publicationYear>2014</publicationYear>
19
+ <subjects>
20
+ <subject xml:lang="en-us" schemeURI="http://dewey.info/" subjectScheme="dewey">000 computer science</subject>
21
+ </subjects>
22
+ <contributors>
23
+ <contributor contributorType="ProjectLeader">
24
+ <contributorName>Starr, Joan</contributorName>
25
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0002-7285-027X</nameIdentifier>
26
+ <affiliation>California Digital Library</affiliation>
27
+ </contributor>
28
+ </contributors>
29
+ <dates>
30
+ <date dateType="Updated">2014-10-17</date>
31
+ </dates>
32
+ <language>en-us</language>
33
+ <resourceType resourceTypeGeneral="Software">XML</resourceType>
34
+ <alternateIdentifiers>
35
+ <alternateIdentifier alternateIdentifierType="URL">http://schema.datacite.org/schema/meta/kernel-3.1/example/datacite-example-full-v3.1.xml</alternateIdentifier>
36
+ </alternateIdentifiers>
37
+ <relatedIdentifiers>
38
+ <relatedIdentifier relatedIdentifierType="URL" relationType="HasMetadata" relatedMetadataScheme="citeproc+json" schemeURI="https://github.com/citation-style-language/schema/raw/master/csl-data.json">http://data.datacite.org/application/citeproc+json/10.5072/example-full</relatedIdentifier>
39
+ <relatedIdentifier relatedIdentifierType="arXiv" relationType="IsReviewedBy">arXiv:0706.0001</relatedIdentifier>
40
+ </relatedIdentifiers>
41
+ <sizes>
42
+ <size>3KB</size>
43
+ </sizes>
44
+ <formats>
45
+ <format>application/xml</format>
46
+ </formats>
47
+ <version>3.1</version>
48
+ <rightsList>
49
+ <rights rightsURI="http://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal</rights>
50
+ </rightsList>
51
+ <descriptions>
52
+ <description xml:lang="en-us" descriptionType="Abstract">
53
+ XML example of all DataCite Metadata Schema v4.0 properties.
54
+ </description>
55
+ </descriptions>
56
+ <geoLocations>
57
+ <geoLocation>
58
+ <geoLocationPlace>Atlantic Ocean</geoLocationPlace>
59
+ <geoLocationPoint>
60
+ <pointLongitude>-67.302</pointLongitude>
61
+ <pointLatitude>31.233</pointLatitude>
62
+ </geoLocationPoint>
63
+ <geoLocationBox>
64
+ <westBoundLongitude>-71.032</westBoundLongitude>
65
+ <eastBoundLongitude>-68.211</eastBoundLongitude>
66
+ <southBoundLatitude>41.090</southBoundLatitude>
67
+ <northBoundLatitude>42.893</northBoundLatitude>
68
+ </geoLocationBox>
69
+ </geoLocation>
70
+ </geoLocations>
71
+ </resource>
@@ -0,0 +1,59 @@
1
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
2
+ <identifier identifierType="DOI">10.5281/zenodo.47394</identifier>
3
+ <creators>
4
+ <creator>
5
+ <creatorName>Dedeurwaerdere Tom</creatorName>
6
+ <affiliation>Université catholique de Louvain</affiliation>
7
+ </creator>
8
+ </creators>
9
+ <titles>
10
+ <title>Combining internal and external motivations in multi-actor governance arrangements for biodiversity and ecosystem services</title>
11
+ </titles>
12
+ <publisher>Zenodo</publisher>
13
+ <publicationYear>2016</publicationYear>
14
+ <subjects>
15
+ <subject>Internal motivations</subject>
16
+ <subject>Biodiversity</subject>
17
+ <subject>Multi-actor governance</subject>
18
+ <subject>Payment for ecosystem services</subject>
19
+ <subject>Crowding out</subject>
20
+ </subjects>
21
+ <fundingReferences>
22
+ <fundingReference>
23
+ <funderName>European Commission</funderName>
24
+ <funderIdentifier funderIdentifierType="Crossref Funder ID">http://doi.org/10.13039/501100000780</funderIdentifier>
25
+ <awardNumber awardURI="http://cordis.europa.eu/project/rcn/100180_en.html">282625</awardNumber>
26
+ <awardTitle>MOTivational strength of ecosystem services and alternative ways to express the value of BIOdiversity</awardTitle>
27
+ </fundingReference>
28
+ <fundingReference>
29
+ <funderName>European Commission</funderName>
30
+ <funderIdentifier funderIdentifierType="Crossref Funder ID">http://doi.org/10.13039/501100000780</funderIdentifier>
31
+ <awardNumber awardURI="http://cordis.europa.eu/project/rcn/100603_en.html">284382</awardNumber>
32
+ <awardTitle>Institutionalizing global genetic-resource commons. Global Strategies for accessingand using essential public knowledge assets in the life science</awardTitle>
33
+ </fundingReference>
34
+ </fundingReferences>
35
+ <dates>
36
+ <date dateType="Issued">2016-03-11</date>
37
+ </dates>
38
+ <resourceType resourceTypeGeneral="Dataset"/>
39
+ <alternateIdentifiers>
40
+ <alternateIdentifier alternateIdentifierType="URL">http://zenodo.org/record/47394</alternateIdentifier>
41
+ </alternateIdentifiers>
42
+ <relatedIdentifiers>
43
+ <relatedIdentifier relatedIdentifierType="URL" relationType="HasPart">https://zenodo.org/record/47394/files/Data_All_Internal_motivations.pdf</relatedIdentifier>
44
+ <relatedIdentifier relatedIdentifierType="URL" relationType="HasPart">https://zenodo.org/record/47394/files/survey_questionnaire_internal_motivations.pdf</relatedIdentifier>
45
+ </relatedIdentifiers>
46
+ <rightsList>
47
+ <rights rightsURI="info:eu-repo/semantics/openAccess">Open Access</rights>
48
+ <rights rightsURI="http://creativecommons.org/publicdomain/zero/1.0/">Creative Commons Zero 1.0 Universal</rights>
49
+ </rightsList>
50
+ <descriptions>
51
+ <description descriptionType="Abstract">&lt;p&gt;These files provide the original survey data of the paper on motivations for biodiversity conservation in Europe. This paper analyses the possibility of building a mutually supportive dynamics between
52
+ internally and&lt;br /&gt; externally motivated behaviour for biodiversity conservation and ecosystem services provision. To this&lt;br /&gt; purpose a face to face survey amongst 169 key actors of 34 highly successful and prominent
53
+ biodiversity&lt;br /&gt; arrangements in seven EU countries was conducted. The main&lt;br /&gt; finding of the paper is the feasibility of&lt;br /&gt; combining inherently intrinsically motivated behaviours (providing enjoyment, pleasure from&lt;br
54
+ /&gt; experimentation and learning, aesthetic satisfaction) and internalized extrinsic motivations (related&lt;br /&gt; to the identification with the collective goals of conservation policy) through a common set of governance&lt;br /&gt; features.
55
+ Successful initiatives that combine internal and external motivations share the following&lt;br /&gt; features: inclusive decision making processes, a broad monitoring by &amp;ldquo;peers&amp;rdquo; beyond the core staff of the&lt;br /&gt;
56
+ initiatives, and a context that is supportive for the building of autonomous actor competences. These&lt;br /&gt; findings are in line with the psycho-sociological theory of motivation, which shows the importance of a&lt;br /&gt; psycho-social
57
+ context leading to a subjective perception of autonomy and a sense of competence of the&lt;br /&gt; actors.&lt;/p&gt;</description>
58
+ </descriptions>
59
+ </resource>
@@ -0,0 +1,65 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/10.CPoS-example</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Kreyenfeld, Michaela</creatorName>
7
+ <givenName>Michaela</givenName>
8
+ <familyName>Kreyenfeld</familyName>
9
+ <nameIdentifier nameIdentifierScheme="ISNI" schemeURI="http://isni.org/isni/">0000000117540116</nameIdentifier>
10
+ </creator>
11
+ <creator>
12
+ <creatorName>Hornung, Anne</creatorName>
13
+ <givenName>Anne</givenName>
14
+ <familyName>Hornung</familyName>
15
+ <nameIdentifier nameIdentifierScheme="VIAF" schemeURI="http://viaf.org/viaf/">304639093</nameIdentifier>
16
+ </creator>
17
+ <creator>
18
+ <creatorName>Kubisch, Karolin</creatorName>
19
+ <givenName>Karolin</givenName>
20
+ <familyName>Kubisch</familyName>
21
+ <nameIdentifier nameIdentifierScheme="VIAF" schemeURI="http://viaf.org/viaf/">303937450</nameIdentifier>
22
+ </creator>
23
+ </creators>
24
+ <titles>
25
+ <title>The German Generations and Gender Survey</title>
26
+ <title xml:lang="en" titleType="Subtitle">Some Critical Reflections on the Validity of Fertility Histories</title>
27
+ </titles>
28
+ <publisher>Federal Institute for Population Research, Germany</publisher>
29
+ <publicationYear>2013</publicationYear>
30
+ <subjects>
31
+ <subject>Fertility</subject>
32
+ <subject>Marriage</subject>
33
+ <subject>Germany</subject>
34
+ <subject>Data validation</subject>
35
+ <subject>Mikrozensus</subject>
36
+ <subject>Gender survey</subject>
37
+ <subject schemeURI="http://www.gesis.org/en/services/research/tools-for-searching/classification" subjectScheme="GESIS">10300 Demography, Population Research</subject>
38
+ </subjects>
39
+ <contributors>
40
+ <contributor contributorType="Editor">
41
+ <contributorName>Federal Institute for Population Research</contributorName>
42
+ <nameIdentifier nameIdentifierScheme="ISNI" schemeURI="http://isni.org/isni/">0000000094455866</nameIdentifier>
43
+ </contributor>
44
+ </contributors>
45
+ <language>eng</language>
46
+ <resourceType resourceTypeGeneral="Text">Article</resourceType>
47
+ <alternateIdentifiers>
48
+ <alternateIdentifier alternateIdentifierType="internal ID">da|ra.14.103</alternateIdentifier>
49
+ </alternateIdentifiers>
50
+ <relatedIdentifiers>
51
+ <relatedIdentifier relatedIdentifierType="URN" relationType="IsIdenticalTo">urn:nbn:de:bib-cpos-2013-02en8</relatedIdentifier>
52
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsIdenticalTo">10.4232/10.CPoS-2013-02en</relatedIdentifier>
53
+ </relatedIdentifiers>
54
+ <formats>
55
+ <format>PDF</format>
56
+ </formats>
57
+ <version>1</version>
58
+ <rightsList>
59
+ <rights rightsURI="http://creativecommons.org/licenses/by-nc-nd/3.0/deed">Creative Commons License: Attribution-NonCommercial-NoDerivs 3.0 Unported</rights>
60
+ </rightsList>
61
+ <descriptions>
62
+ <description descriptionType="SeriesInformation">Comparative Population Studies Vol 38, No 1 (2013)</description>
63
+ <description descriptionType="Abstract">This paper validates the fertility histories of the German Generations and Gender Survey (GGS). Focusing on the cohorts 1930-69 of West German women, the total number of children, the parity distribution and the parity progression ratios are comparedto external sources. One major result from this validation is that the German GGS understates the fertility for the older cohorts and overstates it for the younger ones.</description>
64
+ </descriptions>
65
+ </resource>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/1153992</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Lynn, Briscoe</creatorName>
7
+ <givenName>Briscoe</givenName>
8
+ <familyName>Lynn</familyName>
9
+ </creator>
10
+ </creators>
11
+ <titles>
12
+ <title>Walking Your Space, Evaluating Your Home</title>
13
+ <title titleType="Subtitle">Making Energy Efficiency Work for You</title>
14
+ </titles>
15
+ <publisher>Photovoltaic Institute</publisher>
16
+ <publicationYear>2013</publicationYear>
17
+ <subjects>
18
+ <subject>Solar Energy</subject>
19
+ </subjects>
20
+ <language>eng</language>
21
+ <resourceType resourceTypeGeneral="Audiovisual">narrated video</resourceType>
22
+ <formats>
23
+ <format>MP4</format>
24
+ </formats>
25
+ <descriptions>
26
+ <description descriptionType="Abstract">
27
+ This hour-long video features John Halter as the narrator. Mr. Halter is best known as a journalist rather than a TV star, and here he plays that role as he does an "expose" type of walkthrough a new home. The home has been advertised as a house with
28
+ the very latest in state-of-the art energy efficiency, especially solar. Mr. Halter puts the home through an investigation and determines that it can, indeed, live up to its claims.
29
+ </description>
30
+ </descriptions>
31
+ </resource>
@@ -0,0 +1,55 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
3
+ <identifier identifierType="DOI">10.5072/100044</identifier>
4
+ <creators>
5
+ <creator>
6
+ <creatorName>Luo, R</creatorName>
7
+ </creator>
8
+ <creator>
9
+ <creatorName>Liu, B</creatorName>
10
+ </creator>
11
+ <creator>
12
+ <creatorName>Xie, Y</creatorName>
13
+ </creator>
14
+ <creator>
15
+ <creatorName>Li, Z</creatorName>
16
+ </creator>
17
+ </creators>
18
+ <titles>
19
+ <title>
20
+ Software and supporting material for "SOAPdenovo2: An empirically improved memory-efficient short read de novo assembly"
21
+ </title>
22
+ </titles>
23
+ <publisher>GigaScience Database</publisher>
24
+ <publicationYear>2012</publicationYear>
25
+ <subjects>
26
+ <subject>DNA (Genetics)</subject>
27
+ <subject>Computer Program</subject>
28
+ </subjects>
29
+ <dates>
30
+ <date dateType="Available">2012-12-13</date>
31
+ </dates>
32
+ <language>eng</language>
33
+ <resourceType resourceTypeGeneral="Workflow">Software</resourceType>
34
+ <relatedIdentifiers>
35
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsReferencedBy">10.5072/2047-217X-1-1</relatedIdentifier>
36
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="Compiles">10.5072/100038</relatedIdentifier>
37
+ </relatedIdentifiers>
38
+ <sizes>
39
+ <size>31 MB</size>
40
+ </sizes>
41
+ <rightsList>
42
+ <rights rightsURI="http://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal</rights>
43
+ </rightsList>
44
+ <descriptions>
45
+ <description descriptionType="Abstract">
46
+ SOAPdenovo2 is the latest de novo genome assembly package from BGI's SOAP (short oligonucleotide analysis package) suite of tools (homepage here: http://soap.genomics.org.cn/). Compared to SOAPdenovo1, this new version has the advantage of a new
47
+ algorithm design that reduces memory consumption in graph construction, resolves more repeat regions in contig assembly, increases coverage and length in scaffold construction, improves gap closure, and is optimized for large genomes. Using new
48
+ sequencing data from the YH (Homo sapiens) diploid genome - the first sequenced Han Chinese individual, an updated assembly was produced (see dataset here: doi:10.5524/100038), with the N50 scores for the contig and scaffold being 3-fold and 50-fold
49
+ longer, respectively, than the first published version. The genome coverage increased from 81.16% to 93.91%, and memory consumption was ~2/3 times lower during the point of largest memory consumption. Benchmarking with Assemblathon1 and GAGE datasets
50
+ shows that SOAPdenovo2 greatly surpasses its predecessor SOAPdenovo1 and is competitive to other assemblers on both assembly length and accuracy. In order to facilitate readers to repeat and recreate these findings, configured packages with the
51
+ compressed pipelines containing all of the necessary shell scripts and tools are available from the BGI FTP server (ftp://public.genomics.org.cn/BGI/SOAPdenovo2). The latest version of SOAPdenovo2 is available from Sourceforge:
52
+ http://soapdenovo2.sourceforge.net/ These pipelines will also soon be made available from our data platform as Galaxy workflows: http://galaxy.cbiit.cuhk.edu.hk/
53
+ </description>
54
+ </descriptions>
55
+ </resource>
data/spec/api_spec.rb ADDED
@@ -0,0 +1,103 @@
1
+ require 'spec_helper'
2
+
3
+ describe Cirneco::Work, vcr: true, :order => :defined do
4
+ let(:doi) { "10.23725/0000-03VC" }
5
+ let(:creators) { [{ given_name: "Elizabeth", family_name: "Miller", orcid: "0000-0001-5000-0007", affiliation: "DataCite" }] }
6
+ let(:title) { "Full DataCite XML Example" }
7
+ let(:publisher) { "DataCite" }
8
+ let(:publication_year) { 2014 }
9
+ let(:resource_type) { { value: "XML", resource_type_general: "Software" } }
10
+ let(:url) { "http://www.datacite.org" }
11
+ let(:media) { [{ mime_type: "application/pdf", url:"http://www.datacite.org/cirneco-test.pdf" }]}
12
+ let(:username) { ENV['MDS_USERNAME'] }
13
+ let(:password) { ENV['MDS_PASSWORD'] }
14
+ let(:options) { { username: username, password: password, sandbox: true } }
15
+ let(:fixture_path) { "spec/fixtures/" }
16
+ let(:samples_path) { "resources/kernel-4.0/samples/" }
17
+
18
+ subject { Cirneco::Work.new(doi: doi,
19
+ creators: creators,
20
+ title: title,
21
+ publisher: publisher,
22
+ publication_year: publication_year,
23
+ resource_type: resource_type,
24
+ url: url,
25
+ media: media,
26
+ username: username,
27
+ password: password) }
28
+
29
+ describe "Metadata API" do
30
+ describe "get" do
31
+ it 'should get metadata' do
32
+ response = subject.get_metadata(doi, options)
33
+ expect(response.body["data"]).to eq(subject.data)
34
+ end
35
+ end
36
+
37
+ describe "delete" do
38
+ it 'should delete metadata' do
39
+ response = subject.delete_metadata(doi, options)
40
+ expect(response.body["data"]).to eq("OK")
41
+ expect(response.status).to eq(200)
42
+ end
43
+ end
44
+
45
+ describe "post" do
46
+ it 'should post metadata' do
47
+ response = subject.post_metadata(subject.data, options)
48
+ expect(response.body["data"]).to eq("OK (10.23725/0000-03VC)")
49
+ expect(response.status).to eq(201)
50
+ expect(response.headers["Location"]).to eq("https://mds.test.datacite.org/metadata/10.23725/0000-03VC")
51
+ end
52
+ end
53
+ end
54
+
55
+ describe "DOI API" do
56
+ describe "put" do
57
+ it 'should put doi' do
58
+ response = subject.put_doi(doi, url, options)
59
+ expect(response.body["data"]).to eq("OK")
60
+ expect(response.status).to eq(201)
61
+ end
62
+ end
63
+
64
+ describe "get" do
65
+ it 'should get all dois' do
66
+ response = subject.get_dois(options)
67
+ dois = response.body["data"]
68
+ expect(dois.length).to eq(12)
69
+ expect(dois.first).to eq("10.23725/0000-03VC")
70
+ end
71
+
72
+ it 'should get doi' do
73
+ response = subject.get_doi(doi, options)
74
+ expect(response.body["data"]).to eq("http://www.datacite.org")
75
+ end
76
+
77
+ it 'username missing' do
78
+ options = { username: username, sandbox: true }
79
+ response = subject.get_doi(doi, options)
80
+ expect(response.body).to eq("errors"=>[{"title"=>"Username or password missing"}])
81
+ end
82
+ end
83
+ end
84
+
85
+ describe "Media API" do
86
+ describe "post" do
87
+ it 'should post media' do
88
+ response = subject.post_media(doi, media, options)
89
+ expect(response.body["data"]).to eq("OK")
90
+ expect(response.status).to eq(200)
91
+ end
92
+ end
93
+
94
+ describe "get" do
95
+ it 'should get media' do
96
+ response = subject.get_media(doi, options)
97
+ media = response.body["data"]
98
+ expect(media.length).to eq(1)
99
+ expect(media.first).to eq(:mime_type=>"application/pdf", :url=>"http://www.datacite.org/cirneco-test.pdf")
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://mds.test.datacite.org/doi
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
+ Authorization:
15
+ - Basic <MDS_TOKEN>
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: ''
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.6 (Ubuntu)
23
+ Date:
24
+ - Sun, 11 Dec 2016 18:35:36 GMT
25
+ Content-Type:
26
+ - text/html;charset=UTF-8
27
+ Connection:
28
+ - keep-alive
29
+ Pragma:
30
+ - no-cache
31
+ Expires:
32
+ - Thu, 01 Jan 1970 00:00:00 GMT
33
+ Cache-Control:
34
+ - no-cache, no-store
35
+ body:
36
+ encoding: UTF-8
37
+ string: |-
38
+ 10.23725/0000-03VC
39
+ 10.23725/0000-0A53
40
+ 10.23725/GQZDGNZW
41
+ 10.23725/MDS-CLIENT-RUBY-TEST
42
+ 10.5438/0001
43
+ 10.5438/0002
44
+ 10.5438/0003
45
+ 10.5438/0004
46
+ 10.5438/0005
47
+ 10.5438/0006
48
+ 10.5438/EXAMPLE-FULL
49
+ 10.5438/MDS-CLIENT-RUBY-TEST
50
+ http_version:
51
+ recorded_at: Sun, 11 Dec 2016 18:35:36 GMT
52
+ recorded_with: VCR 3.0.3