bolognese 0.6.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +33 -1
- data/lib/bolognese.rb +1 -0
- data/lib/bolognese/codemeta.rb +145 -0
- data/lib/bolognese/crossref.rb +1 -0
- data/lib/bolognese/datacite.rb +1 -0
- data/lib/bolognese/metadata.rb +18 -0
- data/lib/bolognese/schema_org.rb +5 -2
- data/lib/bolognese/version.rb +1 -1
- data/spec/codemeta_spec.rb +81 -0
- data/spec/datacite_spec.rb +16 -0
- data/spec/fixtures/codemeta.json +87 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/BlogPosting.yml +7 -329
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Dataset.yml +7 -1759
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Date.yml +7 -331
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Funding_schema_version_3.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Funding_schema_version_4.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Schema_org_JSON.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/is_identical_to.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/multiple_licenses.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_bibtex/BlogPosting.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_bibtex/Dataset.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_codemeta/SoftwareSourceCode.yml +133 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_datacite_xml_4_0/Dataset.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_datacite_xml_4_0/Funding.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_string/Dataset.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_alternate_identifiers/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_contributors/none.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_creators/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_dates/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_descriptions/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_identifier/doi.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator_only_name.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_publication_year/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_publisher/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/rel_identifiers.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_resource_type/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_rights_list/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_subjects/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_titles/insert.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_version/insert.yml +7 -7
- data/spec/schema_org_spec.rb +2 -2
- metadata +6 -9
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_contributors/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator_given_and_family_name.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/get_related_identifier_type.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/get_related_identifier_type_DOI.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/get_related_identifier_type_URL.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_titles/doi.yml +0 -173
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
Location:
|
24
24
|
- http://data.datacite.org/10.5061%2Fdryad.8515
|
25
25
|
Expires:
|
26
|
-
-
|
26
|
+
- Fri, 24 Feb 2017 00:31:22 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/html;charset=utf-8
|
29
29
|
Content-Length:
|
30
30
|
- '175'
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 23 Feb 2017 23:42:44 GMT
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
35
|
string: |-
|
36
36
|
<html><head><title>Handle Redirect</title></head>
|
37
37
|
<body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Thu, 23 Feb 2017 23:42:44 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Server:
|
57
57
|
- openresty/1.11.2.2
|
58
58
|
Date:
|
59
|
-
-
|
59
|
+
- Thu, 23 Feb 2017 23:42:45 GMT
|
60
60
|
Content-Type:
|
61
61
|
- text/html
|
62
62
|
Content-Length:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
71
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
72
|
http_version:
|
73
|
-
recorded_at:
|
73
|
+
recorded_at: Thu, 23 Feb 2017 23:42:45 GMT
|
74
74
|
- request:
|
75
75
|
method: get
|
76
76
|
uri: https://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Server:
|
91
91
|
- openresty/1.11.2.2
|
92
92
|
Date:
|
93
|
-
-
|
93
|
+
- Thu, 23 Feb 2017 23:42:45 GMT
|
94
94
|
Content-Type:
|
95
95
|
- application/vnd.datacite.datacite+xml
|
96
96
|
Content-Length:
|
@@ -169,5 +169,5 @@ http_interactions:
|
|
169
169
|
ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
|
170
170
|
cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
|
171
171
|
http_version:
|
172
|
-
recorded_at:
|
172
|
+
recorded_at: Thu, 23 Feb 2017 23:42:45 GMT
|
173
173
|
recorded_with: VCR 3.0.3
|
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
Location:
|
24
24
|
- http://data.datacite.org/10.6084%2Fm9.figshare.4234751.v1
|
25
25
|
Expires:
|
26
|
-
-
|
26
|
+
- Fri, 24 Feb 2017 00:31:22 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/html;charset=utf-8
|
29
29
|
Content-Length:
|
30
30
|
- '199'
|
31
31
|
Date:
|
32
|
-
- Thu, 23 Feb 2017
|
32
|
+
- Thu, 23 Feb 2017 23:43:17 GMT
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
35
|
string: |-
|
36
36
|
<html><head><title>Handle Redirect</title></head>
|
37
37
|
<body><a href="http://data.datacite.org/10.6084%2Fm9.figshare.4234751.v1">http://data.datacite.org/10.6084%2Fm9.figshare.4234751.v1</a></body></html>
|
38
38
|
http_version:
|
39
|
-
recorded_at: Thu, 23 Feb 2017
|
39
|
+
recorded_at: Thu, 23 Feb 2017 23:43:17 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://data.datacite.org/10.6084%2Fm9.figshare.4234751.v1
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Server:
|
57
57
|
- openresty/1.11.2.2
|
58
58
|
Date:
|
59
|
-
- Thu, 23 Feb 2017
|
59
|
+
- Thu, 23 Feb 2017 23:43:17 GMT
|
60
60
|
Content-Type:
|
61
61
|
- text/html
|
62
62
|
Content-Length:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
71
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
72
|
http_version:
|
73
|
-
recorded_at: Thu, 23 Feb 2017
|
73
|
+
recorded_at: Thu, 23 Feb 2017 23:43:17 GMT
|
74
74
|
- request:
|
75
75
|
method: get
|
76
76
|
uri: https://data.datacite.org/10.6084%2Fm9.figshare.4234751.v1
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Server:
|
91
91
|
- openresty/1.11.2.2
|
92
92
|
Date:
|
93
|
-
- Thu, 23 Feb 2017
|
93
|
+
- Thu, 23 Feb 2017 23:43:17 GMT
|
94
94
|
Content-Type:
|
95
95
|
- application/vnd.datacite.datacite+xml
|
96
96
|
Content-Length:
|
@@ -172,5 +172,5 @@ http_interactions:
|
|
172
172
|
cy9ieS80LjAvIj5DQy1CWTwvcmlnaHRzPjwvcmlnaHRzTGlzdD48L3Jlc291
|
173
173
|
cmNlPg==
|
174
174
|
http_version:
|
175
|
-
recorded_at: Thu, 23 Feb 2017
|
175
|
+
recorded_at: Thu, 23 Feb 2017 23:43:17 GMT
|
176
176
|
recorded_with: VCR 3.0.3
|
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
Location:
|
24
24
|
- http://data.datacite.org/10.5281%2Fzenodo.48440
|
25
25
|
Expires:
|
26
|
-
-
|
26
|
+
- Fri, 24 Feb 2017 00:31:22 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/html;charset=utf-8
|
29
29
|
Content-Length:
|
30
30
|
- '179'
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 23 Feb 2017 23:42:36 GMT
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
35
|
string: |-
|
36
36
|
<html><head><title>Handle Redirect</title></head>
|
37
37
|
<body><a href="http://data.datacite.org/10.5281%2Fzenodo.48440">http://data.datacite.org/10.5281%2Fzenodo.48440</a></body></html>
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Thu, 23 Feb 2017 23:42:36 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://data.datacite.org/10.5281%2Fzenodo.48440
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Server:
|
57
57
|
- openresty/1.11.2.2
|
58
58
|
Date:
|
59
|
-
-
|
59
|
+
- Thu, 23 Feb 2017 23:42:36 GMT
|
60
60
|
Content-Type:
|
61
61
|
- text/html
|
62
62
|
Content-Length:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
71
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
72
|
http_version:
|
73
|
-
recorded_at:
|
73
|
+
recorded_at: Thu, 23 Feb 2017 23:42:36 GMT
|
74
74
|
- request:
|
75
75
|
method: get
|
76
76
|
uri: https://data.datacite.org/10.5281%2Fzenodo.48440
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Server:
|
91
91
|
- openresty/1.11.2.2
|
92
92
|
Date:
|
93
|
-
-
|
93
|
+
- Thu, 23 Feb 2017 23:42:36 GMT
|
94
94
|
Content-Type:
|
95
95
|
- application/vnd.datacite.datacite+xml
|
96
96
|
Content-Length:
|
@@ -182,5 +182,5 @@ http_interactions:
|
|
182
182
|
</descriptions>
|
183
183
|
</resource>
|
184
184
|
http_version:
|
185
|
-
recorded_at:
|
185
|
+
recorded_at: Thu, 23 Feb 2017 23:42:36 GMT
|
186
186
|
recorded_with: VCR 3.0.3
|
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
Location:
|
24
24
|
- http://data.datacite.org/10.5438%2F4k3m-nyvg
|
25
25
|
Expires:
|
26
|
-
-
|
26
|
+
- Fri, 24 Feb 2017 00:31:22 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/html;charset=utf-8
|
29
29
|
Content-Length:
|
30
30
|
- '173'
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 23 Feb 2017 23:44:01 GMT
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
35
|
string: |-
|
36
36
|
<html><head><title>Handle Redirect</title></head>
|
37
37
|
<body><a href="http://data.datacite.org/10.5438%2F4k3m-nyvg">http://data.datacite.org/10.5438%2F4k3m-nyvg</a></body></html>
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Thu, 23 Feb 2017 23:44:01 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://data.datacite.org/10.5438%2F4k3m-nyvg
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Server:
|
57
57
|
- openresty/1.11.2.2
|
58
58
|
Date:
|
59
|
-
-
|
59
|
+
- Thu, 23 Feb 2017 23:44:01 GMT
|
60
60
|
Content-Type:
|
61
61
|
- text/html
|
62
62
|
Content-Length:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
71
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
72
|
http_version:
|
73
|
-
recorded_at:
|
73
|
+
recorded_at: Thu, 23 Feb 2017 23:44:01 GMT
|
74
74
|
- request:
|
75
75
|
method: get
|
76
76
|
uri: https://data.datacite.org/10.5438%2F4k3m-nyvg
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Server:
|
91
91
|
- openresty/1.11.2.2
|
92
92
|
Date:
|
93
|
-
-
|
93
|
+
- Thu, 23 Feb 2017 23:44:02 GMT
|
94
94
|
Content-Type:
|
95
95
|
- application/vnd.datacite.datacite+xml
|
96
96
|
Content-Length:
|
@@ -151,5 +151,5 @@ http_interactions:
|
|
151
151
|
</descriptions>
|
152
152
|
</resource>
|
153
153
|
http_version:
|
154
|
-
recorded_at:
|
154
|
+
recorded_at: Thu, 23 Feb 2017 23:44:02 GMT
|
155
155
|
recorded_with: VCR 3.0.3
|
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
Location:
|
24
24
|
- http://data.datacite.org/10.5061%2Fdryad.8515
|
25
25
|
Expires:
|
26
|
-
-
|
26
|
+
- Fri, 24 Feb 2017 00:31:22 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/html;charset=utf-8
|
29
29
|
Content-Length:
|
30
30
|
- '175'
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 23 Feb 2017 23:43:52 GMT
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
35
|
string: |-
|
36
36
|
<html><head><title>Handle Redirect</title></head>
|
37
37
|
<body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Thu, 23 Feb 2017 23:43:53 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Server:
|
57
57
|
- openresty/1.11.2.2
|
58
58
|
Date:
|
59
|
-
-
|
59
|
+
- Thu, 23 Feb 2017 23:43:53 GMT
|
60
60
|
Content-Type:
|
61
61
|
- text/html
|
62
62
|
Content-Length:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
71
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
72
|
http_version:
|
73
|
-
recorded_at:
|
73
|
+
recorded_at: Thu, 23 Feb 2017 23:43:53 GMT
|
74
74
|
- request:
|
75
75
|
method: get
|
76
76
|
uri: https://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Server:
|
91
91
|
- openresty/1.11.2.2
|
92
92
|
Date:
|
93
|
-
-
|
93
|
+
- Thu, 23 Feb 2017 23:43:53 GMT
|
94
94
|
Content-Type:
|
95
95
|
- application/vnd.datacite.datacite+xml
|
96
96
|
Content-Length:
|
@@ -169,5 +169,5 @@ http_interactions:
|
|
169
169
|
ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
|
170
170
|
cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
|
171
171
|
http_version:
|
172
|
-
recorded_at:
|
172
|
+
recorded_at: Thu, 23 Feb 2017 23:43:53 GMT
|
173
173
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_codemeta/SoftwareSourceCode.yml
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://doi.org/10.5063/f1m61h5x
|
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.5063%2Ff1m61h5x
|
25
|
+
Expires:
|
26
|
+
- Fri, 24 Feb 2017 00:31:22 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/html;charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '171'
|
31
|
+
Date:
|
32
|
+
- Thu, 23 Feb 2017 23:41:59 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.5063%2Ff1m61h5x">http://data.datacite.org/10.5063%2Ff1m61h5x</a></body></html>
|
38
|
+
http_version:
|
39
|
+
recorded_at: Thu, 23 Feb 2017 23:42:00 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://data.datacite.org/10.5063%2Ff1m61h5x
|
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
|
+
Server:
|
57
|
+
- openresty/1.11.2.2
|
58
|
+
Date:
|
59
|
+
- Thu, 23 Feb 2017 23:42:00 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/html
|
62
|
+
Content-Length:
|
63
|
+
- '191'
|
64
|
+
Connection:
|
65
|
+
- keep-alive
|
66
|
+
Location:
|
67
|
+
- https://data.datacite.org/10.5063%2Ff1m61h5x
|
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: Thu, 23 Feb 2017 23:42:00 GMT
|
74
|
+
- request:
|
75
|
+
method: get
|
76
|
+
uri: https://data.datacite.org/10.5063%2Ff1m61h5x
|
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
|
+
Server:
|
91
|
+
- openresty/1.11.2.2
|
92
|
+
Date:
|
93
|
+
- Thu, 23 Feb 2017 23:42:01 GMT
|
94
|
+
Content-Type:
|
95
|
+
- application/vnd.datacite.datacite+xml
|
96
|
+
Content-Length:
|
97
|
+
- '819'
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Cache-Control:
|
101
|
+
- no-transform, max-age=3600
|
102
|
+
Last-Modified:
|
103
|
+
- Sat, 18 Jun 2016 04:33:32 GMT
|
104
|
+
Vary:
|
105
|
+
- Accept
|
106
|
+
Access-Control-Allow-Origin:
|
107
|
+
- "*"
|
108
|
+
Access-Control-Allow-Methods:
|
109
|
+
- GET, POST, OPTIONS
|
110
|
+
body:
|
111
|
+
encoding: UTF-8
|
112
|
+
string: |
|
113
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
114
|
+
<resource xmlns="http://datacite.org/schema/kernel-3"
|
115
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
116
|
+
xsi:schemaLocation="http://datacite.org/schema/kernel-3
|
117
|
+
http://schema.datacite.org/meta/kernel-3/metadata.xsd">
|
118
|
+
<identifier identifierType="DOI">10.5063/F1M61H5X</identifier>
|
119
|
+
<creators>
|
120
|
+
<creator>
|
121
|
+
<creatorName>Jones, Matthew B.; Slaughter, Peter; Nahf, Rob; Boettiger, Carl ; Jones, Chris; Read, Jordan; Walker, Lauren; Hart, Edmund; Chamberlain, Scott</creatorName>
|
122
|
+
</creator>
|
123
|
+
</creators>
|
124
|
+
<titles>
|
125
|
+
<title>dataone: R interface to the DataONE network of data repositories</title>
|
126
|
+
</titles>
|
127
|
+
<publisher>KNB Data Repository</publisher>
|
128
|
+
<publicationYear>2016</publicationYear>
|
129
|
+
<resourceType resourceTypeGeneral="Software"/>
|
130
|
+
</resource>
|
131
|
+
http_version:
|
132
|
+
recorded_at: Thu, 23 Feb 2017 23:42:01 GMT
|
133
|
+
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_datacite_xml_4_0/Dataset.yml
CHANGED
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
Location:
|
24
24
|
- http://data.datacite.org/10.5061%2Fdryad.8515
|
25
25
|
Expires:
|
26
|
-
-
|
26
|
+
- Fri, 24 Feb 2017 00:31:22 GMT
|
27
27
|
Content-Type:
|
28
28
|
- text/html;charset=utf-8
|
29
29
|
Content-Length:
|
30
30
|
- '175'
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Thu, 23 Feb 2017 23:43:35 GMT
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
35
|
string: |-
|
36
36
|
<html><head><title>Handle Redirect</title></head>
|
37
37
|
<body><a href="http://data.datacite.org/10.5061%2Fdryad.8515">http://data.datacite.org/10.5061%2Fdryad.8515</a></body></html>
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Thu, 23 Feb 2017 23:43:35 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
Server:
|
57
57
|
- openresty/1.11.2.2
|
58
58
|
Date:
|
59
|
-
-
|
59
|
+
- Thu, 23 Feb 2017 23:43:35 GMT
|
60
60
|
Content-Type:
|
61
61
|
- text/html
|
62
62
|
Content-Length:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
|
71
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
72
|
http_version:
|
73
|
-
recorded_at:
|
73
|
+
recorded_at: Thu, 23 Feb 2017 23:43:35 GMT
|
74
74
|
- request:
|
75
75
|
method: get
|
76
76
|
uri: https://data.datacite.org/10.5061%2Fdryad.8515
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Server:
|
91
91
|
- openresty/1.11.2.2
|
92
92
|
Date:
|
93
|
-
-
|
93
|
+
- Thu, 23 Feb 2017 23:43:35 GMT
|
94
94
|
Content-Type:
|
95
95
|
- application/vnd.datacite.datacite+xml
|
96
96
|
Content-Length:
|
@@ -169,5 +169,5 @@ http_interactions:
|
|
169
169
|
ST0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvcHVibGljZG9tYWluL3pl
|
170
170
|
cm8vMS4wLyIvPiAgPC9yaWdodHNMaXN0PjwvcmVzb3VyY2U+
|
171
171
|
http_version:
|
172
|
-
recorded_at:
|
172
|
+
recorded_at: Thu, 23 Feb 2017 23:43:35 GMT
|
173
173
|
recorded_with: VCR 3.0.3
|