bolognese 0.8.5 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +10 -9
  3. data/README.md +15 -1
  4. data/lib/bolognese.rb +2 -0
  5. data/lib/bolognese/bibtex.rb +57 -1
  6. data/lib/bolognese/citeproc.rb +116 -0
  7. data/lib/bolognese/codemeta.rb +9 -1
  8. data/lib/bolognese/crossref.rb +20 -0
  9. data/lib/bolognese/datacite.rb +9 -1
  10. data/lib/bolognese/datacite_json.rb +9 -1
  11. data/lib/bolognese/datacite_utils.rb +1 -1
  12. data/lib/bolognese/metadata.rb +185 -1
  13. data/lib/bolognese/ris.rb +117 -0
  14. data/lib/bolognese/schema_org.rb +8 -0
  15. data/lib/bolognese/utils.rb +84 -17
  16. data/lib/bolognese/version.rb +1 -1
  17. data/resources/kernel-3/metadata.xsd +3 -3
  18. data/spec/bibtex_spec.rb +34 -0
  19. data/spec/citeproc_spec.rb +48 -0
  20. data/spec/codemeta_spec.rb +33 -3
  21. data/spec/crossref_spec.rb +80 -2
  22. data/spec/datacite_json_spec.rb +28 -12
  23. data/spec/datacite_spec.rb +72 -0
  24. data/spec/datacite_utils_spec.rb +1 -1
  25. data/spec/fixtures/citeproc.json +21 -0
  26. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_citeproc/maremma.yml +100 -0
  27. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_ris/BlogPosting.yml +100 -0
  28. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_ris/maremma.yml +100 -0
  29. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/journal_article.yml +723 -0
  30. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/with_pages.yml +370 -0
  31. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/journal_article.yml +723 -0
  32. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/with_pages.yml +370 -0
  33. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Citeproc_JSON.yml +173 -0
  34. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_citeproc/BlogPosting.yml +155 -0
  35. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_citeproc/Dataset.yml +173 -0
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_ris/BlogPosting.yml +155 -0
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_ris/Dataset.yml +173 -0
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/read/datacite.yml +173 -0
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write/datacite_to_bibtex.yml +173 -0
  40. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_citeproc/BlogPosting.yml +653 -0
  41. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_ris/BlogPosting.yml +653 -0
  42. data/spec/schema_org_spec.rb +30 -0
  43. data/spec/utils_spec.rb +50 -0
  44. metadata +22 -2
@@ -0,0 +1,155 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.org/10.5438/4k3m-nyvg
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - application/vnd.datacite.datacite+xml
14
+ response:
15
+ status:
16
+ code: 303
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Vary:
22
+ - Accept
23
+ Location:
24
+ - http://data.datacite.org/10.5438%2F4k3m-nyvg
25
+ Expires:
26
+ - Sat, 08 Apr 2017 16:41:58 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '173'
31
+ Date:
32
+ - Sat, 08 Apr 2017 16:12:45 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ <html><head><title>Handle Redirect</title></head>
37
+ <body><a href="http://data.datacite.org/10.5438%2F4k3m-nyvg">http://data.datacite.org/10.5438%2F4k3m-nyvg</a></body></html>
38
+ http_version:
39
+ recorded_at: Sat, 08 Apr 2017 16:12:46 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://data.datacite.org/10.5438%2F4k3m-nyvg
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Accept:
50
+ - application/vnd.datacite.datacite+xml
51
+ response:
52
+ status:
53
+ code: 301
54
+ message: ''
55
+ headers:
56
+ Content-Type:
57
+ - text/html
58
+ Date:
59
+ - Sat, 08 Apr 2017 16:12:46 GMT
60
+ Location:
61
+ - https://data.datacite.org/10.5438%2F4k3m-nyvg
62
+ Server:
63
+ - openresty/1.11.2.2
64
+ Content-Length:
65
+ - '191'
66
+ Connection:
67
+ - keep-alive
68
+ body:
69
+ encoding: UTF-8
70
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
72
+ http_version:
73
+ recorded_at: Sat, 08 Apr 2017 16:12:46 GMT
74
+ - request:
75
+ method: get
76
+ uri: https://data.datacite.org/10.5438%2F4k3m-nyvg
77
+ body:
78
+ encoding: US-ASCII
79
+ string: ''
80
+ headers:
81
+ User-Agent:
82
+ - Maremma - https://github.com/datacite/maremma
83
+ Accept:
84
+ - application/vnd.datacite.datacite+xml
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: ''
89
+ headers:
90
+ Access-Control-Allow-Methods:
91
+ - GET, POST, OPTIONS
92
+ Access-Control-Allow-Origin:
93
+ - "*"
94
+ Cache-Control:
95
+ - no-transform, max-age=3600
96
+ Content-Type:
97
+ - application/vnd.datacite.datacite+xml
98
+ Date:
99
+ - Sat, 08 Apr 2017 16:12:46 GMT
100
+ Last-Modified:
101
+ - Mon, 09 Jan 2017 13:53:11 GMT
102
+ Server:
103
+ - openresty/1.11.2.2
104
+ Vary:
105
+ - Accept
106
+ Content-Length:
107
+ - '2045'
108
+ Connection:
109
+ - keep-alive
110
+ body:
111
+ encoding: UTF-8
112
+ string: |
113
+ <?xml version="1.0" encoding="UTF-8"?>
114
+ <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">
115
+ <identifier identifierType="DOI">10.5438/4K3M-NYVG</identifier>
116
+ <creators>
117
+ <creator>
118
+ <creatorName>Fenner, Martin</creatorName>
119
+ <givenName>Martin</givenName>
120
+ <familyName>Fenner</familyName>
121
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
122
+ </creator>
123
+ </creators>
124
+ <titles>
125
+ <title>Eating your own Dog Food</title>
126
+ </titles>
127
+ <publisher>DataCite</publisher>
128
+ <publicationYear>2016</publicationYear>
129
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
130
+ <alternateIdentifiers>
131
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-49-3632-5083</alternateIdentifier>
132
+ </alternateIdentifiers>
133
+ <subjects>
134
+ <subject>datacite</subject>
135
+ <subject>doi</subject>
136
+ <subject>metadata</subject>
137
+ </subjects>
138
+ <dates>
139
+ <date dateType="Created">2016-12-20</date>
140
+ <date dateType="Issued">2016-12-20</date>
141
+ <date dateType="Updated">2016-12-20</date>
142
+ </dates>
143
+ <relatedIdentifiers>
144
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/0012</relatedIdentifier>
145
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/55E5-T5C0</relatedIdentifier>
146
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5438/0000-00SS</relatedIdentifier>
147
+ </relatedIdentifiers>
148
+ <version>1.0</version>
149
+ <descriptions>
150
+ <description descriptionType="Abstract">Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...</description>
151
+ </descriptions>
152
+ </resource>
153
+ http_version:
154
+ recorded_at: Sat, 08 Apr 2017 16:12:46 GMT
155
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,173 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.org/10.5061/dryad.8515
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - application/vnd.datacite.datacite+xml
14
+ response:
15
+ status:
16
+ code: 303
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Vary:
22
+ - Accept
23
+ Location:
24
+ - http://data.datacite.org/10.5061%2Fdryad.8515
25
+ Expires:
26
+ - Sat, 08 Apr 2017 16:41:58 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '175'
31
+ Date:
32
+ - Sat, 08 Apr 2017 16:12:44 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ <html><head><title>Handle Redirect</title></head>
37
+ <body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
38
+ http_version:
39
+ recorded_at: Sat, 08 Apr 2017 16:12:44 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://data.datacite.org/10.5061%2Fdryad.8515
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Accept:
50
+ - application/vnd.datacite.datacite+xml
51
+ response:
52
+ status:
53
+ code: 301
54
+ message: ''
55
+ headers:
56
+ Content-Type:
57
+ - text/html
58
+ Date:
59
+ - Sat, 08 Apr 2017 16:12:45 GMT
60
+ Location:
61
+ - https://data.datacite.org/10.5061%2Fdryad.8515
62
+ Server:
63
+ - openresty/1.11.2.2
64
+ Content-Length:
65
+ - '191'
66
+ Connection:
67
+ - keep-alive
68
+ body:
69
+ encoding: UTF-8
70
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
72
+ http_version:
73
+ recorded_at: Sat, 08 Apr 2017 16:12:45 GMT
74
+ - request:
75
+ method: get
76
+ uri: https://data.datacite.org/10.5061%2Fdryad.8515
77
+ body:
78
+ encoding: US-ASCII
79
+ string: ''
80
+ headers:
81
+ User-Agent:
82
+ - Maremma - https://github.com/datacite/maremma
83
+ Accept:
84
+ - application/vnd.datacite.datacite+xml
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: ''
89
+ headers:
90
+ Access-Control-Allow-Methods:
91
+ - GET, POST, OPTIONS
92
+ Access-Control-Allow-Origin:
93
+ - "*"
94
+ Cache-Control:
95
+ - no-transform, max-age=3600
96
+ Content-Type:
97
+ - application/vnd.datacite.datacite+xml
98
+ Date:
99
+ - Sat, 08 Apr 2017 16:12:45 GMT
100
+ Last-Modified:
101
+ - Sat, 04 Feb 2017 17:54:37 GMT
102
+ Server:
103
+ - openresty/1.11.2.2
104
+ Vary:
105
+ - Accept
106
+ Content-Length:
107
+ - '2601'
108
+ Connection:
109
+ - keep-alive
110
+ body:
111
+ encoding: ASCII-8BIT
112
+ string: !binary |-
113
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291
114
+ cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaG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bGF0aW9uVHlwZT0iSXNSZWZl
164
+ cmVuY2VkQnkiPjEwLjEzNzEvSk9VUk5BTC5QUEFULjEwMDA0NDY8L3JlbGF0
165
+ ZWRJZGVudGlmaWVyPiAgICA8cmVsYXRlZElkZW50aWZpZXIgcmVsYXRlZElk
166
+ ZW50aWZpZXJUeXBlPSJQTUlEIiByZWxhdGlvblR5cGU9IklzUmVmZXJlbmNl
167
+ ZEJ5Ij4xOTQ3ODg3NzwvcmVsYXRlZElkZW50aWZpZXI+ICA8L3JlbGF0ZWRJ
168
+ ZGVudGlmaWVycz4gIDxyaWdodHNMaXN0PiAgICA8cmlnaHRzIHJpZ2h0c1VS
169
+ ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
170
+ cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
171
+ http_version:
172
+ recorded_at: Sat, 08 Apr 2017 16:12:45 GMT
173
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,155 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://doi.org/10.5438/4k3m-nyvg
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - application/vnd.datacite.datacite+xml
14
+ response:
15
+ status:
16
+ code: 303
17
+ message: ''
18
+ headers:
19
+ Server:
20
+ - Apache-Coyote/1.1
21
+ Vary:
22
+ - Accept
23
+ Location:
24
+ - http://data.datacite.org/10.5438%2F4k3m-nyvg
25
+ Expires:
26
+ - Sun, 09 Apr 2017 11:15:10 GMT
27
+ Content-Type:
28
+ - text/html;charset=utf-8
29
+ Content-Length:
30
+ - '173'
31
+ Date:
32
+ - Sun, 09 Apr 2017 10:58:55 GMT
33
+ body:
34
+ encoding: UTF-8
35
+ string: |-
36
+ <html><head><title>Handle Redirect</title></head>
37
+ <body><a href="http://data.datacite.org/10.5438%2F4k3m-nyvg">http://data.datacite.org/10.5438%2F4k3m-nyvg</a></body></html>
38
+ http_version:
39
+ recorded_at: Sun, 09 Apr 2017 10:58:55 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://data.datacite.org/10.5438%2F4k3m-nyvg
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ User-Agent:
48
+ - Maremma - https://github.com/datacite/maremma
49
+ Accept:
50
+ - application/vnd.datacite.datacite+xml
51
+ response:
52
+ status:
53
+ code: 301
54
+ message: ''
55
+ headers:
56
+ Content-Type:
57
+ - text/html
58
+ Date:
59
+ - Sun, 09 Apr 2017 10:58:55 GMT
60
+ Location:
61
+ - https://data.datacite.org/10.5438%2F4k3m-nyvg
62
+ Server:
63
+ - openresty/1.11.2.2
64
+ Content-Length:
65
+ - '191'
66
+ Connection:
67
+ - keep-alive
68
+ body:
69
+ encoding: UTF-8
70
+ string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
+ bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
72
+ http_version:
73
+ recorded_at: Sun, 09 Apr 2017 10:58:55 GMT
74
+ - request:
75
+ method: get
76
+ uri: https://data.datacite.org/10.5438%2F4k3m-nyvg
77
+ body:
78
+ encoding: US-ASCII
79
+ string: ''
80
+ headers:
81
+ User-Agent:
82
+ - Maremma - https://github.com/datacite/maremma
83
+ Accept:
84
+ - application/vnd.datacite.datacite+xml
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: ''
89
+ headers:
90
+ Access-Control-Allow-Methods:
91
+ - GET, POST, OPTIONS
92
+ Access-Control-Allow-Origin:
93
+ - "*"
94
+ Cache-Control:
95
+ - no-transform, max-age=3600
96
+ Content-Type:
97
+ - application/vnd.datacite.datacite+xml
98
+ Date:
99
+ - Sun, 09 Apr 2017 10:58:55 GMT
100
+ Last-Modified:
101
+ - Mon, 09 Jan 2017 13:53:11 GMT
102
+ Server:
103
+ - openresty/1.11.2.2
104
+ Vary:
105
+ - Accept
106
+ Content-Length:
107
+ - '2045'
108
+ Connection:
109
+ - keep-alive
110
+ body:
111
+ encoding: UTF-8
112
+ string: |
113
+ <?xml version="1.0" encoding="UTF-8"?>
114
+ <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">
115
+ <identifier identifierType="DOI">10.5438/4K3M-NYVG</identifier>
116
+ <creators>
117
+ <creator>
118
+ <creatorName>Fenner, Martin</creatorName>
119
+ <givenName>Martin</givenName>
120
+ <familyName>Fenner</familyName>
121
+ <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
122
+ </creator>
123
+ </creators>
124
+ <titles>
125
+ <title>Eating your own Dog Food</title>
126
+ </titles>
127
+ <publisher>DataCite</publisher>
128
+ <publicationYear>2016</publicationYear>
129
+ <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
130
+ <alternateIdentifiers>
131
+ <alternateIdentifier alternateIdentifierType="Local accession number">MS-49-3632-5083</alternateIdentifier>
132
+ </alternateIdentifiers>
133
+ <subjects>
134
+ <subject>datacite</subject>
135
+ <subject>doi</subject>
136
+ <subject>metadata</subject>
137
+ </subjects>
138
+ <dates>
139
+ <date dateType="Created">2016-12-20</date>
140
+ <date dateType="Issued">2016-12-20</date>
141
+ <date dateType="Updated">2016-12-20</date>
142
+ </dates>
143
+ <relatedIdentifiers>
144
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/0012</relatedIdentifier>
145
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/55E5-T5C0</relatedIdentifier>
146
+ <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5438/0000-00SS</relatedIdentifier>
147
+ </relatedIdentifiers>
148
+ <version>1.0</version>
149
+ <descriptions>
150
+ <description descriptionType="Abstract">Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...</description>
151
+ </descriptions>
152
+ </resource>
153
+ http_version:
154
+ recorded_at: Sun, 09 Apr 2017 10:58:55 GMT
155
+ recorded_with: VCR 3.0.3