bolognese 1.5.15 → 1.5.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/lib/bolognese/author_utils.rb +0 -1
- data/lib/bolognese/version.rb +1 -1
- data/spec/author_utils_spec.rb +1 -1
- data/spec/readers/citeproc_reader_spec.rb +2 -2
- data/spec/readers/datacite_reader_spec.rb +9 -9
- data/spec/writers/crosscite_writer_spec.rb +1 -1
- data/spec/writers/datacite_json_writer_spec.rb +1 -1
- data/spec/writers/datacite_writer_spec.rb +1 -1
- data/spec/writers/rdf_xml_writer_spec.rb +0 -3
- data/spec/writers/schema_org_writer_spec.rb +2 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e25803b02c683fa2d39bce713e1f1db91bb5231e5f357a121aa718e920e03fe
|
4
|
+
data.tar.gz: 614f8f6c57c4b5efff60553a8dbd65935c5d37680ec238945b5f8fdb94160905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eae192302662c5d77e0b66aa4799349972baada6e941fe2a250d92fbaddb945e4547ff9a2409aae1acb35136f9b971c567ee9aba1f07e9f69c3b8a96f7b1a4cb
|
7
|
+
data.tar.gz: ebe67deb2039574f9ba98489f1e8e990346fc15ae29418a3e40bb758db14ab4c72593acaff3fa0e131f253e75cbc7b9d6c93efc7c972b79db8a41fc60354b6f2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bolognese (1.5.
|
4
|
+
bolognese (1.5.16)
|
5
5
|
activesupport (>= 4.2.5)
|
6
6
|
benchmark_methods (~> 0.7)
|
7
7
|
bibtex-ruby (>= 5.1.0)
|
@@ -30,7 +30,7 @@ PATH
|
|
30
30
|
GEM
|
31
31
|
remote: https://rubygems.org/
|
32
32
|
specs:
|
33
|
-
activesupport (6.0.2.
|
33
|
+
activesupport (6.0.2.2)
|
34
34
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
35
35
|
i18n (>= 0.7, < 2)
|
36
36
|
minitest (~> 5.1)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
addressable (2.7.0)
|
40
40
|
public_suffix (>= 2.0.2, < 5.0)
|
41
41
|
benchmark_methods (0.7)
|
42
|
-
bibtex-ruby (5.1.
|
42
|
+
bibtex-ruby (5.1.4)
|
43
43
|
latex-decode (~> 0.0)
|
44
44
|
builder (3.2.4)
|
45
45
|
citeproc (1.0.10)
|
@@ -77,7 +77,7 @@ GEM
|
|
77
77
|
tilt
|
78
78
|
hamster (3.0.0)
|
79
79
|
concurrent-ruby (~> 1.0)
|
80
|
-
hashdiff (1.0.
|
80
|
+
hashdiff (1.0.1)
|
81
81
|
htmlentities (4.3.4)
|
82
82
|
i18n (1.8.2)
|
83
83
|
concurrent-ruby (~> 1.0)
|
@@ -90,10 +90,10 @@ GEM
|
|
90
90
|
optimist (~> 3)
|
91
91
|
latex-decode (0.3.1)
|
92
92
|
link_header (0.0.8)
|
93
|
-
loofah (2.
|
93
|
+
loofah (2.5.0)
|
94
94
|
crass (~> 1.0.2)
|
95
95
|
nokogiri (>= 1.5.9)
|
96
|
-
maremma (4.
|
96
|
+
maremma (4.7)
|
97
97
|
activesupport (>= 4.2.5)
|
98
98
|
addressable (>= 2.3.6)
|
99
99
|
builder (~> 3.2, >= 3.2.2)
|
@@ -109,9 +109,9 @@ GEM
|
|
109
109
|
multi_json (1.14.1)
|
110
110
|
multipart-post (2.1.1)
|
111
111
|
namae (1.0.1)
|
112
|
-
nokogiri (1.10.
|
112
|
+
nokogiri (1.10.9)
|
113
113
|
mini_portile2 (~> 2.4.0)
|
114
|
-
oj (3.10.
|
114
|
+
oj (3.10.6)
|
115
115
|
oj_mimic_json (1.0.1)
|
116
116
|
optimist (3.0.0)
|
117
117
|
postrank-uri (1.0.24)
|
@@ -150,7 +150,7 @@ GEM
|
|
150
150
|
rspec-mocks (~> 3.9.0)
|
151
151
|
rspec-core (3.9.1)
|
152
152
|
rspec-support (~> 3.9.1)
|
153
|
-
rspec-expectations (3.9.
|
153
|
+
rspec-expectations (3.9.1)
|
154
154
|
diff-lcs (>= 1.2.0, < 2.0)
|
155
155
|
rspec-support (~> 3.9.0)
|
156
156
|
rspec-mocks (3.9.1)
|
@@ -164,22 +164,22 @@ GEM
|
|
164
164
|
simplecov (0.18.5)
|
165
165
|
docile (~> 1.1)
|
166
166
|
simplecov-html (~> 0.11)
|
167
|
-
simplecov-html (0.12.
|
167
|
+
simplecov-html (0.12.2)
|
168
168
|
sxp (1.1.0)
|
169
169
|
rdf (~> 3.1)
|
170
170
|
temple (0.8.2)
|
171
171
|
thor (0.20.3)
|
172
172
|
thread_safe (0.3.6)
|
173
173
|
tilt (2.0.10)
|
174
|
-
tzinfo (1.2.
|
174
|
+
tzinfo (1.2.7)
|
175
175
|
thread_safe (~> 0.1)
|
176
176
|
unicode_utils (1.4.0)
|
177
177
|
vcr (3.0.3)
|
178
|
-
webmock (3.8.
|
178
|
+
webmock (3.8.3)
|
179
179
|
addressable (>= 2.3.6)
|
180
180
|
crack (>= 0.3.2)
|
181
181
|
hashdiff (>= 0.4.0, < 2.0.0)
|
182
|
-
zeitwerk (2.
|
182
|
+
zeitwerk (2.3.0)
|
183
183
|
|
184
184
|
PLATFORMS
|
185
185
|
ruby
|
@@ -28,7 +28,6 @@ module Bolognese
|
|
28
28
|
contributor_type = parse_attributes(author.fetch("contributorType", nil))
|
29
29
|
|
30
30
|
name_type = parse_attributes(author.fetch("creatorName", nil), content: "nameType", first: true) || parse_attributes(author.fetch("contributorName", nil), content: "nameType", first: true)
|
31
|
-
name_type = family_name.present? ? "Personal" : nil if name_type.blank?
|
32
31
|
|
33
32
|
name_identifiers = Array.wrap(author.fetch("nameIdentifier", nil)).map do |ni|
|
34
33
|
if ni["nameIdentifierScheme"] == "ORCID"
|
data/lib/bolognese/version.rb
CHANGED
data/spec/author_utils_spec.rb
CHANGED
@@ -49,7 +49,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
49
49
|
subject = Bolognese::Metadata.new(input: input, from: "datacite")
|
50
50
|
meta = Maremma.from_xml(subject.raw).fetch("resource", {})
|
51
51
|
response = subject.get_one_author(meta.dig("creators", "creator"))
|
52
|
-
expect(response).to eq("
|
52
|
+
expect(response).to eq("nameIdentifiers" => [{"nameIdentifier"=>"https://orcid.org/0000-0003-1419-2405", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Fenner, Martin", "givenName"=>"Martin", "familyName"=>"Fenner")
|
53
53
|
end
|
54
54
|
|
55
55
|
it "has name in sort-order" do
|
@@ -19,7 +19,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
19
19
|
expect(subject.identifiers).to eq([{"identifier"=>"https://doi.org/10.5438/4k3m-nyvg", "identifierType"=>"DOI"}])
|
20
20
|
expect(subject.url).to eq("https://blog.datacite.org/eating-your-own-dog-food")
|
21
21
|
expect(subject.types).to eq("bibtex"=>"article", "citeproc"=>"post-weblog", "resourceTypeGeneral"=>"Text", "ris"=>"GEN", "schemaOrg"=>"BlogPosting")
|
22
|
-
expect(subject.creators).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"
|
22
|
+
expect(subject.creators).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"}])
|
23
23
|
expect(subject.titles).to eq([{"title"=>"Eating your own Dog Food"}])
|
24
24
|
expect(subject.descriptions.first["description"]).to start_with("Eating your own dog food")
|
25
25
|
expect(subject.dates).to eq([{"date"=>"2016-12-20", "dateType"=>"Issued"}])
|
@@ -35,7 +35,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
35
35
|
expect(subject.identifiers).to eq([{"identifier"=>"https://doi.org/10.5072/4k3m-nyvg", "identifierType"=>"DOI"}])
|
36
36
|
expect(subject.url).to eq("https://blog.datacite.org/eating-your-own-dog-food")
|
37
37
|
expect(subject.types).to eq("bibtex"=>"article", "citeproc"=>"post-weblog", "resourceTypeGeneral"=>"Text", "ris"=>"GEN", "schemaOrg"=>"BlogPosting")
|
38
|
-
expect(subject.creators).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"
|
38
|
+
expect(subject.creators).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"}])
|
39
39
|
expect(subject.titles).to eq([{"title"=>"Eating your own Dog Food"}])
|
40
40
|
expect(subject.descriptions.first["description"]).to start_with("Eating your own dog food")
|
41
41
|
expect(subject.dates).to eq([{"date"=>"2016-12-20", "dateType"=>"Issued"}])
|
@@ -50,7 +50,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
50
50
|
expect(subject.types["ris"]).to eq("RPRT")
|
51
51
|
expect(subject.types["bibtex"]).to eq("article")
|
52
52
|
expect(subject.types["citeproc"]).to eq("article-journal")
|
53
|
-
expect(subject.creators).to eq([{"
|
53
|
+
expect(subject.creators).to eq([{"nameIdentifiers"=> [{"nameIdentifier"=>"https://orcid.org/0000-0003-1419-2405", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Fenner, Martin", "givenName"=>"Martin", "familyName"=>"Fenner"}])
|
54
54
|
expect(subject.titles).to eq([{"title"=>"Eating your own Dog Food"}])
|
55
55
|
expect(subject.identifiers).to eq([{"identifier"=>"https://doi.org/10.5438/4k3m-nyvg", "identifierType"=>"DOI"}, {"identifier"=>"MS-49-3632-5083", "identifierType"=>"Local accession number"}])
|
56
56
|
expect(subject.descriptions.first["description"]).to start_with("Eating your own dog food")
|
@@ -112,7 +112,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
112
112
|
"identifierType"=>"URL"}])
|
113
113
|
expect(subject.rights_list).to eq([{"lang"=>"en-US", "rightsUri"=>"http://creativecommons.org/publicdomain/zero/1.0"}])
|
114
114
|
expect(subject.publication_year).to eq("2014")
|
115
|
-
expect(subject.contributors).to eq([{"
|
115
|
+
expect(subject.contributors).to eq([{"name"=>"Starr, Joan", "givenName"=>"Joan", "familyName"=>"Starr", "nameIdentifiers"=>[{"nameIdentifier"=>"https://orcid.org/0000-0002-7285-027X", "schemeUri"=>"https://orcid.org", "nameIdentifierScheme"=>"ORCID"}], "affiliation"=>
|
116
116
|
[{"affiliationIdentifier"=>"https://ror.org/03yrm5c26",
|
117
117
|
"affiliationIdentifierScheme"=>"ROR",
|
118
118
|
"name"=>"California Digital Library"}], "contributorType"=>"ProjectLeader"}])
|
@@ -142,7 +142,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
142
142
|
expect(subject.types["resourceType"]).to eq("Dataset")
|
143
143
|
expect(subject.types["resourceTypeGeneral"]).to eq("Audiovisual")
|
144
144
|
expect(subject.creators.length).to eq(14)
|
145
|
-
expect(subject.creators.first).to eq("
|
145
|
+
expect(subject.creators.first).to eq("name"=>"Haywood, Raphaelle Dawn", "givenName"=>"Raphaelle Dawn", "familyName"=>"Haywood", "affiliation" => [{"name"=>"School of Physics and Astronomy"}])
|
146
146
|
expect(subject.titles).to eq([{"lang"=>"en", "title"=>"Data underpinning - The Sun as a planet-host star: Proxies from SDO images for HARPS radial-velocity variations"}])
|
147
147
|
expect(subject.dates).to eq([{"date"=>"2016-01-20", "dateType"=>"Available"}, {"date"=>"2016", "dateType"=>"Issued"}])
|
148
148
|
expect(subject.publication_year).to eq("2016")
|
@@ -221,7 +221,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
221
221
|
expect(subject.types["schemaOrg"]).to eq("Dataset")
|
222
222
|
expect(subject.types["resourceTypeGeneral"]).to eq("Dataset")
|
223
223
|
expect(subject.creators.length).to eq(4)
|
224
|
-
expect(subject.creators.first).to eq("
|
224
|
+
expect(subject.creators.first).to eq("name"=>"Jahn, Najko", "givenName"=>"Najko", "familyName"=>"Jahn", "affiliation"=>[{"name"=>"Bielefeld University Library"}])
|
225
225
|
expect(subject.titles).to eq([{"title"=>"Publication Fp7 Funding Acknowledgment - Plos Openaire"}])
|
226
226
|
expect(subject.descriptions.first["description"]).to start_with("The dataset contains a sample of metadata describing papers")
|
227
227
|
expect(subject.dates).to eq([{"date"=>"2013-04-03", "dateType"=>"Issued"}])
|
@@ -369,7 +369,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
369
369
|
expect(subject.valid?).to be true
|
370
370
|
expect(subject.identifiers).to eq([{"identifier"=>"https://doi.org/10.5438/4k3m-nyvg", "identifierType"=>"DOI"}, {"identifier"=>"MS-49-3632-5083", "identifierType"=>"Local accession number"}])
|
371
371
|
expect(subject.creators.length).to eq(1)
|
372
|
-
expect(subject.creators.first).to eq("familyName"=>"Fenner", "givenName"=>"Martin", "nameIdentifiers" => [{"nameIdentifier"=>"https://orcid.org/0000-0003-1419-2405", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Fenner, Martin"
|
372
|
+
expect(subject.creators.first).to eq("familyName"=>"Fenner", "givenName"=>"Martin", "nameIdentifiers" => [{"nameIdentifier"=>"https://orcid.org/0000-0003-1419-2405", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Fenner, Martin")
|
373
373
|
expect(subject.titles).to eq([{"title"=>"Eating your own Dog Food"}])
|
374
374
|
expect(subject.publisher).to eq("DataCite")
|
375
375
|
expect(subject.publication_year).to eq("2016")
|
@@ -485,7 +485,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
485
485
|
expect(subject.types["resourceType"]).to eq("Dataset")
|
486
486
|
expect(subject.types["resourceTypeGeneral"]).to eq("Dataset")
|
487
487
|
expect(subject.creators.length).to eq(2)
|
488
|
-
expect(subject.creators.first).to eq("
|
488
|
+
expect(subject.creators.first).to eq("nameIdentifiers" => [{"nameIdentifier"=>"https://orcid.org/0000-0001-8740-8284", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Bimbo, Nuno", "givenName"=>"Nuno", "familyName"=>"Bimbo")
|
489
489
|
expect(subject.titles).to eq([{"title"=>"Dataset for \"Direct Evidence for Solid-Like Hydrogen in a Nanoporous Carbon Hydrogen Storage Material at Supercritical Temperatures\""}])
|
490
490
|
expect(subject.descriptions.first["description"]).to start_with("Dataset for Direct Evidence for Solid-Like Hydrogen")
|
491
491
|
expect(subject.publication_year).to eq("2015")
|
@@ -511,7 +511,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
511
511
|
expect(subject.types["ris"]).to eq("GEN")
|
512
512
|
expect(subject.types["citeproc"]).to eq("article")
|
513
513
|
expect(subject.creators.length).to eq(24)
|
514
|
-
expect(subject.creators.first).to eq("
|
514
|
+
expect(subject.creators.first).to eq("nameIdentifiers" => [{"nameIdentifier"=>"https://orcid.org/0000-0001-5331-6592", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Farquhar, Adam", "givenName"=>"Adam", "familyName"=>"Farquhar", "affiliation" => [{"name"=>"British Library"}])
|
515
515
|
expect(subject.titles).to eq([{"title"=>"Technical and Human Infrastructure for Open Research (THOR)"}])
|
516
516
|
expect(subject.descriptions.first["description"]).to start_with("Five years ago, a global infrastructure")
|
517
517
|
expect(subject.publication_year).to eq("2015")
|
@@ -555,7 +555,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
555
555
|
expect(subject.types["resourceTypeGeneral"]).to eq("Text")
|
556
556
|
expect(subject.types["ris"]).to eq("RPRT")
|
557
557
|
expect(subject.types["citeproc"]).to eq("article-journal")
|
558
|
-
expect(subject.creators).to eq([{"
|
558
|
+
expect(subject.creators).to eq([{"nameIdentifiers"=> [{"nameIdentifier"=>"https://orcid.org/0000-0003-1419-2405", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Fenner, Martin", "givenName"=>"Martin", "familyName"=>"Fenner"}])
|
559
559
|
expect(subject.titles).to eq([{"title"=>"Eating your own Dog Food"}])
|
560
560
|
expect(subject.identifiers).to eq([{"identifier"=>"https://doi.org/10.5438/4k3m-nyvg", "identifierType"=>"DOI"}, {"identifier"=>"MS-49-3632-5083", "identifierType"=>"Local accession number"}])
|
561
561
|
expect(subject.dates).to eq([{"date"=>"2016-12-20", "dateType"=>"Created"}, {"date"=>"2016-12-20", "dateType"=>"Issued"}, {"date"=>"2016-12-20", "dateType"=>"Updated"}])
|
@@ -1109,7 +1109,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
1109
1109
|
expect(subject.identifiers).to eq([{"identifier"=>"https://doi.org/10.5061/dryad.8515", "identifierType"=>"DOI"},
|
1110
1110
|
{"identifier"=>"MS-49-3632-5083", "identifierType"=>"Local accession number"}])
|
1111
1111
|
expect(subject.doi).to eq("10.5061/dryad.8515")
|
1112
|
-
expect(subject.creators).to eq([{"
|
1112
|
+
expect(subject.creators).to eq([{"nameIdentifiers"=> [{"nameIdentifier"=>"https://orcid.org/0000-0003-1419-2405", "nameIdentifierScheme"=>"ORCID", "schemeUri"=>"https://orcid.org"}], "name"=>"Fenner, Martin", "givenName"=>"Martin", "familyName"=>"Fenner"}])
|
1113
1113
|
expect(subject.titles).to eq([{"title"=>"Eating your own Dog Food"}])
|
1114
1114
|
expect(subject.publisher).to eq("DataCite")
|
1115
1115
|
expect(subject.publication_year).to eq("2016")
|
@@ -52,7 +52,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
52
52
|
expect(crosscite["types"]).to eq("bibtex"=>"article", "citeproc"=>"post-weblog", "resourceTypeGeneral"=>"Text", "ris"=>"GEN", "schemaOrg"=>"BlogPosting")
|
53
53
|
expect(crosscite.fetch("titles")).to eq([{"title"=>"Eating your own Dog Food"}])
|
54
54
|
expect(crosscite.dig("descriptions", 0, "description")).to start_with("Eating your own dog food")
|
55
|
-
expect(crosscite.fetch("creators")).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"
|
55
|
+
expect(crosscite.fetch("creators")).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"}])
|
56
56
|
end
|
57
57
|
|
58
58
|
it "rdataone" do
|
@@ -44,7 +44,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
44
44
|
expect(datacite.fetch("types")).to eq("bibtex"=>"article", "citeproc"=>"post-weblog", "resourceTypeGeneral"=>"Text", "ris"=>"GEN", "schemaOrg"=>"BlogPosting")
|
45
45
|
expect(datacite.fetch("titles")).to eq([{"title"=>"Eating your own Dog Food"}])
|
46
46
|
expect(datacite.dig("descriptions", 0, "description")).to start_with("Eating your own dog food")
|
47
|
-
expect(datacite.fetch("creators")).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"
|
47
|
+
expect(datacite.fetch("creators")).to eq([{"familyName"=>"Fenner", "givenName"=>"Martin", "name"=>"Fenner, Martin"}])
|
48
48
|
end
|
49
49
|
|
50
50
|
it "rdataone" do
|
@@ -63,7 +63,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
63
63
|
expect(datacite.dig("titles", "title")).to eq("Eating your own Dog Food")
|
64
64
|
expect(datacite.dig("descriptions", "description").first).to eq("__content__"=>"DataCite Blog", "descriptionType"=>"SeriesInformation")
|
65
65
|
expect(datacite.dig("descriptions", "description", 1, "__content__")).to start_with("Eating your own dog food")
|
66
|
-
expect(datacite.dig("creators", "creator")).to eq("creatorName"=>
|
66
|
+
expect(datacite.dig("creators", "creator")).to eq("creatorName"=>"Fenner, Martin", "familyName"=>"Fenner", "givenName"=>"Martin")
|
67
67
|
end
|
68
68
|
|
69
69
|
it "rdataone" do
|
@@ -44,8 +44,6 @@ describe Bolognese::Metadata, vcr: true do
|
|
44
44
|
expect(subject.valid?).to be true
|
45
45
|
rdf_xml = Maremma.from_xml(subject.rdf_xml).fetch("RDF", {})
|
46
46
|
expect(rdf_xml.dig("ScholarlyArticle", "rdf:about")).to eq("https://doi.org/10.5438/4k3m-nyvg")
|
47
|
-
expect(rdf_xml.dig("ScholarlyArticle", "author", "Person", "rdf:about")).to eq("https://orcid.org/0000-0003-1419-2405")
|
48
|
-
expect(rdf_xml.dig("ScholarlyArticle", "author", "Person", "name")).to eq("Martin Fenner")
|
49
47
|
expect(rdf_xml.dig("ScholarlyArticle", "name")).to eq("Eating your own Dog Food")
|
50
48
|
expect(rdf_xml.dig("ScholarlyArticle", "keywords")).to eq("datacite, doi, metadata")
|
51
49
|
expect(rdf_xml.dig("ScholarlyArticle", "datePublished", "__content__")).to eq("2016-12-20")
|
@@ -56,7 +54,6 @@ describe Bolognese::Metadata, vcr: true do
|
|
56
54
|
subject = Bolognese::Metadata.new(input: input, from: "citeproc")
|
57
55
|
rdf_xml = Maremma.from_xml(subject.rdf_xml).fetch("RDF", {})
|
58
56
|
expect(rdf_xml.dig("BlogPosting", "rdf:about")).to eq("https://doi.org/10.5438/4k3m-nyvg")
|
59
|
-
expect(rdf_xml.dig("BlogPosting", "author", "Person", "name")).to eq("Martin Fenner")
|
60
57
|
expect(rdf_xml.dig("BlogPosting", "name")).to eq("Eating your own Dog Food")
|
61
58
|
expect(rdf_xml.dig("BlogPosting", "datePublished", "__content__")).to eq("2016-12-20")
|
62
59
|
end
|
@@ -241,12 +241,10 @@ describe Bolognese::Metadata, vcr: true do
|
|
241
241
|
expect(json["@id"]).to eq("https://doi.org/10.1594/pangaea.842237")
|
242
242
|
expect(json["@type"]).to eq("Dataset")
|
243
243
|
expect(json["name"]).to eq("Registry of all stations from the Tara Oceans Expedition (2009-2013)")
|
244
|
-
expect(json["author"]).to eq([{"
|
245
|
-
"familyName"=>"Tara Oceans Consortium",
|
244
|
+
expect(json["author"]).to eq([{"familyName"=>"Tara Oceans Consortium",
|
246
245
|
"givenName"=>"Coordinators",
|
247
246
|
"name"=>"Coordinators Tara Oceans Consortium"},
|
248
|
-
{"
|
249
|
-
"familyName"=>"Tara Oceans Expedition",
|
247
|
+
{"familyName"=>"Tara Oceans Expedition",
|
250
248
|
"givenName"=>"Participants",
|
251
249
|
"name"=>"Participants Tara Oceans Expedition"}])
|
252
250
|
expect(json["includedInDataCatalog"]).to be_nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolognese
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maremma
|