bolognese 0.10.16 → 0.10.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a009bb63af24c28139e8e05c47602792c1471958bf852933692b18d268a472f4
4
- data.tar.gz: cf0077dba6bca12875259089b41ed0b63cdd4df1d255f7c37bad953548d51a52
3
+ metadata.gz: b2f4f0f8c8a3fc4189cc07241d4dfefcb8803987ac59d59a49eda59358e0cde1
4
+ data.tar.gz: 0c220505e3c13cd36774c0e22e5765c9f7f70083e67f51a8c6df0c6e96ed67b8
5
5
  SHA512:
6
- metadata.gz: 0974d89b07f5f3c45e90c4c91a06844f8f577ce3e0c5a04fa544dcdc12a69ae3c39dc5b1a3ce71c0d2fbea0f10ae0b807e4bd56412f8f7114c18610d8ffeb51d
7
- data.tar.gz: 9af779cb903ed4acf2c5914c142d769b08e6756b87d8370efc655dd1399b26718dd19f08da687930e2db58ad14ab608d5a3f82d528173211de45d2b212b87806
6
+ metadata.gz: c6e6966db0f2a463e73dceccbd3a462ccfd0fe980613d25a62346015052d244151db5c617345bdeeddc19c6c2d7b34f625911c77274c0cc533ebd7f02124dac8
7
+ data.tar.gz: 66d00c3255bbfc68382d002b147d20c4f17bf96cfde5f178bf82ae61ef0151f03d26c8e635193d0c8ae2b473871f857636ffaad644e09063d6cc67dd79cac654
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.10.16)
4
+ bolognese (0.10.17)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -520,6 +520,16 @@ module Bolognese
520
520
  map_hash_keys(element: element, mapping: mapping)
521
521
  end
522
522
 
523
+ def to_schema_org_container(element, options={})
524
+ mapping = { "type" => "@type", "id" => "@id", "title" => "name" }
525
+
526
+ element ||= {}
527
+ element["type"] ||= (type == "Dataset") ? "DataCatalog" : "Periodical"
528
+ element["title"] = options[:container_title] if options[:container_title].present?
529
+
530
+ map_hash_keys(element: element, mapping: mapping)
531
+ end
532
+
523
533
  def from_schema_org(element)
524
534
  mapping = { "@type" => "type", "@id" => "id" }
525
535
 
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.10.16"
2
+ VERSION = "0.10.17"
3
3
  end
@@ -16,6 +16,7 @@ module Bolognese
16
16
  "author" => author,
17
17
  "title" => title,
18
18
  "publisher" => publisher,
19
+ "container_title" => container_title,
19
20
  "keywords" => keywords,
20
21
  "contributor" => contributor,
21
22
  "date_accepted" => date_accepted,
@@ -9,6 +9,7 @@ module Bolognese
9
9
  "creator" => author,
10
10
  "title" => title,
11
11
  "publisher" => publisher,
12
+ "container_title" => container_title,
12
13
  "resource_type_general" => resource_type_general,
13
14
  "resource_type" => additional_type,
14
15
  "subject" => keywords.present? ? keywords.split(", ") : nil,
@@ -25,7 +25,7 @@ module Bolognese
25
25
  "pageEnd" => last_page,
26
26
  "spatialCoverage" => spatial_coverage,
27
27
  "sameAs" => to_schema_org(is_identical_to),
28
- "isPartOf" => to_schema_org(is_part_of),
28
+ "isPartOf" => to_schema_org_container(is_part_of, container_title: container_title),
29
29
  "hasPart" => to_schema_org(has_part),
30
30
  "predecessor_of" => to_schema_org(is_previous_version_of),
31
31
  "successor_of" => to_schema_org(is_new_version_of),
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://search.datacite.org/api?defType=edismax&fl=doi,url,xml,state,allocator_symbol,datacentre_symbol,media,minted,updated&q=10.4229/23rdeupvsec2008-5co.8.3&wt=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma 4.0.5 - 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: OK
18
+ headers:
19
+ Date:
20
+ - Tue, 29 May 2018 05:11:03 GMT
21
+ Content-Type:
22
+ - application/json;charset=UTF-8
23
+ Connection:
24
+ - keep-alive
25
+ Server:
26
+ - nginx/1.10.3 (Ubuntu)
27
+ Access-Control-Allow-Origin:
28
+ - "*"
29
+ Access-Control-Allow-Methods:
30
+ - GET, POST, PUT, DELETE, OPTIONS
31
+ Access-Control-Allow-Headers:
32
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
33
+ Access-Control-Expose-Headers:
34
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"responseHeader":{"status":0,"QTime":13},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"TIB.WIP","xml":"PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxyZXNvdXJjZSB4bWxucz0iaHR0cDovL2RhdGFjaXRlLm9yZy9zY2hlbWEva2VybmVsLTIuMiIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMi4yIGh0dHA6Ly9zY2hlbWEuZGF0YWNpdGUub3JnL21ldGEva2VybmVsLTIuMi9tZXRhZGF0YS54c2QiPg0KCTxpZGVudGlmaWVyIGlkZW50aWZpZXJUeXBlPSJET0kiPjEwLjQyMjkvMjNyZEVVUFZTRUMyMDA4LTVDTy44LjM8L2lkZW50aWZpZXI+DQoJPGNyZWF0b3JzPg0KCQk8Y3JlYXRvcj48Y3JlYXRvck5hbWU+TGxhbWFzLCBQLjwvY3JlYXRvck5hbWU+PC9jcmVhdG9yPgoJCTxjcmVhdG9yPjxjcmVhdG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dXJlLiBGdXJ0aGVybW9yZSwgZHVlIHRvIHRoZWlyIGhpZ2ggbGV2ZWxzIG9mIGVmZmljaWVuY3ksIHJlbGlhYmlsaXR5IGFuZCBsb25nIHRlcm0gcGVyZm9ybWFuY2UsIHRoZXNlIHN5c3RlbXMgY2FuIGFsc28gYmUgdXNlZCBhcyBhbiBlZmZlY3RpdmUgYmFja3VwIHNvbHV0aW9uIHRvIHRoZSBwdWJsaWMgZ3JpZCBpbiBjYXNlIG9mIGJsYWNrb3V0cyBvciB3ZWFrIGdyaWRzLCBhbmQgZm9yIHByb2Zlc3Npb25hbCBlbmVyZ3kgc29sdXRpb25zLCBzdWNoIGFzIHRlbGVjb21tdW5pY2F0aW9uIHN0YXRpb25zIG9yIGVtZXJnZW5jeSByb29tcyBhdCBob3NwaXRhbHMuCiAgICAgIDwvZGVzY3JpcHRpb24+DQogICA8L2Rlc2NyaXB0aW9ucz4NCjwvcmVzb3VyY2U+DQo=","allocator_symbol":"TIB","minted":"2009-12-03T13:55:49Z","state":"findable","updated":"2012-11-06T09:04:32Z","doi":"10.4229/23RDEUPVSEC2008-5CO.8.3"}]}}
38
+
39
+ '
40
+ http_version:
41
+ recorded_at: Tue, 29 May 2018 05:11:03 GMT
42
+ recorded_with: VCR 3.0.3
@@ -7,6 +7,7 @@ describe Bolognese::Metadata, vcr: true do
7
7
  subject = Bolognese::Metadata.new(input: input, from: "crossref")
8
8
  json = JSON.parse(subject.schema_org)
9
9
  expect(json["@id"]).to eq("https://doi.org/10.7554/elife.01567")
10
+ expect(json["isPartOf"]).to eq("@type"=>"Periodical", "name"=>"eLife", "issn"=>"2050-084X")
10
11
  expect(json["citation"].length).to eq(26)
11
12
  expect(json["citation"].first).to eq("@id"=>"https://doi.org/10.1038/nature02100", "@type"=>"CreativeWork", "name" => "APL regulates vascular tissue identity in Arabidopsis")
12
13
  expect(json["funding"]).to eq([{"name"=>"SystemsX", "@type"=>"Organization"},
@@ -119,5 +120,17 @@ describe Bolognese::Metadata, vcr: true do
119
120
  expect(json["name"]).to eq("Seawater carbonate chemistry and processes during experiments with Crassostrea gigas, 2007, supplement to: Kurihara, Haruko; Kato, Shoji; Ishimatsu, Atsushi (2007): Effects of increased seawater pCO2 on early development of the oyster Crassostrea gigas. Aquatic Biology, 1(1), 91-98")
120
121
  expect(json["keywords"]).to eq("GetInfo, Animalia, Bottles or small containers/Aquaria ( 20 L), Calcification/Dissolution, Coast and continental shelf, Development, Growth/Morphology, Laboratory experiment, Mollusca, Pelagos, Single species, Temperate, Zooplankton, Experimental treatment, Carbonate system computation flag, Temperature, water, Salinity, pH, Alkalinity, total, Carbon, inorganic, dissolved, Carbon dioxide, Bicarbonate ion, Carbonate ion, Partial pressure of carbon dioxide (water) at sea surface temperature (wet air), Fugacity of carbon dioxide (water) at sea surface temperature (wet air), Aragonite saturation state, Calcite saturation state, Proportion, Crassostrea gigas, larvae length, Crassostrea gigas, larvae height, Crassostrea gigas, non mineralized, Crassostrea gigas, partially mineralized, Crassostrea gigas, fully mineralized, Calculated using seacarb after Nisumaa et al. (2010), Refractometer (Atago 100-S), pH meter (Mettler Toledo), pH meter (PHM290, Radiometer), Measured, European Project on Ocean Acidification (EPOCA), European network of excellence for Ocean Ecosystems Analysis (EUR-OCEANS), Ocean Acidification International Coordination Centre (OA-ICC)")
121
122
  end
123
+
124
+ it "series information" do
125
+ input = "10.4229/23RDEUPVSEC2008-5CO.8.3"
126
+ subject = Bolognese::Metadata.new(input: input, from: "datacite")
127
+ json = JSON.parse(subject.schema_org)
128
+ expect(json["isPartOf"]).to eq("@type"=>"Periodical", "name"=>"23rd European Photovoltaic Solar Energy Conference and Exhibition, 1-5 September 2008, Valencia, Spain; 3353-3356")
129
+ expect(json["@id"]).to eq("https://doi.org/10.4229/23rdeupvsec2008-5co.8.3")
130
+ expect(json["@type"]).to eq("ScholarlyArticle")
131
+ expect(json["name"]).to eq("Rural Electrification With Hybrid Power Systems Based on Renewables - Technical System Configurations From the Point of View of the European Industry")
132
+ expect(json["author"].count).to eq(3)
133
+ expect(json["author"].first).to eq("@type"=>"Person", "name"=>"P. Llamas", "givenName"=>"P.", "familyName"=>"Llamas")
134
+ end
122
135
  end
123
136
  end
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: 0.10.16
4
+ version: 0.10.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-28 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma
@@ -853,6 +853,7 @@ files:
853
853
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_isReferencedBy.yml
854
854
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/journal_article.yml
855
855
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/maremma_schema_org_JSON.yml
856
+ - spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/series_information.yml
856
857
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/subject_scheme.yml
857
858
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/subject_scheme_multiple_keywords.yml
858
859
  - spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/BlogPosting_Citeproc_JSON.yml