bolognese 0.4.3 → 2.6.1
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 +5 -5
- data/.github/workflows/build.yml +9 -0
- data/.github/workflows/changelog.yml +36 -0
- data/.github/workflows/ci.yml +22 -0
- data/.github/workflows/pull-request.yml +9 -0
- data/.github/workflows/release.yml +32 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +658 -0
- data/CHANGELOG.md +1864 -0
- data/CITATION +17 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +250 -98
- data/README.md +963 -21
- data/Rakefile +1 -0
- data/bin/bolognese +5 -1
- data/bolognese.gemspec +33 -21
- data/lib/bolognese/array.rb +13 -0
- data/lib/bolognese/author_utils.rb +147 -33
- data/lib/bolognese/citeproc_extensions.rb +48 -0
- data/lib/bolognese/cli.rb +28 -21
- data/lib/bolognese/datacite_utils.rb +292 -104
- data/lib/bolognese/doi_utils.rb +44 -20
- data/lib/bolognese/metadata.rb +249 -23
- data/lib/bolognese/metadata_utils.rb +228 -0
- data/lib/bolognese/pubmed.rb +2 -0
- data/lib/bolognese/readers/bibtex_reader.rb +100 -0
- data/lib/bolognese/readers/citeproc_reader.rb +125 -0
- data/lib/bolognese/readers/codemeta_reader.rb +108 -0
- data/lib/bolognese/readers/crosscite_reader.rb +17 -0
- data/lib/bolognese/readers/crossref_reader.rb +413 -0
- data/lib/bolognese/readers/datacite_json_reader.rb +17 -0
- data/lib/bolognese/readers/datacite_reader.rb +341 -0
- data/lib/bolognese/readers/npm_reader.rb +115 -0
- data/lib/bolognese/readers/ris_reader.rb +114 -0
- data/lib/bolognese/readers/schema_org_reader.rb +264 -0
- data/lib/bolognese/string.rb +3 -1
- data/lib/bolognese/utils.rb +1463 -25
- data/lib/bolognese/version.rb +1 -1
- data/lib/bolognese/whitelist_scrubber.rb +47 -0
- data/lib/bolognese/writers/bibtex_writer.rb +32 -0
- data/lib/bolognese/writers/citation_writer.rb +14 -0
- data/lib/bolognese/writers/citeproc_writer.rb +11 -0
- data/lib/bolognese/writers/codemeta_writer.rb +29 -0
- data/lib/bolognese/writers/crosscite_writer.rb +11 -0
- data/lib/bolognese/writers/crossref_writer.rb +11 -0
- data/lib/bolognese/writers/csv_writer.rb +24 -0
- data/lib/bolognese/writers/datacite_json_writer.rb +13 -0
- data/lib/bolognese/writers/datacite_writer.rb +12 -0
- data/lib/bolognese/writers/jats_writer.rb +137 -0
- data/lib/bolognese/writers/rdf_xml_writer.rb +11 -0
- data/lib/bolognese/writers/ris_writer.rb +29 -0
- data/lib/bolognese/writers/schema_org_writer.rb +55 -0
- data/lib/bolognese/writers/turtle_writer.rb +11 -0
- data/lib/bolognese.rb +19 -5
- data/package.json +12 -0
- data/resources/2008/09/xsd.xsl +997 -0
- data/resources/datacite-contributorType-v4.xsd +35 -0
- data/resources/datacite-dateType-v4.xsd +25 -0
- data/resources/datacite-descriptionType-v4.xsd +19 -0
- data/resources/datacite-funderIdentifierType-v4.xsd +15 -0
- data/resources/datacite-nameType-v4.xsd +10 -0
- data/resources/datacite-relatedIdentifierType-v4.xsd +34 -0
- data/resources/datacite-relationType-v4.xsd +49 -0
- data/resources/datacite-resourceType-v4.xsd +28 -0
- data/resources/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-2.1/include/datacite-contributorType-v1.1.xsd +22 -0
- data/resources/kernel-2.1/include/datacite-contributorType-v2.xsd +3 -0
- data/resources/kernel-2.1/include/datacite-dateType-v1.1.xsd +31 -0
- data/resources/kernel-2.1/include/datacite-dateType-v2.xsd +3 -0
- data/resources/kernel-2.1/include/datacite-descriptionType-v1.1.xsd +14 -0
- data/resources/kernel-2.1/include/datacite-descriptionType-v2.xsd +3 -0
- data/resources/kernel-2.1/include/datacite-relatedIdentifierType-v1.1.xsd +24 -0
- data/resources/kernel-2.1/include/datacite-relatedIdentifierType-v2.xsd +3 -0
- data/resources/kernel-2.1/include/datacite-relationType-v1.1.xsd +29 -0
- data/resources/kernel-2.1/include/datacite-relationType-v2.xsd +3 -0
- data/resources/kernel-2.1/include/datacite-resourceType-v1.1.xsd +22 -0
- data/resources/kernel-2.1/include/datacite-resourceType-v2.xsd +3 -0
- data/resources/kernel-2.1/include/datacite-titleType-v1.1.xsd +11 -0
- data/resources/kernel-2.1/include/datacite-titleType-v2.xsd +3 -0
- data/resources/kernel-2.1/metadata.xsd +315 -0
- data/resources/kernel-2.2/include/datacite-contributorType-v2.xsd +29 -0
- data/resources/kernel-2.2/include/datacite-dateType-v2.xsd +21 -0
- data/resources/kernel-2.2/include/datacite-descriptionType-v2.xsd +15 -0
- data/resources/kernel-2.2/include/datacite-relatedIdentifierType-v2.xsd +25 -0
- data/resources/kernel-2.2/include/datacite-relationType-v2.xsd +29 -0
- data/resources/kernel-2.2/include/datacite-resourceType-v2.xsd +23 -0
- data/resources/kernel-2.2/include/datacite-titleType-v2.xsd +10 -0
- data/resources/kernel-2.2/metadata.xsd +316 -0
- data/resources/kernel-3/include/datacite-contributorType-v3.1.xsd +35 -0
- data/resources/kernel-3/include/datacite-dateType-v3.xsd +21 -0
- data/resources/kernel-3/include/datacite-descriptionType-v3.xsd +17 -0
- data/resources/kernel-3/include/datacite-relatedIdentifierType-v3.1.xsd +30 -0
- data/resources/kernel-3/include/datacite-relationType-v3.1.xsd +38 -0
- data/resources/kernel-3/include/datacite-resourceType-v3.xsd +26 -0
- data/resources/kernel-3/include/datacite-titleType-v3.xsd +12 -0
- data/resources/kernel-3/include/xml.xsd +286 -0
- data/resources/kernel-3/metadata.xsd +380 -0
- data/resources/kernel-3.0/include/datacite-contributorType-v3.xsd +33 -0
- data/resources/kernel-3.0/include/datacite-dateType-v3.xsd +21 -0
- data/resources/kernel-3.0/include/datacite-descriptionType-v3.xsd +17 -0
- data/resources/kernel-3.0/include/datacite-relatedIdentifierType-v3.xsd +27 -0
- data/resources/kernel-3.0/include/datacite-relationType-v3.xsd +33 -0
- data/resources/kernel-3.0/include/datacite-resourceType-v3.xsd +26 -0
- data/resources/kernel-3.0/include/datacite-titleType-v3.xsd +12 -0
- data/resources/kernel-3.0/include/xml.xsd +286 -0
- data/resources/kernel-3.0/metadata.xsd +377 -0
- data/resources/kernel-3.1/include/datacite-contributorType-v3.1.xsd +35 -0
- data/resources/kernel-3.1/include/datacite-dateType-v3.xsd +21 -0
- data/resources/kernel-3.1/include/datacite-descriptionType-v3.xsd +17 -0
- data/resources/kernel-3.1/include/datacite-relatedIdentifierType-v3.1.xsd +30 -0
- data/resources/kernel-3.1/include/datacite-relationType-v3.1.xsd +38 -0
- data/resources/kernel-3.1/include/datacite-resourceType-v3.xsd +26 -0
- data/resources/kernel-3.1/include/datacite-titleType-v3.xsd +12 -0
- data/resources/kernel-3.1/include/xml.xsd +286 -0
- data/resources/kernel-3.1/metadata.xsd +380 -0
- data/resources/kernel-4/include/datacite-contributorType-v4.xsd +37 -0
- data/resources/kernel-4/include/datacite-dateType-v4.xsd +27 -0
- data/resources/kernel-4/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4/include/datacite-funderIdentifierType-v4.xsd +16 -0
- data/resources/kernel-4/include/datacite-nameType-v4.xsd +10 -0
- data/resources/kernel-4/include/datacite-numberType-v4.xsd +12 -0
- data/resources/kernel-4/include/datacite-relatedIdentifierType-v4.xsd +39 -0
- data/resources/kernel-4/include/datacite-relationType-v4.xsd +59 -0
- data/resources/kernel-4/include/datacite-resourceType-v4.xsd +52 -0
- data/resources/kernel-4/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4/include/xml.xsd +286 -0
- data/resources/kernel-4/metadata.xsd +715 -0
- data/resources/kernel-4.0/include/datacite-contributorType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/datacite-dateType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/datacite-descriptionType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/datacite-funderIdentifierType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/datacite-relatedIdentifierType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/datacite-relationType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/datacite-resourceType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/datacite-titleType-v4.xsd +1 -1
- data/resources/kernel-4.0/include/xml.xsd +286 -0
- data/resources/kernel-4.0/metadata.xsd +2 -2
- data/resources/kernel-4.1/include/datacite-contributorType-v4.xsd +35 -0
- data/resources/kernel-4.1/include/datacite-dateType-v4.1.xsd +23 -0
- data/resources/kernel-4.1/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.1/include/datacite-funderIdentifierType-v4.xsd +15 -0
- data/resources/kernel-4.1/include/datacite-nameType-v4.1.xsd +10 -0
- data/resources/kernel-4.1/include/datacite-relatedIdentifierType-v4.xsd +32 -0
- data/resources/kernel-4.1/include/datacite-relationType-v4.1.xsd +46 -0
- data/resources/kernel-4.1/include/datacite-resourceType-v4.1.xsd +28 -0
- data/resources/kernel-4.1/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.1/include/xml.xsd +286 -0
- data/resources/kernel-4.1/metadata.xsd +483 -0
- data/resources/kernel-4.2/include/datacite-contributorType-v4.xsd +35 -0
- data/resources/kernel-4.2/include/datacite-dateType-v4.xsd +25 -0
- data/resources/kernel-4.2/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.2/include/datacite-funderIdentifierType-v4.xsd +15 -0
- data/resources/kernel-4.2/include/datacite-nameType-v4.xsd +10 -0
- data/resources/kernel-4.2/include/datacite-relatedIdentifierType-v4.xsd +34 -0
- data/resources/kernel-4.2/include/datacite-relationType-v4.xsd +49 -0
- data/resources/kernel-4.2/include/datacite-resourceType-v4.xsd +28 -0
- data/resources/kernel-4.2/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.2/include/xml.xsd +286 -0
- data/resources/kernel-4.2/metadata.xsd +479 -0
- data/resources/kernel-4.3/include/datacite-contributorType-v4.xsd +35 -0
- data/resources/kernel-4.3/include/datacite-dateType-v4.xsd +25 -0
- data/resources/kernel-4.3/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.3/include/datacite-funderIdentifierType-v4.xsd +16 -0
- data/resources/kernel-4.3/include/datacite-nameType-v4.xsd +10 -0
- data/resources/kernel-4.3/include/datacite-relatedIdentifierType-v4.xsd +34 -0
- data/resources/kernel-4.3/include/datacite-relationType-v4.xsd +49 -0
- data/resources/kernel-4.3/include/datacite-resourceType-v4.xsd +28 -0
- data/resources/kernel-4.3/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.3/include/xml.xsd +286 -0
- data/resources/kernel-4.3/metadata.xsd +515 -0
- data/resources/kernel-4.4/include/datacite-contributorType-v4.xsd +35 -0
- data/resources/kernel-4.4/include/datacite-dateType-v4.xsd +25 -0
- data/resources/kernel-4.4/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.4/include/datacite-funderIdentifierType-v4.xsd +16 -0
- data/resources/kernel-4.4/include/datacite-nameType-v4.xsd +10 -0
- data/resources/kernel-4.4/include/datacite-numberType-v4.xsd +12 -0
- data/resources/kernel-4.4/include/datacite-relatedIdentifierType-v4.xsd +34 -0
- data/resources/kernel-4.4/include/datacite-relationType-v4.xsd +51 -0
- data/resources/kernel-4.4/include/datacite-resourceType-v4.xsd +43 -0
- data/resources/kernel-4.4/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.4/include/xml.xsd +286 -0
- data/resources/kernel-4.4/metadata.xsd +707 -0
- data/resources/kernel-4.5/include/datacite-contributorType-v4.xsd +35 -0
- data/resources/kernel-4.5/include/datacite-dateType-v4.xsd +25 -0
- data/resources/kernel-4.5/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.5/include/datacite-funderIdentifierType-v4.xsd +16 -0
- data/resources/kernel-4.5/include/datacite-nameType-v4.xsd +10 -0
- data/resources/kernel-4.5/include/datacite-numberType-v4.xsd +12 -0
- data/resources/kernel-4.5/include/datacite-relatedIdentifierType-v4.xsd +34 -0
- data/resources/kernel-4.5/include/datacite-relationType-v4.xsd +53 -0
- data/resources/kernel-4.5/include/datacite-resourceType-v4.xsd +45 -0
- data/resources/kernel-4.5/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.5/include/xml.xsd +286 -0
- data/resources/kernel-4.5/metadata.xsd +711 -0
- data/resources/kernel-4.6/include/datacite-contributorType-v4.xsd +37 -0
- data/resources/kernel-4.6/include/datacite-dateType-v4.xsd +27 -0
- data/resources/kernel-4.6/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.6/include/datacite-funderIdentifierType-v4.xsd +16 -0
- data/resources/kernel-4.6/include/datacite-nameType-v4.xsd +10 -0
- data/resources/kernel-4.6/include/datacite-numberType-v4.xsd +12 -0
- data/resources/kernel-4.6/include/datacite-relatedIdentifierType-v4.xsd +37 -0
- data/resources/kernel-4.6/include/datacite-relationType-v4.xsd +57 -0
- data/resources/kernel-4.6/include/datacite-resourceType-v4.xsd +49 -0
- data/resources/kernel-4.6/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.6/include/xml.xsd +286 -0
- data/resources/kernel-4.6/metadata.xsd +712 -0
- data/resources/kernel-4.7/include/datacite-contributorType-v4.xsd +37 -0
- data/resources/kernel-4.7/include/datacite-dateType-v4.xsd +27 -0
- data/resources/kernel-4.7/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.7/include/datacite-funderIdentifierType-v4.xsd +16 -0
- data/resources/kernel-4.7/include/datacite-nameType-v4.xsd +10 -0
- data/resources/kernel-4.7/include/datacite-numberType-v4.xsd +12 -0
- data/resources/kernel-4.7/include/datacite-relatedIdentifierType-v4.xsd +39 -0
- data/resources/kernel-4.7/include/datacite-relationType-v4.xsd +59 -0
- data/resources/kernel-4.7/include/datacite-resourceType-v4.xsd +52 -0
- data/resources/kernel-4.7/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.7/include/xml.xsd +286 -0
- data/resources/kernel-4.7/metadata.xsd +715 -0
- data/resources/oecd/dfg-mappings.json +1866 -0
- data/resources/oecd/for-mappings.json +1101 -0
- data/resources/oecd/fos-mappings.json +198 -0
- data/resources/schema_org/jsonldcontext.json +7477 -0
- data/resources/spdx/licenses.json +5297 -0
- data/resources/xml.xsd +286 -0
- metadata +466 -179
- data/.travis.yml +0 -23
- data/lib/bolognese/crossref.rb +0 -233
- data/lib/bolognese/datacite.rb +0 -176
- data/lib/bolognese/date_utils.rb +0 -48
- data/lib/bolognese/github.rb +0 -106
- data/lib/bolognese/orcid.rb +0 -24
- data/lib/bolognese/schema_org.rb +0 -170
- data/spec/cli_spec.rb +0 -56
- data/spec/crossref_spec.rb +0 -190
- data/spec/datacite_spec.rb +0 -93
- data/spec/datacite_utils_spec.rb +0 -159
- data/spec/doi_utils_spec.rb +0 -89
- data/spec/fixtures/crossref.xml +0 -742
- data/spec/fixtures/datacite.xml +0 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_crossref.yml +0 -760
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_datacite.yml +0 -1476
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_schema_org.yml +0 -1476
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_datacite.yml +0 -214
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_schema_org.yml +0 -384
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/schema_org/as_datacite.yml +0 -653
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/schema_org/as_schema_org.yml +0 -653
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/crossref.yml +0 -971
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/datacite.yml +0 -971
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/medra.yml +0 -971
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/doi_registration_agency/not_found.yml +0 -971
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_ORCID_ID.yml +0 -506
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_SICI_DOI.yml +0 -214
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_data_citation.yml +0 -901
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/date_in_future.yml +0 -305
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml +0 -1080
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +0 -183
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml +0 -389
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/DOI_with_ORCID_ID.yml +0 -506
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/DOI_with_data_citation.yml +0 -901
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_ORCID_ID.yml +0 -366
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_data_citation.yml +0 -719
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_editor.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_string/DOI_with_data_citation.yml +0 -719
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/SICI_doi.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_from_url_without_doi_proxy.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_prefix_too_long.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_prefix_with_string.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_with_protocol.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/dx_doi_org_url.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/https_url.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/not_valid_doi_prefix.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_ids/doi.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_ids/url.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_url/doi.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_url/url.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/array.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/hash.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/nil.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/string.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/array.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/hash.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/nil.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/string.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/validate_url/DOI.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/validate_url/URL.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/validate_url/string.yml +0 -930
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/BlogPosting.yml +0 -477
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Dataset.yml +0 -1925
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Date.yml +0 -458
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_string/Dataset.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_alternate_identifiers/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_contributors/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_contributors/none.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_creators/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_dates/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_descriptions/insert.yml +0 -155
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_identifier/doi.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator_given_and_family_name.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator_only_name.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_publication_year/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_publisher/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/get_related_identifier_type.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/get_related_identifier_type_DOI.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/get_related_identifier_type_URL.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/rel_identifiers.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_resource_type/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_rights_list/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_subjects/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_titles/doi.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_titles/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_version/insert.yml +0 -173
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref_doi_not_url.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite_doi_http.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/orcid.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata/BlogPosting.yml +0 -632
- data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata/not_found_error.yml +0 -93
- data/spec/metadata_spec.rb +0 -41
- data/spec/orcid_spec.rb +0 -23
- data/spec/schema_org_spec.rb +0 -33
- data/spec/spec_helper.rb +0 -88
- data/spec/utils_spec.rb +0 -107
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- Revision history
|
|
3
|
+
2010-08-26 Complete revision according to new common specification by the metadata work group after review. AJH, DTIC
|
|
4
|
+
2010-11-17 Revised to current state of kernel review, FZ, TIB
|
|
5
|
+
2011-01-17 Complete revsion after community review. FZ, TIB
|
|
6
|
+
2011-03-17 Release of v2.1: added a namespace; mandatory properties got minLength; changes in the definitions of relationTypes
|
|
7
|
+
IsDocumentedBy/Documents and isCompiledBy/Compiles; changes type of property "Date" from xs:date to xs:string. FZ, TIB
|
|
8
|
+
2011-06-27 v2.2: namespace: kernel-2.2, additions to controlled lists "resourceType", "contributorType", "relatedIdentifierType", and "descriptionType". Removal of intermediate include-files.
|
|
9
|
+
-->
|
|
10
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-2.2" targetNamespace="http://datacite.org/schema/kernel-2.2" elementFormDefault="qualified" xml:lang="EN">
|
|
11
|
+
<xs:include schemaLocation="include/datacite-titleType-v2.xsd"/>
|
|
12
|
+
<xs:include schemaLocation="include/datacite-contributorType-v2.xsd"/>
|
|
13
|
+
<xs:include schemaLocation="include/datacite-dateType-v2.xsd"/>
|
|
14
|
+
<xs:include schemaLocation="include/datacite-resourceType-v2.xsd"/>
|
|
15
|
+
<xs:include schemaLocation="include/datacite-relationType-v2.xsd"/>
|
|
16
|
+
<xs:include schemaLocation="include/datacite-relatedIdentifierType-v2.xsd"/>
|
|
17
|
+
<xs:include schemaLocation="include/datacite-descriptionType-v2.xsd"/>
|
|
18
|
+
<xs:element name="resource">
|
|
19
|
+
<xs:annotation>
|
|
20
|
+
<xs:documentation>
|
|
21
|
+
Root element of a single record. This wrapper element is for XML implementation only and is not defined in the DataCite DOI standard.
|
|
22
|
+
Note: This is the case for any wrapper element within this schema!</xs:documentation>
|
|
23
|
+
<xs:documentation>No content in this wrapper element.</xs:documentation>
|
|
24
|
+
</xs:annotation>
|
|
25
|
+
<xs:complexType>
|
|
26
|
+
<xs:sequence>
|
|
27
|
+
<!--REQUIRED FIELDS-->
|
|
28
|
+
<xs:element name="identifier">
|
|
29
|
+
<xs:annotation>
|
|
30
|
+
<xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
|
|
31
|
+
<xs:documentation>Currently, only DOI is allowed.</xs:documentation>
|
|
32
|
+
</xs:annotation>
|
|
33
|
+
<xs:complexType>
|
|
34
|
+
<xs:simpleContent>
|
|
35
|
+
<xs:extension base="doiType">
|
|
36
|
+
<xs:attribute name="identifierType" use="required" fixed="DOI"/>
|
|
37
|
+
</xs:extension>
|
|
38
|
+
</xs:simpleContent>
|
|
39
|
+
</xs:complexType>
|
|
40
|
+
</xs:element>
|
|
41
|
+
<xs:element name="creators">
|
|
42
|
+
<xs:complexType>
|
|
43
|
+
<xs:sequence>
|
|
44
|
+
<xs:element name="creator" maxOccurs="unbounded">
|
|
45
|
+
<xs:annotation>
|
|
46
|
+
<xs:documentation>The main researchers involved working on the data, or the authors of the publication in priority order. May be a corporate/institutional or personal name.</xs:documentation>
|
|
47
|
+
<xs:documentation>Format: Family, Given.</xs:documentation>
|
|
48
|
+
</xs:annotation>
|
|
49
|
+
<xs:complexType>
|
|
50
|
+
<xs:sequence>
|
|
51
|
+
<xs:element name="creatorName">
|
|
52
|
+
<xs:simpleType>
|
|
53
|
+
<xs:restriction base="nonemptycontentStringType"/>
|
|
54
|
+
</xs:simpleType>
|
|
55
|
+
</xs:element>
|
|
56
|
+
<xs:element name="nameIdentifier" minOccurs="0">
|
|
57
|
+
<xs:complexType>
|
|
58
|
+
<xs:simpleContent>
|
|
59
|
+
<xs:extension base="nonemptycontentStringType">
|
|
60
|
+
<xs:attribute name="nameIdentifierScheme" use="required"/>
|
|
61
|
+
</xs:extension>
|
|
62
|
+
</xs:simpleContent>
|
|
63
|
+
</xs:complexType>
|
|
64
|
+
</xs:element>
|
|
65
|
+
</xs:sequence>
|
|
66
|
+
</xs:complexType>
|
|
67
|
+
</xs:element>
|
|
68
|
+
</xs:sequence>
|
|
69
|
+
</xs:complexType>
|
|
70
|
+
</xs:element>
|
|
71
|
+
<xs:element name="titles">
|
|
72
|
+
<xs:complexType>
|
|
73
|
+
<xs:sequence>
|
|
74
|
+
<xs:element name="title" maxOccurs="unbounded">
|
|
75
|
+
<xs:annotation>
|
|
76
|
+
<xs:documentation>A name or title by which a resource is known.</xs:documentation>
|
|
77
|
+
</xs:annotation>
|
|
78
|
+
<xs:complexType>
|
|
79
|
+
<xs:simpleContent>
|
|
80
|
+
<xs:extension base="nonemptycontentStringType">
|
|
81
|
+
<xs:attribute name="titleType" type="titleType" use="optional"/>
|
|
82
|
+
</xs:extension>
|
|
83
|
+
</xs:simpleContent>
|
|
84
|
+
</xs:complexType>
|
|
85
|
+
</xs:element>
|
|
86
|
+
</xs:sequence>
|
|
87
|
+
</xs:complexType>
|
|
88
|
+
</xs:element>
|
|
89
|
+
<xs:element name="publisher">
|
|
90
|
+
<xs:annotation>
|
|
91
|
+
<xs:documentation>A holder of the data (including archives as appropriate) or institution which submitted the work. Any others may be listed as contributors. This property will be used to formulate the citation, so consider the prominence of the role.</xs:documentation>
|
|
92
|
+
<xs:documentation>Examples: World Data Center for Climate (WDCC); GeoForschungsZentrum Potsdam (GFZ); Geological Institute, University of Tokyo </xs:documentation>
|
|
93
|
+
<xs:documentation>In the case of datasets, "publish" is understood to mean making the data available to the community of researchers.</xs:documentation>
|
|
94
|
+
</xs:annotation>
|
|
95
|
+
<xs:simpleType>
|
|
96
|
+
<xs:restriction base="nonemptycontentStringType"/>
|
|
97
|
+
</xs:simpleType>
|
|
98
|
+
</xs:element>
|
|
99
|
+
<xs:element name="publicationYear">
|
|
100
|
+
<xs:annotation>
|
|
101
|
+
<xs:documentation>Year when the data is made publicly available. If an embargo period has been in effect, use the date when the embargo period ends.</xs:documentation>
|
|
102
|
+
<xs:documentation>YYYY</xs:documentation>
|
|
103
|
+
</xs:annotation>
|
|
104
|
+
<xs:simpleType>
|
|
105
|
+
<xs:restriction base="yearType"/>
|
|
106
|
+
</xs:simpleType>
|
|
107
|
+
</xs:element>
|
|
108
|
+
<!--OPTIONAL FIELDS-->
|
|
109
|
+
<xs:element name="subjects" minOccurs="0">
|
|
110
|
+
<xs:complexType>
|
|
111
|
+
<xs:sequence>
|
|
112
|
+
<xs:element name="subject" maxOccurs="unbounded">
|
|
113
|
+
<xs:annotation>
|
|
114
|
+
<xs:documentation>Subject, keywords, classification codes, or key phrases describing the resource.</xs:documentation>
|
|
115
|
+
</xs:annotation>
|
|
116
|
+
<xs:complexType>
|
|
117
|
+
<xs:simpleContent>
|
|
118
|
+
<xs:extension base="xs:string">
|
|
119
|
+
<xs:attribute name="subjectScheme" use="optional"/>
|
|
120
|
+
</xs:extension>
|
|
121
|
+
</xs:simpleContent>
|
|
122
|
+
</xs:complexType>
|
|
123
|
+
</xs:element>
|
|
124
|
+
</xs:sequence>
|
|
125
|
+
</xs:complexType>
|
|
126
|
+
</xs:element>
|
|
127
|
+
<xs:element name="contributors" minOccurs="0">
|
|
128
|
+
<xs:complexType>
|
|
129
|
+
<xs:sequence>
|
|
130
|
+
<xs:element name="contributor" maxOccurs="unbounded">
|
|
131
|
+
<xs:annotation>
|
|
132
|
+
<xs:documentation>The institution or person responsible for collecting, creating, or otherwise contributing to the developement of the dataset.</xs:documentation>
|
|
133
|
+
<xs:documentation>The personal name format should be: Family, Given.</xs:documentation>
|
|
134
|
+
</xs:annotation>
|
|
135
|
+
<xs:complexType mixed="true">
|
|
136
|
+
<xs:sequence>
|
|
137
|
+
<xs:element name="contributorName">
|
|
138
|
+
<xs:simpleType>
|
|
139
|
+
<xs:restriction base="xs:string">
|
|
140
|
+
<xs:minLength value="1"/>
|
|
141
|
+
</xs:restriction>
|
|
142
|
+
</xs:simpleType>
|
|
143
|
+
</xs:element>
|
|
144
|
+
<xs:element name="nameIdentifier" minOccurs="0">
|
|
145
|
+
<xs:complexType>
|
|
146
|
+
<xs:simpleContent>
|
|
147
|
+
<xs:extension base="xs:string">
|
|
148
|
+
<xs:attribute name="nameIdentifierScheme" use="required"/>
|
|
149
|
+
</xs:extension>
|
|
150
|
+
</xs:simpleContent>
|
|
151
|
+
</xs:complexType>
|
|
152
|
+
</xs:element>
|
|
153
|
+
</xs:sequence>
|
|
154
|
+
<xs:attribute name="contributorType" type="contributorType" use="required"/>
|
|
155
|
+
</xs:complexType>
|
|
156
|
+
</xs:element>
|
|
157
|
+
</xs:sequence>
|
|
158
|
+
</xs:complexType>
|
|
159
|
+
</xs:element>
|
|
160
|
+
<xs:element name="dates" minOccurs="0">
|
|
161
|
+
<xs:complexType>
|
|
162
|
+
<xs:sequence>
|
|
163
|
+
<xs:element name="date" maxOccurs="unbounded">
|
|
164
|
+
<xs:annotation>
|
|
165
|
+
<xs:documentation>Different dates relevant to the work.</xs:documentation>
|
|
166
|
+
<xs:documentation>YYYY or YYYY-MM-DD or any other format described in W3CDTF (http://www.w3.org/TR/NOTE-datetime) </xs:documentation>
|
|
167
|
+
</xs:annotation>
|
|
168
|
+
<xs:complexType>
|
|
169
|
+
<xs:simpleContent>
|
|
170
|
+
<xs:extension base="xs:string">
|
|
171
|
+
<xs:attribute name="dateType" type="dateType" use="required"/>
|
|
172
|
+
</xs:extension>
|
|
173
|
+
</xs:simpleContent>
|
|
174
|
+
</xs:complexType>
|
|
175
|
+
</xs:element>
|
|
176
|
+
</xs:sequence>
|
|
177
|
+
</xs:complexType>
|
|
178
|
+
</xs:element>
|
|
179
|
+
<xs:element name="language" type="xs:language" minOccurs="0">
|
|
180
|
+
<xs:annotation>
|
|
181
|
+
<xs:documentation>Primary language of the resource. Allowed values from: ISO 639-2/B, ISO 639-3</xs:documentation>
|
|
182
|
+
</xs:annotation>
|
|
183
|
+
</xs:element>
|
|
184
|
+
<xs:element name="resourceType" minOccurs="0">
|
|
185
|
+
<xs:annotation>
|
|
186
|
+
<xs:documentation>The type of a resource. You may enter an additional free text description.</xs:documentation>
|
|
187
|
+
</xs:annotation>
|
|
188
|
+
<xs:complexType mixed="true">
|
|
189
|
+
<xs:annotation>
|
|
190
|
+
<xs:documentation>Use this attribute to choose the general type of the resource from the controlled list.</xs:documentation>
|
|
191
|
+
</xs:annotation>
|
|
192
|
+
<xs:attribute name="resourceTypeGeneral" type="resourceType" use="required"/>
|
|
193
|
+
</xs:complexType>
|
|
194
|
+
</xs:element>
|
|
195
|
+
<xs:element name="alternateIdentifiers" minOccurs="0">
|
|
196
|
+
<xs:complexType>
|
|
197
|
+
<xs:sequence>
|
|
198
|
+
<xs:element name="alternateIdentifier" maxOccurs="unbounded">
|
|
199
|
+
<xs:annotation>
|
|
200
|
+
<xs:documentation>An identifier other than the primary identifier applied to the resource being registered. This may be any alphanumeric string which is unique within its domain of issue. The format is open</xs:documentation>
|
|
201
|
+
</xs:annotation>
|
|
202
|
+
<xs:complexType>
|
|
203
|
+
<xs:simpleContent>
|
|
204
|
+
<xs:extension base="xs:string">
|
|
205
|
+
<xs:attribute name="alternateIdentifierType" use="required"/>
|
|
206
|
+
</xs:extension>
|
|
207
|
+
</xs:simpleContent>
|
|
208
|
+
</xs:complexType>
|
|
209
|
+
</xs:element>
|
|
210
|
+
</xs:sequence>
|
|
211
|
+
</xs:complexType>
|
|
212
|
+
</xs:element>
|
|
213
|
+
<xs:element name="relatedIdentifiers" minOccurs="0">
|
|
214
|
+
<xs:complexType>
|
|
215
|
+
<xs:sequence>
|
|
216
|
+
<xs:element name="relatedIdentifier" maxOccurs="unbounded">
|
|
217
|
+
<xs:annotation>
|
|
218
|
+
<xs:documentation>Identifiers of related resources. Use this property to indicate subsets of properties, as appropriate.</xs:documentation>
|
|
219
|
+
</xs:annotation>
|
|
220
|
+
<xs:complexType>
|
|
221
|
+
<xs:simpleContent>
|
|
222
|
+
<xs:extension base="xs:string">
|
|
223
|
+
<xs:attribute name="relatedIdentifierType" type="relatedIdentifierType" use="required"/>
|
|
224
|
+
<xs:attribute name="relationType" type="relationType" use="required"/>
|
|
225
|
+
</xs:extension>
|
|
226
|
+
</xs:simpleContent>
|
|
227
|
+
</xs:complexType>
|
|
228
|
+
</xs:element>
|
|
229
|
+
</xs:sequence>
|
|
230
|
+
</xs:complexType>
|
|
231
|
+
</xs:element>
|
|
232
|
+
<xs:element name="sizes" minOccurs="0">
|
|
233
|
+
<xs:complexType>
|
|
234
|
+
<xs:sequence>
|
|
235
|
+
<xs:element name="size" maxOccurs="unbounded">
|
|
236
|
+
<xs:annotation>
|
|
237
|
+
<xs:documentation>Unstructures size information about the resource. </xs:documentation>
|
|
238
|
+
</xs:annotation>
|
|
239
|
+
</xs:element>
|
|
240
|
+
</xs:sequence>
|
|
241
|
+
</xs:complexType>
|
|
242
|
+
</xs:element>
|
|
243
|
+
<xs:element name="formats" minOccurs="0">
|
|
244
|
+
<xs:complexType>
|
|
245
|
+
<xs:sequence>
|
|
246
|
+
<xs:element name="format" maxOccurs="unbounded">
|
|
247
|
+
<xs:annotation>
|
|
248
|
+
<xs:documentation>Technical format of the resource.</xs:documentation>
|
|
249
|
+
<xs:documentation>Use file extension or MIME type where possible.</xs:documentation>
|
|
250
|
+
</xs:annotation>
|
|
251
|
+
</xs:element>
|
|
252
|
+
</xs:sequence>
|
|
253
|
+
</xs:complexType>
|
|
254
|
+
</xs:element>
|
|
255
|
+
<xs:element name="version" type="xs:string" minOccurs="0">
|
|
256
|
+
<xs:annotation>
|
|
257
|
+
<xs:documentation>Version number of the resource. If the primary resource has changed the version number increases.</xs:documentation>
|
|
258
|
+
<xs:documentation>Register a new DOI (or primary identifier) when the version of the resource changes to enable the citation of the exact version of a research dataset (or other resource). May be used in conjunction with properties 11 and 12 (AlternateIdentifier and RelatedIdentifier) to indicate various information updates.</xs:documentation>
|
|
259
|
+
</xs:annotation>
|
|
260
|
+
</xs:element>
|
|
261
|
+
<xs:element name="rights" minOccurs="0">
|
|
262
|
+
<xs:annotation>
|
|
263
|
+
<xs:documentation>Any rights information for this resource. Provide a rights management statement for the resource or reference a service providing such information. Include embargo information if applicable.
|
|
264
|
+
</xs:documentation>
|
|
265
|
+
</xs:annotation>
|
|
266
|
+
</xs:element>
|
|
267
|
+
<xs:element name="descriptions" minOccurs="0">
|
|
268
|
+
<xs:complexType>
|
|
269
|
+
<xs:sequence>
|
|
270
|
+
<xs:element name="description" maxOccurs="unbounded">
|
|
271
|
+
<xs:complexType mixed="true">
|
|
272
|
+
<xs:choice>
|
|
273
|
+
<xs:element name="br" minOccurs="0" maxOccurs="unbounded">
|
|
274
|
+
<xs:simpleType>
|
|
275
|
+
<xs:restriction base="xs:string">
|
|
276
|
+
<xs:length value="0"/>
|
|
277
|
+
</xs:restriction>
|
|
278
|
+
</xs:simpleType>
|
|
279
|
+
</xs:element>
|
|
280
|
+
</xs:choice>
|
|
281
|
+
<xs:attribute name="descriptionType" type="descriptionType" use="required"/>
|
|
282
|
+
</xs:complexType>
|
|
283
|
+
</xs:element>
|
|
284
|
+
</xs:sequence>
|
|
285
|
+
</xs:complexType>
|
|
286
|
+
</xs:element>
|
|
287
|
+
</xs:sequence>
|
|
288
|
+
<xs:attribute name="lastMetadataUpdate" type="xs:date" use="optional"/>
|
|
289
|
+
<xs:attribute name="metadataVersionNumber" type="xs:integer" use="optional"/>
|
|
290
|
+
<!--ADMINISTRATIVE FIELDS-->
|
|
291
|
+
</xs:complexType>
|
|
292
|
+
</xs:element>
|
|
293
|
+
<!-- TYPE DECLARATIONS -->
|
|
294
|
+
<!-- defines the value for a DOI: DOI must start with "10." -->
|
|
295
|
+
<xs:simpleType name="doiType">
|
|
296
|
+
<xs:restriction base="xs:token">
|
|
297
|
+
<xs:pattern value="[1][0][/.].*"/>
|
|
298
|
+
</xs:restriction>
|
|
299
|
+
</xs:simpleType>
|
|
300
|
+
<!-- defines value for mandatory fields -->
|
|
301
|
+
<xs:simpleType name="nonemptycontentStringType">
|
|
302
|
+
<xs:restriction base="xs:string">
|
|
303
|
+
<xs:minLength value="1"/>
|
|
304
|
+
</xs:restriction>
|
|
305
|
+
</xs:simpleType>
|
|
306
|
+
<xs:attributeGroup name="nameId">
|
|
307
|
+
<xs:attribute name="nameIdentifier" type="xs:string" use="optional"/>
|
|
308
|
+
<xs:attribute name="nameIdentifierScheme" type="xs:string" use="optional"/>
|
|
309
|
+
</xs:attributeGroup>
|
|
310
|
+
<!-- defines the value for a year -->
|
|
311
|
+
<xs:simpleType name="yearType">
|
|
312
|
+
<xs:restriction base="xs:token">
|
|
313
|
+
<xs:pattern value="[\d]{4}"/>
|
|
314
|
+
</xs:restriction>
|
|
315
|
+
</xs:simpleType>
|
|
316
|
+
</xs:schema>
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
|
|
6
|
+
<xs:simpleType name="contributorType" id="contributorType">
|
|
7
|
+
<xs:annotation>
|
|
8
|
+
<xs:documentation>The type of contributor of the resource.</xs:documentation>
|
|
9
|
+
</xs:annotation>
|
|
10
|
+
<xs:restriction base="xs:string">
|
|
11
|
+
<xs:enumeration value="ContactPerson"/>
|
|
12
|
+
<xs:enumeration value="DataCollector"/>
|
|
13
|
+
<xs:enumeration value="DataCurator"/>
|
|
14
|
+
<xs:enumeration value="DataManager"/>
|
|
15
|
+
<xs:enumeration value="Distributor"/>
|
|
16
|
+
<xs:enumeration value="Editor"/>
|
|
17
|
+
<xs:enumeration value="Funder"/>
|
|
18
|
+
<xs:enumeration value="HostingInstitution"/>
|
|
19
|
+
<xs:enumeration value="Other"/>
|
|
20
|
+
<xs:enumeration value="Producer"/>
|
|
21
|
+
<xs:enumeration value="ProjectLeader"/>
|
|
22
|
+
<xs:enumeration value="ProjectManager"/>
|
|
23
|
+
<xs:enumeration value="ProjectMember"/>
|
|
24
|
+
<xs:enumeration value="RegistrationAgency"/>
|
|
25
|
+
<xs:enumeration value="RegistrationAuthority"/>
|
|
26
|
+
<xs:enumeration value="RelatedPerson"/>
|
|
27
|
+
<xs:enumeration value="ResearchGroup"/>
|
|
28
|
+
<xs:enumeration value="RightsHolder"/>
|
|
29
|
+
<xs:enumeration value="Researcher"/>
|
|
30
|
+
<xs:enumeration value="Sponsor"/>
|
|
31
|
+
<xs:enumeration value="Supervisor"/>
|
|
32
|
+
<xs:enumeration value="WorkPackageLeader"/>
|
|
33
|
+
</xs:restriction>
|
|
34
|
+
</xs:simpleType>
|
|
35
|
+
</xs:schema>
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
|
|
5
|
+
<xs:simpleType name="dateType" id="dateType">
|
|
6
|
+
<xs:annotation>
|
|
7
|
+
<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>
|
|
8
|
+
</xs:annotation>
|
|
9
|
+
<xs:restriction base="xs:string">
|
|
10
|
+
<xs:enumeration value="Accepted"/>
|
|
11
|
+
<xs:enumeration value="Available"/>
|
|
12
|
+
<xs:enumeration value="Collected"/>
|
|
13
|
+
<xs:enumeration value="Copyrighted"/>
|
|
14
|
+
<xs:enumeration value="Created"/>
|
|
15
|
+
<xs:enumeration value="Issued"/>
|
|
16
|
+
<xs:enumeration value="Submitted"/>
|
|
17
|
+
<xs:enumeration value="Updated"/>
|
|
18
|
+
<xs:enumeration value="Valid"/>
|
|
19
|
+
</xs:restriction>
|
|
20
|
+
</xs:simpleType>
|
|
21
|
+
</xs:schema>
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
|
|
5
|
+
<xs:simpleType name="descriptionType" id="descriptionType">
|
|
6
|
+
<xs:annotation>
|
|
7
|
+
<xs:documentation>The type of the description.</xs:documentation>
|
|
8
|
+
</xs:annotation>
|
|
9
|
+
<xs:restriction base="xs:string">
|
|
10
|
+
<xs:enumeration value="Abstract"/>
|
|
11
|
+
<xs:enumeration value="Methods"/>
|
|
12
|
+
<xs:enumeration value="SeriesInformation"/>
|
|
13
|
+
<xs:enumeration value="TableOfContents"/>
|
|
14
|
+
<xs:enumeration value="Other"/>
|
|
15
|
+
</xs:restriction>
|
|
16
|
+
</xs:simpleType>
|
|
17
|
+
</xs:schema>
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
|
|
6
|
+
<xs:simpleType name="relatedIdentifierType" id="relatedIdentifierType">
|
|
7
|
+
<xs:annotation>
|
|
8
|
+
<xs:documentation>The type of the RelatedIdentifier.</xs:documentation>
|
|
9
|
+
</xs:annotation>
|
|
10
|
+
<xs:restriction base="xs:string">
|
|
11
|
+
<xs:enumeration value="ARK"/>
|
|
12
|
+
<xs:enumeration value="arXiv"/>
|
|
13
|
+
<xs:enumeration value="bibcode"/>
|
|
14
|
+
<xs:enumeration value="DOI"/>
|
|
15
|
+
<xs:enumeration value="EAN13"/>
|
|
16
|
+
<xs:enumeration value="EISSN"/>
|
|
17
|
+
<xs:enumeration value="Handle"/>
|
|
18
|
+
<xs:enumeration value="ISBN"/>
|
|
19
|
+
<xs:enumeration value="ISSN"/>
|
|
20
|
+
<xs:enumeration value="ISTC"/>
|
|
21
|
+
<xs:enumeration value="LISSN"/>
|
|
22
|
+
<xs:enumeration value="LSID"/>
|
|
23
|
+
<xs:enumeration value="PMID"/>
|
|
24
|
+
<xs:enumeration value="PURL"/>
|
|
25
|
+
<xs:enumeration value="UPC"/>
|
|
26
|
+
<xs:enumeration value="URL"/>
|
|
27
|
+
<xs:enumeration value="URN"/>
|
|
28
|
+
</xs:restriction>
|
|
29
|
+
</xs:simpleType>
|
|
30
|
+
</xs:schema>
|
|
@@ -0,0 +1,38 @@
|
|
|
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 values "IsIdenticalTo", "HasMetadata" & "IsMetadataFor"
|
|
4
|
+
2014-08-20 v3.1: Addition of values "Reviews" & "IsReviewedBy" and "IsDerivedFrom" & "IsSourceOf"-->
|
|
5
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
|
|
6
|
+
<xs:simpleType name="relationType" id="relationType">
|
|
7
|
+
<xs:annotation>
|
|
8
|
+
<xs:documentation>Description of the relationship of the resource being registered (A) and the related resource (B).</xs:documentation>
|
|
9
|
+
</xs:annotation>
|
|
10
|
+
<xs:restriction base="xs:string">
|
|
11
|
+
<xs:enumeration value="IsCitedBy"/>
|
|
12
|
+
<xs:enumeration value="Cites"/>
|
|
13
|
+
<xs:enumeration value="IsSupplementTo"/>
|
|
14
|
+
<xs:enumeration value="IsSupplementedBy"/>
|
|
15
|
+
<xs:enumeration value="IsContinuedBy"/>
|
|
16
|
+
<xs:enumeration value="Continues"/>
|
|
17
|
+
<xs:enumeration value="IsNewVersionOf"/>
|
|
18
|
+
<xs:enumeration value="IsPreviousVersionOf"/>
|
|
19
|
+
<xs:enumeration value="IsPartOf"/>
|
|
20
|
+
<xs:enumeration value="HasPart"/>
|
|
21
|
+
<xs:enumeration value="IsReferencedBy"/>
|
|
22
|
+
<xs:enumeration value="References"/>
|
|
23
|
+
<xs:enumeration value="IsDocumentedBy"/>
|
|
24
|
+
<xs:enumeration value="Documents"/>
|
|
25
|
+
<xs:enumeration value="IsCompiledBy"/>
|
|
26
|
+
<xs:enumeration value="Compiles"/>
|
|
27
|
+
<xs:enumeration value="IsVariantFormOf"/>
|
|
28
|
+
<xs:enumeration value="IsOriginalFormOf"/>
|
|
29
|
+
<xs:enumeration value="IsIdenticalTo"/>
|
|
30
|
+
<xs:enumeration value="HasMetadata"/>
|
|
31
|
+
<xs:enumeration value="IsMetadataFor"/>
|
|
32
|
+
<xs:enumeration value="Reviews"/>
|
|
33
|
+
<xs:enumeration value="IsReviewedBy"/>
|
|
34
|
+
<xs:enumeration value="IsDerivedFrom"/>
|
|
35
|
+
<xs:enumeration value="IsSourceOf"/>
|
|
36
|
+
</xs:restriction>
|
|
37
|
+
</xs:simpleType>
|
|
38
|
+
</xs:schema>
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
|
|
5
|
+
<xs:simpleType name="resourceType" id="resourceType">
|
|
6
|
+
<xs:annotation>
|
|
7
|
+
<xs:documentation>The general type of a resource.</xs:documentation>
|
|
8
|
+
</xs:annotation>
|
|
9
|
+
<xs:restriction base="xs:string">
|
|
10
|
+
<xs:enumeration value="Audiovisual"/>
|
|
11
|
+
<xs:enumeration value="Collection"/>
|
|
12
|
+
<xs:enumeration value="Dataset"/>
|
|
13
|
+
<xs:enumeration value="Event"/>
|
|
14
|
+
<xs:enumeration value="Image"/>
|
|
15
|
+
<xs:enumeration value="InteractiveResource"/>
|
|
16
|
+
<xs:enumeration value="Model"/>
|
|
17
|
+
<xs:enumeration value="PhysicalObject"/>
|
|
18
|
+
<xs:enumeration value="Service"/>
|
|
19
|
+
<xs:enumeration value="Software"/>
|
|
20
|
+
<xs:enumeration value="Sound"/>
|
|
21
|
+
<xs:enumeration value="Text"/>
|
|
22
|
+
<xs:enumeration value="Workflow"/>
|
|
23
|
+
<xs:enumeration value="Other"/>
|
|
24
|
+
</xs:restriction>
|
|
25
|
+
</xs:simpleType>
|
|
26
|
+
</xs:schema>
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
|
|
5
|
+
<xs:simpleType name="titleType" id="titleType">
|
|
6
|
+
<xs:restriction base="xs:string">
|
|
7
|
+
<xs:enumeration value="AlternativeTitle"/>
|
|
8
|
+
<xs:enumeration value="Subtitle"/>
|
|
9
|
+
<xs:enumeration value="TranslatedTitle"/>
|
|
10
|
+
</xs:restriction>
|
|
11
|
+
</xs:simpleType>
|
|
12
|
+
</xs:schema>
|