bolognese 1.1.5 → 1.1.6
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.2/metadata.xsd +3 -10
- data/resources/kernel-4/metadata.xsd +3 -10
- data/spec/writers/datacite_writer_spec.rb +1 -3
- 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: 02ec698005af34046845045a8a78bd47ed1b70579678768b6117e242194c641e
|
|
4
|
+
data.tar.gz: ad2fbbd3bac845ce7c10f9c07f2a439b258a90cfe7020633adaa69568c92531d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50ca5d8a322de56b3d416c52e18080a6024e2d8ef706a268a8488d03f25ab6ec9f616943d6c6db4e6779459aa1d1191841613064a8d1b8892746554d5444cc42
|
|
7
|
+
data.tar.gz: 2c12554875e95489534c0a7fda479985f3b75e3fd5b24358f6bf63576e4a19f483bf9a3ea21dde316be5c808a3177f1c65734f6287d856deeb4c0a159e16c173
|
data/Gemfile.lock
CHANGED
data/lib/bolognese/version.rb
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
2016-09-19 v4.0: namespace: kernel-4.0; makes "resourceType" required field, added optional "givenName" and "familyName" to creator and contributor, added "funderReference", added "valueURI" for subject, added "geoLocationPolygon"
|
|
11
11
|
2017-10-23 v4.1: Addition of dateType value "Other", relationType values "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy", resourceType value "DataPaper", new subproperties "dateInformation", "inPolygonPoint", new attribute "nameType", optional attribute "resourceTypeGeneral" for relatedIdentifier
|
|
12
12
|
2018-09-08 v4.1.1 Make schema 4.1 backwards compatible to 4.0 by allowing geolocation elements in any order
|
|
13
|
-
2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names -->
|
|
13
|
+
2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names, don't check format of DOI -->
|
|
14
14
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified" xml:lang="EN">
|
|
15
15
|
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="include/xml.xsd"/>
|
|
16
16
|
<xs:include schemaLocation="include/datacite-titleType-v4.xsd"/>
|
|
@@ -35,12 +35,11 @@
|
|
|
35
35
|
<xs:element name="identifier">
|
|
36
36
|
<xs:annotation>
|
|
37
37
|
<xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
|
|
38
|
-
<xs:documentation>Currently, only DOI is allowed.</xs:documentation>
|
|
39
38
|
</xs:annotation>
|
|
40
39
|
<xs:complexType>
|
|
41
40
|
<xs:simpleContent>
|
|
42
|
-
<xs:extension base="
|
|
43
|
-
<xs:attribute name="identifierType" use="required"
|
|
41
|
+
<xs:extension base="nonemptycontentStringType">
|
|
42
|
+
<xs:attribute name="identifierType" use="required"/>
|
|
44
43
|
</xs:extension>
|
|
45
44
|
</xs:simpleContent>
|
|
46
45
|
</xs:complexType>
|
|
@@ -438,12 +437,6 @@ Use the complete title of a license and include version information if applicabl
|
|
|
438
437
|
</xs:complexType>
|
|
439
438
|
</xs:element>
|
|
440
439
|
<!-- TYPE DECLARATIONS -->
|
|
441
|
-
<!-- defines the value for a DOI" -->
|
|
442
|
-
<xs:simpleType name="doiType">
|
|
443
|
-
<xs:restriction base="xs:token">
|
|
444
|
-
<xs:pattern value="10\..+/.+"/>
|
|
445
|
-
</xs:restriction>
|
|
446
|
-
</xs:simpleType>
|
|
447
440
|
<!-- defines value for mandatory fields -->
|
|
448
441
|
<xs:simpleType name="nonemptycontentStringType">
|
|
449
442
|
<xs:restriction base="xs:string">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
2016-09-19 v4.0: namespace: kernel-4.0; makes "resourceType" required field, added optional "givenName" and "familyName" to creator and contributor, added "funderReference", added "valueURI" for subject, added "geoLocationPolygon"
|
|
11
11
|
2017-10-23 v4.1: Addition of dateType value "Other", relationType values "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy", resourceType value "DataPaper", new subproperties "dateInformation", "inPolygonPoint", new attribute "nameType", optional attribute "resourceTypeGeneral" for relatedIdentifier
|
|
12
12
|
2018-09-08 v4.1.1 Make schema 4.1 backwards compatible to 4.0 by allowing geolocation elements in any order
|
|
13
|
-
2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names -->
|
|
13
|
+
2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names, don't check format of DOI -->
|
|
14
14
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified" xml:lang="EN">
|
|
15
15
|
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="include/xml.xsd"/>
|
|
16
16
|
<xs:include schemaLocation="include/datacite-titleType-v4.xsd"/>
|
|
@@ -35,12 +35,11 @@
|
|
|
35
35
|
<xs:element name="identifier">
|
|
36
36
|
<xs:annotation>
|
|
37
37
|
<xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
|
|
38
|
-
<xs:documentation>Currently, only DOI is allowed.</xs:documentation>
|
|
39
38
|
</xs:annotation>
|
|
40
39
|
<xs:complexType>
|
|
41
40
|
<xs:simpleContent>
|
|
42
|
-
<xs:extension base="
|
|
43
|
-
<xs:attribute name="identifierType" use="required"
|
|
41
|
+
<xs:extension base="nonemptycontentStringType">
|
|
42
|
+
<xs:attribute name="identifierType" use="required"/>
|
|
44
43
|
</xs:extension>
|
|
45
44
|
</xs:simpleContent>
|
|
46
45
|
</xs:complexType>
|
|
@@ -438,12 +437,6 @@ Use the complete title of a license and include version information if applicabl
|
|
|
438
437
|
</xs:complexType>
|
|
439
438
|
</xs:element>
|
|
440
439
|
<!-- TYPE DECLARATIONS -->
|
|
441
|
-
<!-- defines the value for a DOI" -->
|
|
442
|
-
<xs:simpleType name="doiType">
|
|
443
|
-
<xs:restriction base="xs:token">
|
|
444
|
-
<xs:pattern value="10\..+/.+"/>
|
|
445
|
-
</xs:restriction>
|
|
446
|
-
</xs:simpleType>
|
|
447
440
|
<!-- defines value for mandatory fields -->
|
|
448
441
|
<xs:simpleType name="nonemptycontentStringType">
|
|
449
442
|
<xs:restriction base="xs:string">
|
|
@@ -311,9 +311,7 @@ describe Bolognese::Metadata, vcr: true do
|
|
|
311
311
|
subject.titles = "Data from: Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"
|
|
312
312
|
subject.types = { "schemaOrg" => "Dataset", "resourceTypeGeneral" => "Dataset" }
|
|
313
313
|
expect(subject.doi).to eq("123")
|
|
314
|
-
expect(subject.valid?).to be
|
|
315
|
-
expect(subject.errors.first).to start_with("3:0: ERROR: Element '{http://datacite.org/schema/kernel-4}identifier'")
|
|
316
|
-
datacite = Maremma.from_xml(subject.datacite).fetch("resource", {})
|
|
314
|
+
expect(subject.valid?).to be true
|
|
317
315
|
end
|
|
318
316
|
|
|
319
317
|
it "from schema_org gtex" do
|
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.1.
|
|
4
|
+
version: 1.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Fenner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: maremma
|