bolognese 0.13.6 → 0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bolognese/version.rb +1 -1
- data/resources/kernel-4.1/metadata.xsd +2 -2
- data/resources/kernel-4/metadata.xsd +2 -2
- data/spec/fixtures/schema_4.0.xml +140 -0
- data/spec/readers/datacite_reader_spec.rb +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6cdc861f9a40e68d5b686aa743776ae28a1abe6e286d4487e3e2e1cf09645902
|
|
4
|
+
data.tar.gz: f8cc065a778cdbf1f861fd8116f1683fd6316c2b6e52792a8f20452a8f32a403
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6aa5a1dd5cd3da5ee997ace3d8e1fe238b38b746d295aa34d3b1a9cafe848f9602b34a13b37e0c704de52a1a84ea6247a62b1ba9bcdb0ab65470069031ab0af
|
|
7
|
+
data.tar.gz: 779f7124c08655ec3b15449680e982ce48d335b7d6249d70230f4ce031f32b84a401e033a4d6e0df5ac7bc65a9d2f5572d738fd6e7cbc74e7455ce8d7cf8cae3
|
data/Gemfile.lock
CHANGED
data/lib/bolognese/version.rb
CHANGED
|
@@ -338,7 +338,7 @@ Use the complete title of a license and include version information if applicabl
|
|
|
338
338
|
<xs:sequence>
|
|
339
339
|
<xs:element name="geoLocation" minOccurs="0" maxOccurs="unbounded">
|
|
340
340
|
<xs:complexType>
|
|
341
|
-
<xs:
|
|
341
|
+
<xs:choice maxOccurs="unbounded">
|
|
342
342
|
<xs:element name="geoLocationPlace" minOccurs="0">
|
|
343
343
|
<xs:annotation>
|
|
344
344
|
<xs:documentation>Spatial region or named place where the data was gathered or about which the data is focused.</xs:documentation>
|
|
@@ -365,7 +365,7 @@ Use the complete title of a license and include version information if applicabl
|
|
|
365
365
|
</xs:sequence>
|
|
366
366
|
</xs:complexType>
|
|
367
367
|
</xs:element>
|
|
368
|
-
</xs:
|
|
368
|
+
</xs:choice>
|
|
369
369
|
</xs:complexType>
|
|
370
370
|
</xs:element>
|
|
371
371
|
</xs:sequence>
|
|
@@ -338,7 +338,7 @@ Use the complete title of a license and include version information if applicabl
|
|
|
338
338
|
<xs:sequence>
|
|
339
339
|
<xs:element name="geoLocation" minOccurs="0" maxOccurs="unbounded">
|
|
340
340
|
<xs:complexType>
|
|
341
|
-
<xs:
|
|
341
|
+
<xs:choice maxOccurs="unbounded">
|
|
342
342
|
<xs:element name="geoLocationPlace" minOccurs="0">
|
|
343
343
|
<xs:annotation>
|
|
344
344
|
<xs:documentation>Spatial region or named place where the data was gathered or about which the data is focused.</xs:documentation>
|
|
@@ -365,7 +365,7 @@ Use the complete title of a license and include version information if applicabl
|
|
|
365
365
|
</xs:sequence>
|
|
366
366
|
</xs:complexType>
|
|
367
367
|
</xs:element>
|
|
368
|
-
</xs:
|
|
368
|
+
</xs:choice>
|
|
369
369
|
</xs:complexType>
|
|
370
370
|
</xs:element>
|
|
371
371
|
</xs:sequence>
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
<?xml version="1.0" ?>
|
|
2
|
+
<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">
|
|
3
|
+
<identifier identifierType="DOI">10.6071/Z7WC73</identifier>
|
|
4
|
+
<creators>
|
|
5
|
+
<creator>
|
|
6
|
+
<creatorName>Bales, Roger</creatorName>
|
|
7
|
+
<affiliation>UC Merced</affiliation>
|
|
8
|
+
</creator>
|
|
9
|
+
<creator>
|
|
10
|
+
<creatorName>Meadows, Matt</creatorName>
|
|
11
|
+
<affiliation>UC Merced</affiliation>
|
|
12
|
+
</creator>
|
|
13
|
+
<creator>
|
|
14
|
+
<creatorName>Stacy, Erin</creatorName>
|
|
15
|
+
<nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0002-8862-1404</nameIdentifier>
|
|
16
|
+
<affiliation>UC Merced</affiliation>
|
|
17
|
+
</creator>
|
|
18
|
+
<creator>
|
|
19
|
+
<creatorName>Conklin, Martha</creatorName>
|
|
20
|
+
<nameIdentifier nameIdentifierScheme="ORCID" schemeURI="http://orcid.org/">0000-0002-9627-2427</nameIdentifier>
|
|
21
|
+
<affiliation>UC Merced</affiliation>
|
|
22
|
+
</creator>
|
|
23
|
+
<creator>
|
|
24
|
+
<creatorName>Meng, Xiande</creatorName>
|
|
25
|
+
<affiliation>UC Merced</affiliation>
|
|
26
|
+
</creator>
|
|
27
|
+
<creator>
|
|
28
|
+
<creatorName>Southern Sierra Critical Zone Observatory, SSCZO</creatorName>
|
|
29
|
+
<affiliation>NSF</affiliation>
|
|
30
|
+
</creator>
|
|
31
|
+
</creators>
|
|
32
|
+
<titles>
|
|
33
|
+
<title>
|
|
34
|
+
Southern Sierra Critical Zone Observatory (SSCZO), Providence Creek
|
|
35
|
+
meteorological data, soil moisture and temperature, snow depth and air
|
|
36
|
+
temperature
|
|
37
|
+
</title>
|
|
38
|
+
</titles>
|
|
39
|
+
<publisher>UC Merced</publisher>
|
|
40
|
+
<publicationYear>2013</publicationYear>
|
|
41
|
+
<subjects>
|
|
42
|
+
<subject>Earth sciences</subject>
|
|
43
|
+
<subject>soil moisture</subject>
|
|
44
|
+
<subject>soil temperature</subject>
|
|
45
|
+
<subject>snow depth</subject>
|
|
46
|
+
<subject>air temperature</subject>
|
|
47
|
+
<subject>water balance</subject>
|
|
48
|
+
<subject>Nevada, Sierra (mountain range)</subject>
|
|
49
|
+
</subjects>
|
|
50
|
+
<fundingReferences>
|
|
51
|
+
<fundingReference>
|
|
52
|
+
<funderName>
|
|
53
|
+
National Science Foundation, Division of Earth Sciences, Critical Zone
|
|
54
|
+
Observatories
|
|
55
|
+
</funderName>
|
|
56
|
+
<awardNumber>1331939, 0725097</awardNumber>
|
|
57
|
+
</fundingReference>
|
|
58
|
+
</fundingReferences>
|
|
59
|
+
<contributors>
|
|
60
|
+
<contributor contributorType="ProjectLeader">
|
|
61
|
+
<contributorName>Bales, Roger</contributorName>
|
|
62
|
+
<affiliation>University of California, Merced</affiliation>
|
|
63
|
+
</contributor>
|
|
64
|
+
<contributor contributorType="DataCollector">
|
|
65
|
+
<contributorName>Meadows, Matt</contributorName>
|
|
66
|
+
<affiliation>University of California, Merced</affiliation>
|
|
67
|
+
</contributor>
|
|
68
|
+
<contributor contributorType="DataManager">
|
|
69
|
+
<contributorName>Meng, Xiande</contributorName>
|
|
70
|
+
<affiliation>University of California, Merced</affiliation>
|
|
71
|
+
</contributor>
|
|
72
|
+
<contributor contributorType="ResearchGroup">
|
|
73
|
+
<contributorName>Southern Sierra Critical Zone Observatory</contributorName>
|
|
74
|
+
</contributor>
|
|
75
|
+
</contributors>
|
|
76
|
+
<dates>
|
|
77
|
+
<date dateType="Updated">2014-10-17</date>
|
|
78
|
+
<date dateType="Available">2016-03-14T17:02:02Z</date>
|
|
79
|
+
</dates>
|
|
80
|
+
<language>en</language>
|
|
81
|
+
<resourceType resourceTypeGeneral="Dataset">dataset</resourceType>
|
|
82
|
+
<sizes>
|
|
83
|
+
<size>1799269709 bytes</size>
|
|
84
|
+
</sizes>
|
|
85
|
+
<version>2</version>
|
|
86
|
+
<rightsList>
|
|
87
|
+
<rights rightsURI="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International (CC BY 4.0)</rights>
|
|
88
|
+
</rightsList>
|
|
89
|
+
<descriptions>
|
|
90
|
+
<description descriptionType="Abstract">
|
|
91
|
+
Snow depth, soil moisture and soil temperature are measured at lower
|
|
92
|
+
Providence South facing (LowMetS) and North facing (LowMetN), Upper
|
|
93
|
+
Providence South facing (UpMetS), North facing (UpMetN) and Flat aspect
|
|
94
|
+
(UpMetF), and Subcatchment basin P301 (P301) with a wireless sensor
|
|
95
|
+
network, using a Campbell Scientific logger to control peripheral devices.
|
|
96
|
+
Snow depth is measured in the open, at the drip edge and under canopies.
|
|
97
|
+
Soil moisture and temperature are measured at 10, 30, 60 and 90 cm depths
|
|
98
|
+
coincident with the snow depth nodes. 10 watt solar panels provides power
|
|
99
|
+
for monitoring at 10 minute intervals. Raw data have been processed to
|
|
100
|
+
level 1 (QA/QC) and level 2 (gap-filled, derived) data. Time period: water
|
|
101
|
+
year 2008 through water year 2012 (version 1), 2013 to 2016 (version 2).
|
|
102
|
+
</description>
|
|
103
|
+
<description descriptionType="Methods">
|
|
104
|
+
Soil volumetric water content (VWC) and soil temperature measured using
|
|
105
|
+
Decagon Devices ECHO-TM at depths of 10, 30, 60, an 90 cm below the
|
|
106
|
+
mineral soil surface. Sensor now equivalent to 5TM
|
|
107
|
+
(http://www.decagon.com/soil-moisture-sensors/). Distance to snow/soil
|
|
108
|
+
surface and air temperature measured with Judd Communications ultrasonic
|
|
109
|
+
depth sensor, using analog control ( http://www.juddcom.com/ ). Data
|
|
110
|
+
control and storage on Campbell Scientific CR1000 datalogger, using
|
|
111
|
+
AM16/32B multiplexer ( http://www.campbellsci.com ). Program for data
|
|
112
|
+
acquisition are located on UC Merced-SNRI digital library (
|
|
113
|
+
https://eng.ucmerced.edu/snsjho/files/MHWG/Field/Southern...)
|
|
114
|
+
</description>
|
|
115
|
+
<description descriptionType="Other">
|
|
116
|
+
Lower and upper Providence Creek, Subcatchment basin P301.acde: white fir
|
|
117
|
+
drip edge; acuc: white fir under canopy; cdde: incense-cedar drip edge;
|
|
118
|
+
cduc: incense-cedar under canopy; open: open canopy; plde: sugar pine drip
|
|
119
|
+
edge; pluc: sugar pine under canopy; ppde: Ponderosa pine drip; edge ppde:
|
|
120
|
+
Ponderosa pine drip edge; ppuc: Ponderosa pine under canopy; ppuc:
|
|
121
|
+
Ponderosa pine under canopy; qkde: black oak drip edge; qkuc: black oak
|
|
122
|
+
under canopy
|
|
123
|
+
</description>
|
|
124
|
+
</descriptions>
|
|
125
|
+
<geoLocations>
|
|
126
|
+
<geoLocation>
|
|
127
|
+
<geoLocationPoint>
|
|
128
|
+
<pointLatitude>37.047756</pointLatitude>
|
|
129
|
+
<pointLongitude>-119.221094</pointLongitude>
|
|
130
|
+
</geoLocationPoint>
|
|
131
|
+
<geoLocationBox>
|
|
132
|
+
<westBoundLongitude>-119.211</westBoundLongitude>
|
|
133
|
+
<eastBoundLongitude>-119.182</eastBoundLongitude>
|
|
134
|
+
<southBoundLatitude>37.046</southBoundLatitude>
|
|
135
|
+
<northBoundLatitude>37.075</northBoundLatitude>
|
|
136
|
+
</geoLocationBox>
|
|
137
|
+
<geoLocationPlace>Providence Creek (Lower, Upper and P301)</geoLocationPlace>
|
|
138
|
+
</geoLocation>
|
|
139
|
+
</geoLocations>
|
|
140
|
+
</resource>
|
|
@@ -163,6 +163,19 @@ describe Bolognese::Metadata, vcr: true do
|
|
|
163
163
|
expect(subject.errors).to eq("2:0: ERROR: Element '{http://datacite.org/schema/kernel-4}resource': Missing child element(s). Expected is one of ( {http://datacite.org/schema/kernel-4}resourceType, {http://datacite.org/schema/kernel-4}subjects, {http://datacite.org/schema/kernel-4}contributors, {http://datacite.org/schema/kernel-4}language, {http://datacite.org/schema/kernel-4}alternateIdentifiers, {http://datacite.org/schema/kernel-4}relatedIdentifiers, {http://datacite.org/schema/kernel-4}sizes, {http://datacite.org/schema/kernel-4}formats, {http://datacite.org/schema/kernel-4}rightsList, {http://datacite.org/schema/kernel-4}descriptions ).")
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
+
it "schema 4.0" do
|
|
167
|
+
input = fixture_path + 'schema_4.0.xml'
|
|
168
|
+
subject = Bolognese::Metadata.new(input: input)
|
|
169
|
+
puts subject.errors
|
|
170
|
+
expect(subject.valid?).to be true
|
|
171
|
+
expect(subject.identifier).to eq("https://doi.org/10.6071/z7wc73")
|
|
172
|
+
expect(subject.type).to eq("Dataset")
|
|
173
|
+
expect(subject.additional_type).to eq("dataset")
|
|
174
|
+
expect(subject.resource_type_general).to eq("Dataset")
|
|
175
|
+
expect(subject.author.length).to eq(6)
|
|
176
|
+
expect(subject.author.first).to eq("familyName"=>"Bales", "givenName"=>"Roger", "name"=>"Roger Bales", "type"=>"Person")
|
|
177
|
+
end
|
|
178
|
+
|
|
166
179
|
it "author only full name" do
|
|
167
180
|
input = "https://doi.org/10.14457/KMITL.RES.2006.17"
|
|
168
181
|
subject = Bolognese::Metadata.new(input: input)
|
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.
|
|
4
|
+
version: '0.14'
|
|
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-09-
|
|
11
|
+
date: 2018-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: maremma
|
|
@@ -610,6 +610,7 @@ files:
|
|
|
610
610
|
- spec/fixtures/ns0.xml
|
|
611
611
|
- spec/fixtures/pure.bib
|
|
612
612
|
- spec/fixtures/pure.ris
|
|
613
|
+
- spec/fixtures/schema_4.0.xml
|
|
613
614
|
- spec/fixtures/schema_org.json
|
|
614
615
|
- spec/fixtures/schema_org_gtex.json
|
|
615
616
|
- spec/fixtures/schema_org_list.json
|