bolognese 2.5.0 → 2.6.0

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/.github/workflows/release.yml +1 -1
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +182 -162
  6. data/bolognese.gemspec +29 -34
  7. data/lib/bolognese/author_utils.rb +0 -3
  8. data/lib/bolognese/datacite_utils.rb +4 -1
  9. data/lib/bolognese/metadata.rb +4 -4
  10. data/lib/bolognese/metadata_utils.rb +0 -1
  11. data/lib/bolognese/readers/crossref_reader.rb +14 -1
  12. data/lib/bolognese/readers/datacite_reader.rb +6 -2
  13. data/lib/bolognese/utils.rb +31 -8
  14. data/lib/bolognese/version.rb +1 -1
  15. data/lib/bolognese/writers/csv_writer.rb +3 -5
  16. data/lib/bolognese.rb +0 -4
  17. data/resources/kernel-4/include/datacite-contributorType-v4.xsd +1 -1
  18. data/resources/kernel-4/include/datacite-dateType-v4.xsd +1 -1
  19. data/resources/kernel-4/include/datacite-relatedIdentifierType-v4.xsd +3 -1
  20. data/resources/kernel-4/include/datacite-relationType-v4.xsd +4 -2
  21. data/resources/kernel-4/include/datacite-resourceType-v4.xsd +4 -1
  22. data/resources/kernel-4/metadata.xsd +4 -1
  23. data/resources/kernel-4.7/include/datacite-contributorType-v4.xsd +37 -0
  24. data/resources/kernel-4.7/include/datacite-dateType-v4.xsd +27 -0
  25. data/resources/kernel-4.7/include/datacite-descriptionType-v4.xsd +19 -0
  26. data/resources/kernel-4.7/include/datacite-funderIdentifierType-v4.xsd +16 -0
  27. data/resources/kernel-4.7/include/datacite-nameType-v4.xsd +10 -0
  28. data/resources/kernel-4.7/include/datacite-numberType-v4.xsd +12 -0
  29. data/resources/kernel-4.7/include/datacite-relatedIdentifierType-v4.xsd +39 -0
  30. data/resources/kernel-4.7/include/datacite-relationType-v4.xsd +59 -0
  31. data/resources/kernel-4.7/include/datacite-resourceType-v4.xsd +52 -0
  32. data/resources/kernel-4.7/include/datacite-titleType-v4.xsd +14 -0
  33. data/resources/kernel-4.7/include/xml.xsd +286 -0
  34. data/resources/kernel-4.7/metadata.xsd +715 -0
  35. metadata +128 -195
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'base64'
4
+
3
5
  module Bolognese
4
6
  module Readers
5
7
  module DataciteReader
@@ -206,7 +208,8 @@ module Bolognese
206
208
  "resourceTypeGeneral" => ri["resourceTypeGeneral"],
207
209
  "relatedMetadataScheme" => ri["relatedMetadataScheme"],
208
210
  "schemeUri" => ri["schemeURI"],
209
- "schemeType" => ri["schemeType"]
211
+ "schemeType" => ri["schemeType"],
212
+ "relationTypeInformation" => ri["relationTypeInformation"]
210
213
  }.compact
211
214
  end
212
215
 
@@ -226,7 +229,7 @@ module Bolognese
226
229
  "relatedItemIdentifierType" => rii["relatedItemIdentifierType"],
227
230
  "relatedMetadataScheme" => rii["relatedMetadataScheme"],
228
231
  "schemeURI" => rii["schemeURI"],
229
- "schemeType" => rii["schemeType"]
232
+ "schemeType" => rii["schemeType"],
230
233
  }.compact
231
234
  end
232
235
 
@@ -241,6 +244,7 @@ module Bolognese
241
244
 
242
245
  a = {
243
246
  "relationType" => ri["relationType"],
247
+ "relationTypeInformation" => ri["relationTypeInformation"],
244
248
  "relatedItemType" => ri["relatedItemType"],
245
249
  "relatedItemIdentifier" => relatedItemIdentifier,
246
250
  "creators" => get_authors(Array.wrap(ri.dig("creators", "creator"))),
@@ -67,7 +67,9 @@ module Bolognese
67
67
  "OutputManagementPlan" => nil,
68
68
  "PeerReview" => "Review",
69
69
  "PhysicalObject" => nil,
70
+ "Poster" => "Poster",
70
71
  "Preprint" => nil,
72
+ "Presentation" => "PresentationDigitalDocument",
71
73
  "Report" => "Report",
72
74
  "Service" => "Service",
73
75
  "Software" => "SoftwareSourceCode",
@@ -103,7 +105,9 @@ module Bolognese
103
105
  "OutputManagementPlan" => nil,
104
106
  "PeerReview" => "review",
105
107
  "PhysicalObject" => nil,
108
+ "Poster" => "document",
106
109
  "Preprint" => nil,
110
+ "Presentation" => "presentation",
107
111
  "Report" => "report",
108
112
  "Service" => nil,
109
113
  "Sound" => "song",
@@ -280,6 +284,8 @@ module Bolognese
280
284
  "Event" => "Event",
281
285
  "ImageObject" => "Image",
282
286
  "Movie" => "Audiovisual",
287
+ "Poster" => "Poster",
288
+ "PresentationDigitalDocument" => "Presentation",
283
289
  "PublicationIssue" => "Text",
284
290
  "Report" => "Report",
285
291
  "ScholarlyArticle" => "Text",
@@ -326,6 +332,8 @@ module Bolognese
326
332
  "Event" => nil,
327
333
  "ImageObject" => "graphic",
328
334
  "Movie" => "motion_picture",
335
+ "Poster" => "document",
336
+ "PresentationDigitalDocument" => "presentation",
329
337
  "PublicationIssue" => nil,
330
338
  "Report" => "report",
331
339
  "ScholarlyArticle" => "article-journal",
@@ -348,8 +356,10 @@ module Bolognese
348
356
  "Event" => nil,
349
357
  "ImageObject" => "FIGURE",
350
358
  "Movie" => "MPCT",
351
- "Report" => "RPRT",
359
+ "Poster" => "GEN",
360
+ "PresentationDigitalDocument" => "SLIDE",
352
361
  "PublicationIssue" => nil,
362
+ "Report" => "RPRT",
353
363
  "ScholarlyArticle" => "JOUR",
354
364
  "Service" => nil,
355
365
  "SoftwareSourceCode" => "COMP",
@@ -406,7 +416,9 @@ module Bolognese
406
416
  "OutputManagementPlan" => nil,
407
417
  "PeerReview" => nil,
408
418
  "PhysicalObject" => nil,
419
+ "Poster" => "GEN",
409
420
  "Preprint" => nil,
421
+ "Presentation" => "SLIDE",
410
422
  "Report" => "RRPT",
411
423
  "Service" => nil,
412
424
  "Software" => "COMP",
@@ -419,7 +431,7 @@ module Bolognese
419
431
 
420
432
  RIS_TO_DC_TRANSLATIONS = {
421
433
  "BLOG" => "Text",
422
- "GEN" => "Text",
434
+ "GEN" => "Poster",
423
435
  "CTLG" => "Collection",
424
436
  "DATA" => "Dataset",
425
437
  "FIGURE" => "Image",
@@ -428,7 +440,8 @@ module Bolognese
428
440
  "JOUR" => "JournalArticle",
429
441
  "COMP" => "Software",
430
442
  "VIDEO" => "Audiovisual",
431
- "ELEC" => "Text"
443
+ "ELEC" => "Text",
444
+ "SLIDE" => "Presentation"
432
445
  }
433
446
 
434
447
  BIB_TO_DC_TRANSLATIONS = {
@@ -452,7 +465,9 @@ module Bolognese
452
465
  "motion_picture" => "Audiovisual",
453
466
  "article-journal" => "JournalArticle",
454
467
  "broadcast" => "Audiovisual",
455
- "webpage" => "Text"
468
+ "webpage" => "Text",
469
+ "document" => "Poster",
470
+ "presentation" => "Presentation"
456
471
  }
457
472
 
458
473
  SO_TO_BIB_TRANSLATIONS = {
@@ -468,6 +483,8 @@ module Bolognese
468
483
  "Event" => "misc",
469
484
  "ImageObject" => "misc",
470
485
  "Movie" => "misc",
486
+ "Poster" => "misc",
487
+ "PresentationDigitalDocument" => "misc",
471
488
  "PublicationIssue" => "misc",
472
489
  "ScholarlyArticle" => "article",
473
490
  "Service" => "misc",
@@ -651,7 +668,7 @@ module Bolognese
651
668
  return nil unless uri && uri.host && %w(http https).include?(uri.scheme)
652
669
 
653
670
  # clean up URL
654
- PostRank::URI.clean(id)
671
+ normalize_uri_with_path_cleanup(uri)
655
672
  rescue Addressable::URI::InvalidURIError
656
673
  nil
657
674
  end
@@ -671,9 +688,7 @@ module Bolognese
671
688
  uri.scheme = "https" if options[:https]
672
689
 
673
690
  # clean up URL
674
- uri.path = PostRank::URI.clean(uri.path)
675
-
676
- uri.to_s
691
+ normalize_uri_with_path_cleanup(uri)
677
692
  rescue Addressable::URI::InvalidURIError
678
693
  nil
679
694
  end
@@ -1476,5 +1491,13 @@ module Bolognese
1476
1491
  }.compact
1477
1492
  end
1478
1493
  end
1494
+
1495
+ private
1496
+
1497
+ def normalize_uri_with_path_cleanup(uri)
1498
+ normalized_uri = uri.normalize
1499
+ normalized_uri.path = normalized_uri.path.sub(%r{/\z}, "") if normalized_uri.path.present?
1500
+ normalized_uri.to_s
1501
+ end
1479
1502
  end
1480
1503
  end
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "2.5.0"
2
+ VERSION = "2.6.0"
3
3
  end
@@ -4,18 +4,16 @@ module Bolognese
4
4
  require "csv"
5
5
 
6
6
  def csv
7
- return nil unless valid?
8
-
9
7
  bib = {
10
8
  doi: doi,
11
9
  url: url,
12
10
  registered: get_iso8601_date(date_registered),
13
11
  state: state,
14
- resource_type_general: types["resourceTypeGeneral"],
15
- resource_type: types["resourceType"],
12
+ resource_type_general: types.respond_to?(:to_h) ? types.to_h["resourceTypeGeneral"] : nil,
13
+ resource_type: types.respond_to?(:to_h) ? types.to_h["resourceType"] : nil,
16
14
  title: parse_attributes(titles, content: "title", first: true),
17
15
  author: authors_as_string(creators),
18
- publisher: publisher["name"],
16
+ publisher: publisher.respond_to?(:to_h) ? publisher.to_h["name"] : nil,
19
17
  publication_year: publication_year
20
18
  }.values
21
19
 
data/lib/bolognese.rb CHANGED
@@ -3,9 +3,7 @@
3
3
  require 'active_support/all'
4
4
  require 'nokogiri'
5
5
  require 'maremma'
6
- require 'postrank-uri'
7
6
  require 'bibtex'
8
- require 'colorize'
9
7
  require 'loofah'
10
8
  require 'json/ld'
11
9
  require 'rdf/turtle'
@@ -13,9 +11,7 @@ require 'rdf/rdfxml'
13
11
  require 'logger'
14
12
  require 'iso8601'
15
13
  require 'jsonlint'
16
- require 'benchmark_methods'
17
14
  require 'gender_detector'
18
- require 'citeproc/ruby'
19
15
  require 'citeproc'
20
16
  require 'csl/styles'
21
17
  require 'edtf'
@@ -3,7 +3,7 @@
3
3
  2013-05 v3.0: Addition of ID to simpleType element, added values "ResearchGroup" & "Other"
4
4
  2014-08-20 v3.1: Addition of value "DataCurator"
5
5
  2015-05-14 v4.0 dropped value "Funder", use new "funderReference"
6
- 2024-12-31 v4.6: Addition of value "Translator" -->
6
+ 2024-12-05 v4.6: Addition of value "Translator" -->
7
7
  <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">
8
8
  <xs:simpleType name="contributorType" id="contributorType">
9
9
  <xs:annotation>
@@ -3,7 +3,7 @@
3
3
  2013-05 v3.0: Addition of ID to simpleType element; addition of value "Collected"; deleted "StartDate" & "EndDate"
4
4
  2017-10-23 v4.1: Addition of value "Other"
5
5
  2019-02-14 v4.2: Addition of value "Withdrawn"
6
- 2024-12-31 v4.6: Addition of value "Coverage"-->
6
+ 2024-12-05 v4.6: Addition of value "Coverage"-->
7
7
  <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">
8
8
  <xs:simpleType name="dateType" id="dateType">
9
9
  <xs:annotation>
@@ -4,7 +4,7 @@
4
4
  2014-08-20 v3.1: Addition of values "arxiv" and "bibcode"
5
5
  2015-02-12 v4.0: Addition of value "IGSN"
6
6
  2019-02-14 v4.2: Addition of value "w3id"
7
- 2024-12-31 v4.5: Addition of values "CSTR", "RRID" -->
7
+ 2024-12-05 v4.5: Addition of values "CSTR", "RRID" -->
8
8
  <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">
9
9
  <xs:simpleType name="relatedIdentifierType" id="relatedIdentifierType">
10
10
  <xs:annotation>
@@ -27,7 +27,9 @@
27
27
  <xs:enumeration value="LSID" />
28
28
  <xs:enumeration value="PMID" />
29
29
  <xs:enumeration value="PURL" />
30
+ <xs:enumeration value="RAiD" />
30
31
  <xs:enumeration value="RRID" />
32
+ <xs:enumeration value="SWHID" />
31
33
  <xs:enumeration value="UPC" />
32
34
  <xs:enumeration value="URL" />
33
35
  <xs:enumeration value="URN" />
@@ -5,9 +5,10 @@
5
5
  2014-08-20 v3.1: Addition of values "Reviews" & "IsReviewedBy" and "IsDerivedFrom" & "IsSourceOf"
6
6
  2017-10-23 v4.1: Addition of values "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy"
7
7
  2019-02-14 v4.2: Addition of values "Obsoletes", "IsObsoletedBy"
8
- 2021-03-05 v4.4: Addition of value "IsPublishedIn"
8
+ 2021-03-05 v4.4: Addition of value "IsPublishedIn"
9
9
  2024-01-22 v4.5: Addition of values "Collects, "IsCollectedBy"
10
- 2024-12-31 v4.6: Addition of values "HasTranslation", "IsTranslationOf"-->
10
+ 2024-12-05 v4.6: Addition of values "HasTranslation", "IsTranslationOf"
11
+ 2026-03-31 v4.7: Addition of value "Other"-->
11
12
  <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">
12
13
  <xs:simpleType name="relationType" id="relationType">
13
14
  <xs:annotation>
@@ -52,6 +53,7 @@
52
53
  <xs:enumeration value="IsCollectedBy" />
53
54
  <xs:enumeration value="HasTranslation" />
54
55
  <xs:enumeration value="IsTranslationOf" />
56
+ <xs:enumeration value="Other" />
55
57
  </xs:restriction>
56
58
  </xs:simpleType>
57
59
  </xs:schema>
@@ -5,7 +5,8 @@
5
5
  2020-01-14 v4.4: Addition of values "Book", "Book Chapter", "ComputationalNotebook", "ConferencePaper", "ConferenceProceeding".
6
6
  "Dissertation", "Journal", "JournalArticle", "OutputManagementPlan", "PeerReview", "Preprint", "Report"
7
7
  2024-01-22 v4.5: Addition of values "Instrument", "StudyRegistration"
8
- 2024-12-31 v4.6: Addition of values "Award", "Project"-->
8
+ 2024-12-05 v4.6: Addition of values "Award", "Project"
9
+ 2026-03-31 v4.7: Addition of values "Poster", "Presentation"-->
9
10
  <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">
10
11
  <xs:simpleType name="resourceType" id="resourceType">
11
12
  <xs:annotation>
@@ -33,7 +34,9 @@
33
34
  <xs:enumeration value="OutputManagementPlan" />
34
35
  <xs:enumeration value="PeerReview" />
35
36
  <xs:enumeration value="PhysicalObject" />
37
+ <xs:enumeration value="Poster" />
36
38
  <xs:enumeration value="Preprint" />
39
+ <xs:enumeration value="Presentation" />
37
40
  <xs:enumeration value="Project" />
38
41
  <xs:enumeration value="Report" />
39
42
  <xs:enumeration value="Service" />
@@ -14,7 +14,8 @@
14
14
  2019-07-13 v4.3: Addition of new subproperties for Affiliation: "affiliationIdentifier", "affiliationIdentifierScheme", "schemeURI", addition of new sub-property for funderIdentifier: "schemeURI", addition of new funderIdentifierScheme: "ROR", added documentation for nameIdentifier
15
15
  2021-03-08 v4.4: Addition of new property relatedItem, relationType value "isPublishedIn", subject subproperty "classificationCode", controlled list "numberType", additional 13 properties for controlled list "resourceType"
16
16
  2024-01-22 v4.5: Addition of new subproperties for publisher: "publisherIdentifier", "publisherIdentifierScheme", and "schemeURI"; addition of new resourceTypeGeneral values "Instrument" and "StudyRegistration"; addition of new relationType values "Collects" and "IsCollectedBy".
17
- 2024-12-31 v4.6: Addition of new resourceTypeGeneral values "Award" and "Project"; addiition of new relatedIdentifierType values "CSTR" and "RRID"; addition of new contributorType "Translator"; addition of new relationTypes "HasTranslation" and "IsTranslationOf"; addition of new dateType "Coverage".-->
17
+ 2024-12-05 v4.6: Addition of new resourceTypeGeneral values "Award" and "Project"; addition of new relatedIdentifierType values "CSTR" and "RRID"; addition of new contributorType "Translator"; addition of new relationTypes "HasTranslation" and "IsTranslationOf"; addition of new dateType "Coverage".
18
+ 2026-03-31 v4.7: Addition of new resourceTypeGeneral values "Poster" and "Presentation"; addition of new relatedIdentifierType values "RAiD" and "SWHID"; addition of new relationType value "Other"; addition of new sub-property "relationTypeInformation" for RelatedIdentifier and RelatedItem.-->
18
19
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified" xml:lang="EN">
19
20
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="include/xml.xsd" />
20
21
  <xs:include schemaLocation="include/datacite-titleType-v4.xsd" />
@@ -251,6 +252,7 @@
251
252
  <xs:attribute name="relatedMetadataScheme" use="optional" />
252
253
  <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
253
254
  <xs:attribute name="schemeType" use="optional" />
255
+ <xs:attribute name="relationTypeInformation" use="optional" />
254
256
  </xs:extension>
255
257
  </xs:simpleContent>
256
258
  </xs:complexType>
@@ -604,6 +606,7 @@ Use the complete title of a license and include version information if applicabl
604
606
  <xs:documentation>Description of the relationship of the resource being registered (A) and the related resource (B).</xs:documentation>
605
607
  </xs:annotation>
606
608
  </xs:attribute>
609
+ <xs:attribute name="relationTypeInformation" use="optional" />
607
610
  </xs:complexType>
608
611
  </xs:element>
609
612
  </xs:sequence>
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element, added values "ResearchGroup" & "Other"
4
+ 2014-08-20 v3.1: Addition of value "DataCurator"
5
+ 2015-05-14 v4.0 dropped value "Funder", use new "funderReference"
6
+ 2024-12-05 v4.6: Addition of value "Translator" -->
7
+ <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">
8
+ <xs:simpleType name="contributorType" id="contributorType">
9
+ <xs:annotation>
10
+ <xs:documentation>The type of contributor of the resource.</xs:documentation>
11
+ </xs:annotation>
12
+ <xs:restriction base="xs:string">
13
+ <xs:enumeration value="ContactPerson" />
14
+ <xs:enumeration value="DataCollector" />
15
+ <xs:enumeration value="DataCurator" />
16
+ <xs:enumeration value="DataManager" />
17
+ <xs:enumeration value="Distributor" />
18
+ <xs:enumeration value="Editor" />
19
+ <xs:enumeration value="HostingInstitution" />
20
+ <xs:enumeration value="Other" />
21
+ <xs:enumeration value="Producer" />
22
+ <xs:enumeration value="ProjectLeader" />
23
+ <xs:enumeration value="ProjectManager" />
24
+ <xs:enumeration value="ProjectMember" />
25
+ <xs:enumeration value="RegistrationAgency" />
26
+ <xs:enumeration value="RegistrationAuthority" />
27
+ <xs:enumeration value="RelatedPerson" />
28
+ <xs:enumeration value="ResearchGroup" />
29
+ <xs:enumeration value="RightsHolder" />
30
+ <xs:enumeration value="Researcher" />
31
+ <xs:enumeration value="Sponsor" />
32
+ <xs:enumeration value="Supervisor" />
33
+ <xs:enumeration value="Translator" />
34
+ <xs:enumeration value="WorkPackageLeader" />
35
+ </xs:restriction>
36
+ </xs:simpleType>
37
+ </xs:schema>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element; addition of value "Collected"; deleted "StartDate" & "EndDate"
4
+ 2017-10-23 v4.1: Addition of value "Other"
5
+ 2019-02-14 v4.2: Addition of value "Withdrawn"
6
+ 2024-12-05 v4.6: Addition of value "Coverage"-->
7
+ <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">
8
+ <xs:simpleType name="dateType" id="dateType">
9
+ <xs:annotation>
10
+ <xs:documentation>The type of date. Use RKMS‐ISO8601 standard for depicting date ranges.To indicate the end of an embargo period, use Available. To indicate the start of an embargo period, use Submitted or Accepted, as appropriate.</xs:documentation>
11
+ </xs:annotation>
12
+ <xs:restriction base="xs:string">
13
+ <xs:enumeration value="Accepted" />
14
+ <xs:enumeration value="Available" />
15
+ <xs:enumeration value="Collected" />
16
+ <xs:enumeration value="Copyrighted" />
17
+ <xs:enumeration value="Coverage" />
18
+ <xs:enumeration value="Created" />
19
+ <xs:enumeration value="Issued" />
20
+ <xs:enumeration value="Other" />
21
+ <xs:enumeration value="Submitted" />
22
+ <xs:enumeration value="Updated" />
23
+ <xs:enumeration value="Valid" />
24
+ <xs:enumeration value="Withdrawn" />
25
+ </xs:restriction>
26
+ </xs:simpleType>
27
+ </xs:schema>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element, addition of value "Methods"
4
+ 2015-02-12 v4.0: Addition of value "TechnicalInfo"-->
5
+ <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">
6
+ <xs:simpleType name="descriptionType" id="descriptionType">
7
+ <xs:annotation>
8
+ <xs:documentation>The type of the description.</xs:documentation>
9
+ </xs:annotation>
10
+ <xs:restriction base="xs:string">
11
+ <xs:enumeration value="Abstract" />
12
+ <xs:enumeration value="Methods" />
13
+ <xs:enumeration value="SeriesInformation" />
14
+ <xs:enumeration value="TableOfContents" />
15
+ <xs:enumeration value="TechnicalInfo" />
16
+ <xs:enumeration value="Other" />
17
+ </xs:restriction>
18
+ </xs:simpleType>
19
+ </xs:schema>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2016-05-14 -->
3
+ <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">
4
+ <xs:simpleType name="funderIdentifierType" id="funderIdentifierType">
5
+ <xs:annotation>
6
+ <xs:documentation>The type of the funderIdentifier.</xs:documentation>
7
+ </xs:annotation>
8
+ <xs:restriction base="xs:string">
9
+ <xs:enumeration value="ISNI" />
10
+ <xs:enumeration value="GRID" />
11
+ <xs:enumeration value="ROR" />
12
+ <xs:enumeration value="Crossref Funder ID" />
13
+ <xs:enumeration value="Other" />
14
+ </xs:restriction>
15
+ </xs:simpleType>
16
+ </xs:schema>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 4.1 - Created 2017-10-23 -->
3
+ <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">
4
+ <xs:simpleType name="nameType" id="nameType">
5
+ <xs:restriction base="xs:string">
6
+ <xs:enumeration value="Organizational" />
7
+ <xs:enumeration value="Personal" />
8
+ </xs:restriction>
9
+ </xs:simpleType>
10
+ </xs:schema>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 4.4 - Created 2021-03-05 -->
3
+ <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">
4
+ <xs:simpleType name="numberType" id="numberType">
5
+ <xs:restriction base="xs:string">
6
+ <xs:enumeration value="Article" />
7
+ <xs:enumeration value="Chapter" />
8
+ <xs:enumeration value="Report" />
9
+ <xs:enumeration value="Other" />
10
+ </xs:restriction>
11
+ </xs:simpleType>
12
+ </xs:schema>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element; addition of value "PMID"
4
+ 2014-08-20 v3.1: Addition of values "arxiv" and "bibcode"
5
+ 2015-02-12 v4.0: Addition of value "IGSN"
6
+ 2019-02-14 v4.2: Addition of value "w3id"
7
+ 2024-12-05 v4.5: Addition of values "CSTR", "RRID" -->
8
+ <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">
9
+ <xs:simpleType name="relatedIdentifierType" id="relatedIdentifierType">
10
+ <xs:annotation>
11
+ <xs:documentation>The type of the RelatedIdentifier.</xs:documentation>
12
+ </xs:annotation>
13
+ <xs:restriction base="xs:string">
14
+ <xs:enumeration value="ARK" />
15
+ <xs:enumeration value="arXiv" />
16
+ <xs:enumeration value="bibcode" />
17
+ <xs:enumeration value="CSTR" />
18
+ <xs:enumeration value="DOI" />
19
+ <xs:enumeration value="EAN13" />
20
+ <xs:enumeration value="EISSN" />
21
+ <xs:enumeration value="Handle" />
22
+ <xs:enumeration value="IGSN" />
23
+ <xs:enumeration value="ISBN" />
24
+ <xs:enumeration value="ISSN" />
25
+ <xs:enumeration value="ISTC" />
26
+ <xs:enumeration value="LISSN" />
27
+ <xs:enumeration value="LSID" />
28
+ <xs:enumeration value="PMID" />
29
+ <xs:enumeration value="PURL" />
30
+ <xs:enumeration value="RAiD" />
31
+ <xs:enumeration value="RRID" />
32
+ <xs:enumeration value="SWHID" />
33
+ <xs:enumeration value="UPC" />
34
+ <xs:enumeration value="URL" />
35
+ <xs:enumeration value="URN" />
36
+ <xs:enumeration value="w3id" />
37
+ </xs:restriction>
38
+ </xs:simpleType>
39
+ </xs:schema>
@@ -0,0 +1,59 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ 2011-01-13 v1.0 - FZ, TIB, Germany
4
+ 2013-05 v3.0: Addition of ID to simpleType element, addition of values "IsIdenticalTo", "HasMetadata" & "IsMetadataFor"
5
+ 2014-08-20 v3.1: Addition of values "Reviews" & "IsReviewedBy" and "IsDerivedFrom" & "IsSourceOf"
6
+ 2017-10-23 v4.1: Addition of values "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy"
7
+ 2019-02-14 v4.2: Addition of values "Obsoletes", "IsObsoletedBy"
8
+ 2021-03-05 v4.4: Addition of value "IsPublishedIn"
9
+ 2024-01-22 v4.5: Addition of values "Collects, "IsCollectedBy"
10
+ 2024-12-05 v4.6: Addition of values "HasTranslation", "IsTranslationOf"
11
+ 2026-03-31 v4.7: Addition of value "Other"-->
12
+ <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">
13
+ <xs:simpleType name="relationType" id="relationType">
14
+ <xs:annotation>
15
+ <xs:documentation>Description of the relationship of the resource being registered (A) and the related resource (B).</xs:documentation>
16
+ </xs:annotation>
17
+ <xs:restriction base="xs:string">
18
+ <xs:enumeration value="IsCitedBy" />
19
+ <xs:enumeration value="Cites" />
20
+ <xs:enumeration value="IsSupplementTo" />
21
+ <xs:enumeration value="IsSupplementedBy" />
22
+ <xs:enumeration value="IsContinuedBy" />
23
+ <xs:enumeration value="Continues" />
24
+ <xs:enumeration value="IsNewVersionOf" />
25
+ <xs:enumeration value="IsPreviousVersionOf" />
26
+ <xs:enumeration value="IsPartOf" />
27
+ <xs:enumeration value="HasPart" />
28
+ <xs:enumeration value="IsPublishedIn" />
29
+ <xs:enumeration value="IsReferencedBy" />
30
+ <xs:enumeration value="References" />
31
+ <xs:enumeration value="IsDocumentedBy" />
32
+ <xs:enumeration value="Documents" />
33
+ <xs:enumeration value="IsCompiledBy" />
34
+ <xs:enumeration value="Compiles" />
35
+ <xs:enumeration value="IsVariantFormOf" />
36
+ <xs:enumeration value="IsOriginalFormOf" />
37
+ <xs:enumeration value="IsIdenticalTo" />
38
+ <xs:enumeration value="HasMetadata" />
39
+ <xs:enumeration value="IsMetadataFor" />
40
+ <xs:enumeration value="Reviews" />
41
+ <xs:enumeration value="IsReviewedBy" />
42
+ <xs:enumeration value="IsDerivedFrom" />
43
+ <xs:enumeration value="IsSourceOf" />
44
+ <xs:enumeration value="Describes" />
45
+ <xs:enumeration value="IsDescribedBy" />
46
+ <xs:enumeration value="HasVersion" />
47
+ <xs:enumeration value="IsVersionOf" />
48
+ <xs:enumeration value="Requires" />
49
+ <xs:enumeration value="IsRequiredBy" />
50
+ <xs:enumeration value="Obsoletes" />
51
+ <xs:enumeration value="IsObsoletedBy" />
52
+ <xs:enumeration value="Collects" />
53
+ <xs:enumeration value="IsCollectedBy" />
54
+ <xs:enumeration value="HasTranslation" />
55
+ <xs:enumeration value="IsTranslationOf" />
56
+ <xs:enumeration value="Other" />
57
+ </xs:restriction>
58
+ </xs:simpleType>
59
+ </xs:schema>
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element; added values "Audiovisual", "Workflow" & "Other"; deleted value "Film"
4
+ 2017-10-23 v4.1: Addition of value "DataPaper"
5
+ 2020-01-14 v4.4: Addition of values "Book", "Book Chapter", "ComputationalNotebook", "ConferencePaper", "ConferenceProceeding".
6
+ "Dissertation", "Journal", "JournalArticle", "OutputManagementPlan", "PeerReview", "Preprint", "Report"
7
+ 2024-01-22 v4.5: Addition of values "Instrument", "StudyRegistration"
8
+ 2024-12-05 v4.6: Addition of values "Award", "Project"
9
+ 2026-03-31 v4.7: Addition of values "Poster", "Presentation"-->
10
+ <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">
11
+ <xs:simpleType name="resourceType" id="resourceType">
12
+ <xs:annotation>
13
+ <xs:documentation>The general type of a resource.</xs:documentation>
14
+ </xs:annotation>
15
+ <xs:restriction base="xs:string">
16
+ <xs:enumeration value="Audiovisual" />
17
+ <xs:enumeration value="Award" />
18
+ <xs:enumeration value="Book" />
19
+ <xs:enumeration value="BookChapter" />
20
+ <xs:enumeration value="Collection" />
21
+ <xs:enumeration value="ComputationalNotebook" />
22
+ <xs:enumeration value="ConferencePaper" />
23
+ <xs:enumeration value="ConferenceProceeding" />
24
+ <xs:enumeration value="DataPaper" />
25
+ <xs:enumeration value="Dataset" />
26
+ <xs:enumeration value="Dissertation" />
27
+ <xs:enumeration value="Event" />
28
+ <xs:enumeration value="Image" />
29
+ <xs:enumeration value="Instrument" />
30
+ <xs:enumeration value="InteractiveResource" />
31
+ <xs:enumeration value="Journal" />
32
+ <xs:enumeration value="JournalArticle" />
33
+ <xs:enumeration value="Model" />
34
+ <xs:enumeration value="OutputManagementPlan" />
35
+ <xs:enumeration value="PeerReview" />
36
+ <xs:enumeration value="PhysicalObject" />
37
+ <xs:enumeration value="Poster" />
38
+ <xs:enumeration value="Preprint" />
39
+ <xs:enumeration value="Presentation" />
40
+ <xs:enumeration value="Project" />
41
+ <xs:enumeration value="Report" />
42
+ <xs:enumeration value="Service" />
43
+ <xs:enumeration value="Software" />
44
+ <xs:enumeration value="Sound" />
45
+ <xs:enumeration value="Standard" />
46
+ <xs:enumeration value="StudyRegistration" />
47
+ <xs:enumeration value="Text" />
48
+ <xs:enumeration value="Workflow" />
49
+ <xs:enumeration value="Other" />
50
+ </xs:restriction>
51
+ </xs:simpleType>
52
+ </xs:schema>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element
4
+ 2015-02-12 v4.0: Added value "Other" -->
5
+ <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">
6
+ <xs:simpleType name="titleType" id="titleType">
7
+ <xs:restriction base="xs:string">
8
+ <xs:enumeration value="AlternativeTitle" />
9
+ <xs:enumeration value="Subtitle" />
10
+ <xs:enumeration value="TranslatedTitle" />
11
+ <xs:enumeration value="Other" />
12
+ </xs:restriction>
13
+ </xs:simpleType>
14
+ </xs:schema>