bolognese 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -1
- data/bolognese.gemspec +1 -0
- data/lib/bolognese.rb +1 -0
- data/lib/bolognese/author_utils.rb +3 -6
- data/lib/bolognese/metadata.rb +7 -1
- data/lib/bolognese/version.rb +1 -1
- data/spec/author_utils_spec.rb +15 -2
- data/spec/datacite_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_multiple_names_in_display-order.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_known_given_name.yml +144 -0
- metadata +17 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1b985adff56f14d917d1c48050d65eec47551de
|
4
|
+
data.tar.gz: 7446270f653147667df838080d6cbc6a0f7c1f74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcbdc7a013ef6eb803ec23e104e7c863b6aa5b306b71f1cd6186853c34a3c27f4a1467f015c95aa02db40d802a682a0ed8f7b6959bca0660d7f7440208231e90
|
7
|
+
data.tar.gz: e7b78a15cee66bff01a31a9ee937ff4858096c32336c354170091b22cb123bf7fbe6bada8e4f03aff3fc7b714c7ad4a56a33d1ad27705ab5b360bae51b582d3d
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bolognese (0.9.
|
4
|
+
bolognese (0.9.8)
|
5
5
|
activesupport (>= 4.2.5, < 6)
|
6
6
|
benchmark_methods (~> 0.7)
|
7
7
|
bibtex-ruby (~> 4.1)
|
8
8
|
builder (~> 3.2, >= 3.2.2)
|
9
9
|
colorize (~> 0.8.1)
|
10
|
+
gender_detector (~> 0.1.2)
|
10
11
|
json-ld (~> 2.1, >= 2.1.2)
|
11
12
|
jsonlint (~> 0.2.0)
|
12
13
|
loofah (~> 2.0, >= 2.0.3)
|
@@ -50,6 +51,8 @@ GEM
|
|
50
51
|
faraday
|
51
52
|
faraday_middleware (0.10.1)
|
52
53
|
faraday (>= 0.7.4, < 1.0)
|
54
|
+
gender_detector (0.1.2)
|
55
|
+
unicode_utils (>= 1.3.0)
|
53
56
|
haml (4.0.7)
|
54
57
|
tilt
|
55
58
|
hamster (3.0.0)
|
@@ -149,6 +152,7 @@ GEM
|
|
149
152
|
tzinfo (1.2.3)
|
150
153
|
thread_safe (~> 0.1)
|
151
154
|
unicode (0.4.4.4)
|
155
|
+
unicode_utils (1.4.0)
|
152
156
|
vcr (3.0.3)
|
153
157
|
webmock (1.24.6)
|
154
158
|
addressable (>= 2.3.6)
|
data/bolognese.gemspec
CHANGED
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.add_dependency 'rdf-turtle', '~> 2.2'
|
31
31
|
s.add_dependency 'rdf-rdfxml', '~> 2.0'
|
32
32
|
s.add_dependency 'benchmark_methods', '~> 0.7'
|
33
|
+
s.add_dependency 'gender_detector', '~> 0.1.2'
|
33
34
|
s.add_development_dependency 'bundler', '~> 1.0'
|
34
35
|
s.add_development_dependency 'rspec', '~> 3.4'
|
35
36
|
s.add_development_dependency 'rspec-xsd', '~> 0.1.0'
|
data/lib/bolognese.rb
CHANGED
@@ -53,12 +53,9 @@ module Bolognese
|
|
53
53
|
return false if author.fetch("type", "").downcase == "organization"
|
54
54
|
return true if author.fetch("id", "").start_with?("http://orcid.org") ||
|
55
55
|
author.fetch("familyName", "").present? ||
|
56
|
-
author.fetch("name", "").include?(",") &&
|
57
|
-
author.fetch("name", "").exclude?(";")
|
58
|
-
|
59
|
-
# lookup given name if NameDetector gem is loaded (needs caching)
|
60
|
-
::NameDetector.name_exists?(author.split.first) if defined? ::NameDetector
|
61
|
-
|
56
|
+
(author.fetch("name", "").include?(",") &&
|
57
|
+
author.fetch("name", "").exclude?(";")) ||
|
58
|
+
name_detector.name_exists?(author.fetch("name", "").split(" ").first)
|
62
59
|
false
|
63
60
|
end
|
64
61
|
|
data/lib/bolognese/metadata.rb
CHANGED
@@ -25,7 +25,13 @@ module Bolognese
|
|
25
25
|
:is_referenced_by, :references, :is_documented_by, :documents,
|
26
26
|
:is_compiled_by, :compiles, :is_variant_form_of, :is_original_form_of,
|
27
27
|
:is_reviewed_by, :reviews, :is_derived_from, :is_source_of, :format,
|
28
|
-
:related_identifier, :reverse, :citeproc_type, :ris_type, :volume, :issue
|
28
|
+
:related_identifier, :reverse, :citeproc_type, :ris_type, :volume, :issue,
|
29
|
+
:name_detector
|
30
|
+
|
31
|
+
# recognize given name. Can be loaded once as ::NameDetector, e.g. in a Rails initializer
|
32
|
+
def name_detector
|
33
|
+
@name_detector ||= defined?(::NameDetector) ? ::NameDetector : GenderDetector.new
|
34
|
+
end
|
29
35
|
|
30
36
|
def publication_year
|
31
37
|
date_published && date_published[0..3]
|
data/lib/bolognese/version.rb
CHANGED
data/spec/author_utils_spec.rb
CHANGED
@@ -26,8 +26,13 @@ describe Bolognese::Crossref, vcr: true do
|
|
26
26
|
expect(subject.is_personal_name?(author)).to be true
|
27
27
|
end
|
28
28
|
|
29
|
-
it "has
|
29
|
+
it "has known given name" do
|
30
30
|
author = {"name"=>"Martin Fenner" }
|
31
|
+
expect(subject.is_personal_name?(author)).to be true
|
32
|
+
end
|
33
|
+
|
34
|
+
it "has no info" do
|
35
|
+
author = {"name"=>"M Fenner" }
|
31
36
|
expect(subject.is_personal_name?(author)).to be false
|
32
37
|
end
|
33
38
|
end
|
@@ -51,7 +56,15 @@ describe Bolognese::Crossref, vcr: true do
|
|
51
56
|
id = "https://doi.org/10.5281/ZENODO.48440"
|
52
57
|
subject = Bolognese::Datacite.new(id: id)
|
53
58
|
response = subject.get_one_author(subject.metadata.dig("creators", "creator"))
|
54
|
-
expect(response).to eq("name"=>"Kristian Garza")
|
59
|
+
expect(response).to eq("type"=>"Person", "name"=>"Kristian Garza", "givenName"=>"Kristian", "familyName"=>"Garza")
|
60
|
+
end
|
61
|
+
|
62
|
+
it "has multiple names in display-order" do
|
63
|
+
id = "https://doi.org/10.6084/M9.FIGSHARE.3479141 "
|
64
|
+
subject = Bolognese::Datacite.new(id: id)
|
65
|
+
response = subject.get_authors(subject.metadata.dig("creators", "creator"))
|
66
|
+
expect(response.count).to eq(9)
|
67
|
+
expect(response.last).to eq("type"=>"Person", "name"=>"Ed Pentz", "givenName"=>"Ed", "familyName"=>"Pentz")
|
55
68
|
end
|
56
69
|
|
57
70
|
it "has name in display-order with ORCID" do
|
data/spec/datacite_spec.rb
CHANGED
@@ -71,7 +71,7 @@ describe Bolognese::Datacite, vcr: true do
|
|
71
71
|
expect(subject.type).to eq("SoftwareSourceCode")
|
72
72
|
expect(subject.additional_type).to eq("Software")
|
73
73
|
expect(subject.resource_type_general).to eq("Software")
|
74
|
-
expect(subject.author).to eq("name"
|
74
|
+
expect(subject.author).to eq("type"=>"Person", "name"=>"Kristian Garza", "givenName"=>"Kristian", "familyName"=>"Garza")
|
75
75
|
expect(subject.title).to eq("Analysis Tools for Crossover Experiment of UI using Choice Architecture")
|
76
76
|
expect(subject.description["text"]).to start_with("This tools are used to analyse the data produced by the Crosssover Experiment")
|
77
77
|
expect(subject.license).to eq([{"url"=>"info:eu-repo/semantics/openAccess", "name"=>"Open Access"}, {"url"=>"https://creativecommons.org/licenses/by-nc-sa/4.0/", "name"=>"Creative Commons Attribution-NonCommercial-ShareAlike"}])
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.6084/m9.figshare.3479141%20&wt=json
|
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
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Access-Control-Allow-Methods:
|
20
|
+
- GET, POST, OPTIONS
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=UTF-8
|
25
|
+
Date:
|
26
|
+
- Tue, 25 Apr 2017 05:16:49 GMT
|
27
|
+
Server:
|
28
|
+
- openresty/1.11.2.2
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC0zL21ldGFkYXRhLnhzZCI+PGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNjA4NC9NOS5GSUdTSEFSRS4zNDc5MTQxPC9pZGVudGlmaWVyPjxjcmVhdG9ycz48Y3JlYXRvcj48Y3JlYXRvck5hbWU+VG9tIERlbWVyYW52aWxsZTwvY3JlYXRvck5hbWU+PG5hbWVJZGVudGlmaWVyIG5hbWVJZGVudGlmaWVyU2NoZW1lPSJPUkNJRC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ixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_known_given_name.yml
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1101/097196&noredirect=true&pid=tech@datacite.org
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Maremma - https://github.com/datacite/maremma
|
12
|
+
Accept:
|
13
|
+
- text/xml
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: ''
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- Apache-Coyote/1.1
|
21
|
+
Crossref-Deployment-Name:
|
22
|
+
- cr6-1
|
23
|
+
Content-Type:
|
24
|
+
- text/xml;charset=UTF-8
|
25
|
+
Content-Language:
|
26
|
+
- en-US
|
27
|
+
Date:
|
28
|
+
- Tue, 25 Apr 2017 05:32:30 GMT
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: ASCII-8BIT
|
33
|
+
string: !binary |-
|
34
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGRvaV9y
|
35
|
+
ZWNvcmRzPg0KICA8ZG9pX3JlY29yZCBvd25lcj0iMTAuMTEwMSIgdGltZXN0
|
36
|
+
YW1wPSIyMDE2LTEyLTI5IDAxOjEwOjIwIj4NCiAgICA8Y3Jvc3NyZWY+DQog
|
37
|
+
ICAgICA8cG9zdGVkX2NvbnRlbnQgdHlwZT0icHJlcHJpbnQiIGxhbmd1YWdl
|
38
|
+
PSJlbiIgbWV0YWRhdGFfZGlzdHJpYnV0aW9uX29wdHM9ImFueSI+DQogICAg
|
39
|
+
ICAgIDxncm91cF90aXRsZT5TY2llbnRpZmljIENvbW11bmljYXRpb24gYW5k
|
40
|
+
IE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134
|
+
NjwvcmVzb3VyY2U+DQogICAgICAgICAgPGNvbGxlY3Rpb24gcHJvcGVydHk9
|
135
|
+
ImNyYXdsZXItYmFzZWQiPg0KICAgICAgICAgICAgPGl0ZW0gY3Jhd2xlcj0i
|
136
|
+
aVBhcmFkaWdtcyI+DQogICAgICAgICAgICAgIDxyZXNvdXJjZT5odHRwczov
|
137
|
+
L3N5bmRpY2F0aW9uLmhpZ2h3aXJlLm9yZy9jb250ZW50L2RvaS8xMC4xMTAx
|
138
|
+
LzA5NzE5NjwvcmVzb3VyY2U+DQogICAgICAgICAgICA8L2l0ZW0+DQogICAg
|
139
|
+
ICAgICAgPC9jb2xsZWN0aW9uPg0KICAgICAgICA8L2RvaV9kYXRhPg0KICAg
|
140
|
+
ICAgPC9wb3N0ZWRfY29udGVudD4NCiAgICA8L2Nyb3NzcmVmPg0KICA8L2Rv
|
141
|
+
aV9yZWNvcmQ+DQo8L2RvaV9yZWNvcmRzPg==
|
142
|
+
http_version:
|
143
|
+
recorded_at: Tue, 25 Apr 2017 05:32:30 GMT
|
144
|
+
recorded_with: VCR 3.0.3
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolognese
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
@@ -262,6 +262,20 @@ dependencies:
|
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0.7'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: gender_detector
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - "~>"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 0.1.2
|
272
|
+
type: :runtime
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 0.1.2
|
265
279
|
- !ruby/object:Gem::Dependency
|
266
280
|
name: bundler
|
267
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -572,6 +586,7 @@ files:
|
|
572
586
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_no_ORCID.yml
|
573
587
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/author.yml
|
574
588
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_familyName.yml
|
589
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_multiple_names_in_display-order.yml
|
575
590
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_Thai.yml
|
576
591
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order.yml
|
577
592
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order_with_ORCID.yml
|
@@ -583,6 +598,7 @@ files:
|
|
583
598
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_comma.yml
|
584
599
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_family_name.yml
|
585
600
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_id.yml
|
601
|
+
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_known_given_name.yml
|
586
602
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_no_info.yml
|
587
603
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_organization.yml
|
588
604
|
- spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_person.yml
|