commonmeta-ruby 3.5.5 → 3.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 +16 -5
- data/lib/commonmeta/readers/crossref_xml_reader.rb +1 -1
- data/lib/commonmeta/utils.rb +6 -6
- data/lib/commonmeta/version.rb +1 -1
- data/spec/cli_spec.rb +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/default.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_bibtex.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_crossref_xml.yml +25 -25
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_datacite.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_schema_org.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/default.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_bibtex.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml.yml +7 -59
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_datacite.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_schema_org.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/default.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_bibtex.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_citation.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_crossref_xml.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_datacite.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_jats.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_schema_org.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/default.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_bibtex.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_datacite.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_jats.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_schema_org.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/default.yml +479 -946
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_crossref_xml.yml +957 -1891
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_datacite.yml +479 -946
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_schema_org.yml +481 -950
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_blog.yml +5540 -968
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_blog_unknown_blog_id.yml +22 -29
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_id.yml +25 -39
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_id_unknown_uuid.yml +18 -28
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/crossref.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/datacite.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/jalc.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/kisti.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/medra.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/op.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_blog_id.yml +19 -90
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_by_blog.yml +5578 -246
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_not_indexed.yml +13 -2201
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_unregistered.yml +176 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/change_metadata_as_datacite_xml/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/crossref.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/datacite.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/jalc.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/kisti.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/medra.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/not_found.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/op.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/crossref.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/datacite.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/datacite_doi_http.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/unknown_DOI_registration_agency.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_blog_id_for_json_feed_item_id/by_blog_post_id.yml +27 -105
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_blog_id_for_json_feed_item_id/not_found.yml +20 -27
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_cff_metadata/cff-converter-python.yml +51 -25
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_cff_metadata/ruby-cff.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_cff_metadata/ruby-cff_repository_url.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_codemeta_metadata/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_codemeta_metadata/metadata_reports.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/DOI_with_ORCID_ID.yml +78 -78
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/DOI_with_SICI_DOI.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/DOI_with_data_citation.yml +35 -35
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/JaLC.yml +162 -162
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/KISTI.yml +131 -131
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/OP.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/affiliation_is_space.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/another_book.yml +113 -113
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/another_book_chapter.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/article_id_as_page_number.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/author_literal.yml +84 -84
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book_chapter.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book_chapter_with_RDF_for_container.yml +73 -73
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book_oup.yml +72 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/component.yml +94 -94
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/dataset.yml +104 -104
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/dataset_usda.yml +136 -136
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/date_in_future.yml +80 -80
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/dissertation.yml +103 -103
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/empty_given_name.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/invalid_date.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_original_language_title.yml +73 -73
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_with.yml +128 -210
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_with_RDF_for_container.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_with_funding.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_issue.yml +72 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/mEDRA.yml +72 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/markup.yml +81 -81
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/missing_contributor.yml +71 -71
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_issn.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_titles.yml +71 -71
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_titles_with_missing.yml +573 -573
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/not_found_error.yml +65 -65
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/peer_review.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/posted_content.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/posted_content_copernicus.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/report_osti.yml +120 -120
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/vor_with_url.yml +78 -78
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/yet_another_book.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/yet_another_book_chapter.yml +73 -73
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_raw/journal_article.yml +59 -59
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/SoftwareSourceCode.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/dissertation.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/funding_references.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/subject_scheme.yml +120 -120
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_id.yml +5540 -555
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_id.yml +31 -42
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_id_specific_prefix.yml +25 -39
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/by_blog_id.yml +5540 -247
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/not_indexed_posts.yml +14 -26
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/unregistered_posts.yml +176 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/archived_wordpress_post.yml +27 -95
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/blog_post_with_non-url_id.yml +28 -106
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/blogger_post.yml +21 -65
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_author_name_suffix.yml +20 -208
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_doi.yml +26 -97
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_institutional_author.yml +24 -55
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_organizational_author.yml +27 -70
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers.yml +41 -143
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers_and_funding.yml +54 -132
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers_and_link_to_peer-reviewed_article.yml +304 -818
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_without_doi.yml +24 -169
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/jekyll_post.yml +24 -63
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/jekyll_post_with_anonymous_author.yml +25 -40
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/substack_post_with_broken_reference.yml +278 -591
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/syldavia_gazette_post_with_references.yml +59 -101
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/upstream_post_with_references.yml +135 -331
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post.yml +24 -134
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post_with_many_references.yml +578 -2967
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post_with_references.yml +44 -205
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post_with_tracking_code_on_url.yml +26 -160
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/affiliation_is_space.yml +21 -21
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/has_familyName.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/has_name_in_display-order_with_ORCID.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/name_with_affiliation_crossref.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/only_familyName_and_givenName.yml +66 -61
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/BlogPosting.yml +145 -146
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/BlogPosting_with_new_DOI.yml +149 -150
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/get_schema_org_metadata_front_matter/BlogPosting.yml +114 -115
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/harvard_dataverse.yml +300 -289
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/pangaea.yml +66 -61
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/upstream_blog.yml +64 -57
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/zenodo.yml +27 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/handle_input/DOI_RA_not_Crossref_or_DataCite.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/handle_input/unknown_DOI_prefix.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/json_schema_errors/is_valid.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/authors_with_affiliations.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/climate_data.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/from_schema_org.yml +145 -146
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/keywords_subject_scheme.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/maremma.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/text.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/with_pages.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/Collection_of_Jupyter_notebooks.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/SoftwareSourceCode_Zenodo.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/SoftwareSourceCode_also_Zenodo.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/ruby-cff.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Journal_article_vancouver_style.yml +21 -21
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Missing_author.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/interactive_resource_without_dates.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/software_w/version.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite_check_codemeta_v2.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_commonmeta/with_data_citation.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/another_schema_org_from_front-matter.yml +32 -32
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article_from_datacite.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article_plos.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_anonymous_author.yml +25 -40
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_doi.yml +24 -134
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_organizational_author.yml +27 -70
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_relations.yml +41 -143
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_relations_and_funding.yml +55 -133
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_upstream_blog.yml +21 -224
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_with_references.yml +134 -330
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/posted_content.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/schema_org_from_another_science_blog.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/schema_org_from_front_matter.yml +92 -91
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/schema_org_from_upstream_blog.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/Another_dataset.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/BlogPosting_schema_org.yml +146 -147
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/container_title.yml +16 -21
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/interactive_resource_without_dates.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/keywords_subject_scheme.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/missing_creator.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/multiple_abstracts.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/organization_author.yml +22 -22
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/software.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/software_w/version.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/with_only_first_page.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/with_pages.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/climate_data.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/text.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/with_pages.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/dissertation.yml +20 -20
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/from_schema_org.yml +146 -147
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/journal_article.yml +22 -22
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/with_ORCID_ID.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/Dataset_in_schema_4_0.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/Text_pass-thru.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/book_chapter.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/from_schema_org.yml +146 -147
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/interactive_resource_without_dates.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/with_ORCID_ID.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/with_editor.yml +17 -17
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/BlogPosting_schema_org.yml +145 -146
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/alternate_name.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/journal_article.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/keywords_with_subject_scheme.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/with_pages.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Another_Schema_org_JSON.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Funding.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Funding_OpenAIRE.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Schema_org_JSON.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Schema_org_JSON_Cyark.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/alternate_identifiers.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/data_catalog.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/geo_location_box.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/interactive_resource_without_dates.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/maremma_schema_org_JSON.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/series_information.yml +17 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/subject_scheme.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/subject_scheme_multiple_keywords.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/with_pages.yml +16 -16
- data/spec/readers/cff_reader_spec.rb +2 -20
- data/spec/readers/crossref_reader_spec.rb +10 -16
- data/spec/readers/crossref_xml_reader_spec.rb +61 -64
- data/spec/readers/json_feed_reader_spec.rb +56 -56
- data/spec/readers/schema_org_reader_spec.rb +1 -1
- data/spec/utils_spec.rb +1 -1
- data/spec/writers/crossref_xml_writer_spec.rb +9 -8
- data/spec/writers/csv_writer_spec.rb +1 -1
- data/spec/writers/ris_writer_spec.rb +2 -2
- metadata +2 -11
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml_refresh.yml +0 -107
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/doi_prefix/doi_prefix_by_blog.yml +0 -997
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/doi_prefix/doi_prefix_by_uuid.yml +0 -256
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_uuid.yml +0 -256
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_uuid_unknown_uuid.yml +0 -49
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/missing_creator.yml +0 -307
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_uuid.yml +0 -136
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_uuid_specific_prefix.yml +0 -256
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/book_oup.yml +0 -107
data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/journal_article.yml
CHANGED
@@ -4,7 +4,7 @@ http_interactions:
|
|
4
4
|
method: get
|
5
5
|
uri: https://api.crossref.org/works/10.7554/elife.01567
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: ASCII-8BIT
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Connection:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 05 Oct 2023 19:47:06 GMT
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Transfer-Encoding:
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
- close
|
50
50
|
body:
|
51
51
|
encoding: UTF-8
|
52
|
-
string: '{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2023,
|
52
|
+
string: '{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2023,10,3]],"date-time":"2023-10-03T17:19:30Z","timestamp":1696353570692},"reference-count":27,"publisher":"eLife
|
53
53
|
Sciences Publications, Ltd","license":[{"start":{"date-parts":[[2014,2,11]],"date-time":"2014-02-11T00:00:00Z","timestamp":1392076800000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"},{"start":{"date-parts":[[2014,2,11]],"date-time":"2014-02-11T00:00:00Z","timestamp":1392076800000},"content-version":"am","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"},{"start":{"date-parts":[[2014,2,11]],"date-time":"2014-02-11T00:00:00Z","timestamp":1392076800000},"content-version":"tdm","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"},{"start":{"date-parts":[[2014,2,11]],"date-time":"2014-02-11T00:00:00Z","timestamp":1392076800000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"},{"start":{"date-parts":[[2014,2,11]],"date-time":"2014-02-11T00:00:00Z","timestamp":1392076800000},"content-version":"am","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"},{"start":{"date-parts":[[2014,2,11]],"date-time":"2014-02-11T00:00:00Z","timestamp":1392076800000},"content-version":"tdm","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"}],"funder":[{"name":"SystemsX"},{"name":"EMBO
|
54
54
|
longterm post-doctoral fellowships"},{"name":"Marie Heim-Voegtlin"},{"DOI":"10.13039\/501100006390","name":"University
|
55
55
|
of Lausanne","doi-asserted-by":"crossref"},{"name":"SystemsX"},{"DOI":"10.13039\/501100003043","name":"EMBO","doi-asserted-by":"publisher"},{"DOI":"10.13039\/501100001711","name":"Swiss
|
@@ -136,12 +136,12 @@ http_interactions:
|
|
136
136
|
History"}},{"value":"2013-12-24","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication
|
137
137
|
History"}},{"value":"2014-02-11","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication
|
138
138
|
History"}}]}}'
|
139
|
-
recorded_at:
|
139
|
+
recorded_at: Thu, 05 Oct 2023 19:47:06 GMT
|
140
140
|
- request:
|
141
141
|
method: get
|
142
142
|
uri: https://api.crossref.org/members/4374
|
143
143
|
body:
|
144
|
-
encoding:
|
144
|
+
encoding: ASCII-8BIT
|
145
145
|
string: ''
|
146
146
|
headers:
|
147
147
|
Connection:
|
@@ -156,7 +156,7 @@ http_interactions:
|
|
156
156
|
message: OK
|
157
157
|
headers:
|
158
158
|
Date:
|
159
|
-
-
|
159
|
+
- Thu, 05 Oct 2023 19:47:06 GMT
|
160
160
|
Content-Type:
|
161
161
|
- application/json
|
162
162
|
Transfer-Encoding:
|
@@ -186,17 +186,17 @@ http_interactions:
|
|
186
186
|
- close
|
187
187
|
body:
|
188
188
|
encoding: UTF-8
|
189
|
-
string: '{"status":"ok","message-type":"member","message-version":"1.0.0","message":{"last-status-check-time":
|
190
|
-
Sciences Publications, Ltd","counts":{"current-dois":
|
191
|
-
Sciences Publications, Ltd.","value":"10.7554"}],"id":4374,"tokens":["elife","sciences","publications","ltd"],"counts-type":{"all":{"peer-review":
|
189
|
+
string: '{"status":"ok","message-type":"member","message-version":"1.0.0","message":{"last-status-check-time":1696466957315,"primary-name":"eLife
|
190
|
+
Sciences Publications, Ltd","counts":{"current-dois":22741,"backfile-dois":28286,"total-dois":51027},"breakdowns":{"dois-by-issued-year":[[2023,8158],[2022,7328],[2021,7255],[2020,6186],[2019,4848],[2017,4118],[2018,4058],[2016,3512],[2015,2808],[2014,1786],[2013,811],[2012,159]]},"prefixes":["10.7554"],"coverage":{"affiliations-current":0.8376940328041863,"similarity-checking-current":0.0,"descriptions-current":0.0,"ror-ids-current":0.4925465019128446,"funders-backfile":0.3052039878385067,"licenses-backfile":0.9999646468217493,"funders-current":0.2229013675739853,"affiliations-backfile":0.9898182846637913,"resource-links-backfile":0.3481227462348865,"orcids-backfile":0.8474863890263735,"update-policies-current":0.2433050437535728,"ror-ids-backfile":0.002333309764547833,"orcids-current":0.7908623191592278,"similarity-checking-backfile":0.0,"references-backfile":0.3392137453157039,"descriptions-backfile":0.0,"award-numbers-backfile":0.2866082160786255,"update-policies-backfile":0.0714487732447147,"licenses-current":1.0,"award-numbers-current":0.2156457499670199,"abstracts-backfile":0.34048645973273,"resource-links-current":0.2433050437535728,"abstracts-current":0.3094850710171057,"references-current":0.2367969746273251},"prefix":[{"name":"eLife
|
191
|
+
Sciences Publications, Ltd.","value":"10.7554"}],"id":4374,"tokens":["elife","sciences","publications","ltd"],"counts-type":{"all":{"peer-review":34061,"journal-article":15382,"journal":1,"component":143802,"posted-content":1584},"backfile":{"peer-review":18437,"journal-article":9849},"current":{"peer-review":15624,"journal-article":5533,"posted-content":1584}},"coverage-type":{"all":{"peer-review":{"last-status-check-time":1696466957315,"affiliations":0.8925750858753413,"abstracts":0.0,"orcids":0.7939285399724025,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.2386306919937759,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1696466957315,"affiliations":0.9795215186581719,"abstracts":0.9806917175919906,"orcids":0.882655051358731,"licenses":0.9999349889481212,"references":0.9738655571447146,"funders":0.8907814328435834,"similarity-checking":0.0,"award-numbers":0.8458587959953192,"ror-ids":0.2040696918476141,"update-policies":0.4910934858926017,"resource-links":0.9998699778962424,"descriptions":0.0},"journal":{"last-status-check-time":1696466957315,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"component":{"last-status-check-time":1696466957315,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":4.867804342081473E-4,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1696466957315,"affiliations":0.9968434343434343,"abstracts":1.0,"orcids":0.8446969696969697,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}},"backfile":{"peer-review":{"last-status-check-time":1696466957315,"affiliations":0.9971253457720887,"abstracts":0.0,"orcids":0.8638064761078267,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.003579758095134783,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1696466957315,"affiliations":0.9761397096151894,"abstracts":0.9778657731749416,"orcids":0.8169357295156869,"licenses":0.9998984668494263,"references":0.9742105797542898,"funders":0.8765356889024266,"similarity-checking":0.0,"award-numbers":0.8231292517006803,"ror-ids":0.0,"update-policies":0.2051984973093715,"resource-links":0.9997969336988527,"descriptions":0.0}},"current":{"peer-review":{"last-status-check-time":1696466957315,"affiliations":0.7692012288786482,"abstracts":0.0,"orcids":0.7114695340501792,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.5160010240655402,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1696466957315,"affiliations":0.9855412976685342,"abstracts":0.9857220314476776,"orcids":0.9996385324417134,"licenses":1.0,"references":0.9732514006867884,"funders":0.9161395264774986,"similarity-checking":0.0,"award-numbers":0.8863184529188505,"ror-ids":0.5673233327308874,"update-policies":1.0,"resource-links":1.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1696466957315,"affiliations":0.9968434343434343,"abstracts":1.0,"orcids":0.8446969696969697,"licenses":1.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}}},"flags":{"deposits-abstracts-current":true,"deposits-orcids-current":true,"deposits":true,"deposits-affiliations-backfile":true,"deposits-update-policies-backfile":true,"deposits-similarity-checking-backfile":false,"deposits-award-numbers-current":true,"deposits-resource-links-current":true,"deposits-ror-ids-current":true,"deposits-articles":true,"deposits-affiliations-current":true,"deposits-funders-current":true,"deposits-references-backfile":true,"deposits-ror-ids-backfile":true,"deposits-abstracts-backfile":true,"deposits-licenses-backfile":true,"deposits-award-numbers-backfile":true,"deposits-descriptions-current":false,"deposits-references-current":true,"deposits-resource-links-backfile":true,"deposits-descriptions-backfile":false,"deposits-orcids-backfile":true,"deposits-funders-backfile":true,"deposits-update-policies-current":true,"deposits-similarity-checking-current":false,"deposits-licenses-current":true},"location":"Cambridge,
|
192
192
|
United Kingdom","names":["eLife Sciences Publications, Ltd","eLife Sciences
|
193
193
|
Publications, Ltd."]}}'
|
194
|
-
recorded_at:
|
194
|
+
recorded_at: Thu, 05 Oct 2023 19:47:06 GMT
|
195
195
|
- request:
|
196
196
|
method: get
|
197
197
|
uri: https://doi.org/ra/10.7554
|
198
198
|
body:
|
199
|
-
encoding:
|
199
|
+
encoding: ASCII-8BIT
|
200
200
|
string: ''
|
201
201
|
headers:
|
202
202
|
Connection:
|
@@ -211,7 +211,7 @@ http_interactions:
|
|
211
211
|
message: OK
|
212
212
|
headers:
|
213
213
|
Date:
|
214
|
-
-
|
214
|
+
- Thu, 05 Oct 2023 19:47:07 GMT
|
215
215
|
Content-Type:
|
216
216
|
- application/json;charset=UTF-8
|
217
217
|
Transfer-Encoding:
|
@@ -223,7 +223,7 @@ http_interactions:
|
|
223
223
|
Cf-Cache-Status:
|
224
224
|
- DYNAMIC
|
225
225
|
Report-To:
|
226
|
-
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=
|
226
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=2LXuIkd5qWlf1d%2BkcBcYDIm5TIwFy347%2B8O9eG5h%2FSvkdY1fvXD1553Zd46lGnpnk3ZQ4nTjC9cURO3fhYJeqiaWdv92oz0HafjgKi%2BG%2FXsfXkPnsWLG5Qn8mzKLhvZwnA9nJEs%3D"}],"group":"cf-nel","max_age":604800}'
|
227
227
|
Nel:
|
228
228
|
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
229
229
|
Strict-Transport-Security:
|
@@ -231,7 +231,7 @@ http_interactions:
|
|
231
231
|
Server:
|
232
232
|
- cloudflare
|
233
233
|
Cf-Ray:
|
234
|
-
-
|
234
|
+
- 81182cb0cd470b4e-AMS
|
235
235
|
Alt-Svc:
|
236
236
|
- h3=":443"; ma=86400
|
237
237
|
body:
|
@@ -243,5 +243,5 @@ http_interactions:
|
|
243
243
|
"RA": "Crossref"
|
244
244
|
}
|
245
245
|
]
|
246
|
-
recorded_at:
|
247
|
-
recorded_with: VCR 6.
|
246
|
+
recorded_at: Thu, 05 Oct 2023 19:47:07 GMT
|
247
|
+
recorded_with: VCR 6.2.0
|
data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/with_pages.yml
CHANGED
@@ -4,7 +4,7 @@ http_interactions:
|
|
4
4
|
method: get
|
5
5
|
uri: https://api.crossref.org/works/10.1155/2012/291294
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: ASCII-8BIT
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Connection:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Thu, 05 Oct 2023 19:47:08 GMT
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Transfer-Encoding:
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
- close
|
50
50
|
body:
|
51
51
|
encoding: UTF-8
|
52
|
-
string: '{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2023,1
|
52
|
+
string: '{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2023,10,1]],"date-time":"2023-10-01T11:28:55Z","timestamp":1696159735461},"reference-count":27,"publisher":"Hindawi
|
53
53
|
Limited","license":[{"start":{"date-parts":[[2012,1,1]],"date-time":"2012-01-01T00:00:00Z","timestamp":1325376000000},"content-version":"unspecified","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Pulmonary
|
54
54
|
Medicine"],"published-print":{"date-parts":[[2012]]},"abstract":"<jats:p><jats:italic>Objective<\/jats:italic>.
|
55
55
|
To find a statistically significant separation point for the QuantiFERON Gold
|
@@ -108,12 +108,12 @@ http_interactions:
|
|
108
108
|
and Mortality Weekly Report"},{"key":"14","year":"2011"},{"key":"15","year":"2011"},{"key":"16","year":"2011"},{"key":"17","year":"2011"},{"key":"18","year":"2012"},{"key":"20","year":"1992"},{"key":"22","doi-asserted-by":"publisher","DOI":"10.3205\/dgkh000148"},{"key":"23","doi-asserted-by":"publisher","DOI":"10.1378\/chest.11-0992"},{"key":"24","doi-asserted-by":"publisher","DOI":"10.1186\/1471-2334-10-220"},{"key":"25","doi-asserted-by":"publisher","DOI":"10.1186\/1745-6673-7-6"},{"key":"27","doi-asserted-by":"publisher","DOI":"10.1128\/CVI.00398-07"},{"key":"28","doi-asserted-by":"publisher","DOI":"10.1164\/rccm.201006-0974OC"},{"key":"29","doi-asserted-by":"publisher","DOI":"10.1136\/thx.2010.143180"},{"key":"30","doi-asserted-by":"publisher","DOI":"10.1378\/chest.12-0045"}],"container-title":["Pulmonary
|
109
109
|
Medicine"],"original-title":[],"language":"en","link":[{"URL":"http:\/\/downloads.hindawi.com\/journals\/pm\/2012\/291294.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"http:\/\/downloads.hindawi.com\/journals\/pm\/2012\/291294.xml","content-type":"application\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"http:\/\/downloads.hindawi.com\/journals\/pm\/2012\/291294.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2016,8,2]],"date-time":"2016-08-02T18:42:41Z","timestamp":1470163361000},"score":1,"resource":{"primary":{"URL":"http:\/\/www.hindawi.com\/journals\/pm\/2012\/291294\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2012]]},"references-count":27,"alternative-id":["291294","291294"],"URL":"http:\/\/dx.doi.org\/10.1155\/2012\/291294","relation":{},"ISSN":["2090-1836","2090-1844"],"issn-type":[{"value":"2090-1836","type":"print"},{"value":"2090-1844","type":"electronic"}],"subject":["Pulmonary
|
110
110
|
and Respiratory Medicine","General Medicine"],"published":{"date-parts":[[2012]]}}}'
|
111
|
-
recorded_at:
|
111
|
+
recorded_at: Thu, 05 Oct 2023 19:47:08 GMT
|
112
112
|
- request:
|
113
113
|
method: get
|
114
114
|
uri: https://api.crossref.org/members/98
|
115
115
|
body:
|
116
|
-
encoding:
|
116
|
+
encoding: ASCII-8BIT
|
117
117
|
string: ''
|
118
118
|
headers:
|
119
119
|
Connection:
|
@@ -128,7 +128,7 @@ http_interactions:
|
|
128
128
|
message: OK
|
129
129
|
headers:
|
130
130
|
Date:
|
131
|
-
-
|
131
|
+
- Thu, 05 Oct 2023 19:47:08 GMT
|
132
132
|
Content-Type:
|
133
133
|
- application/json
|
134
134
|
Transfer-Encoding:
|
@@ -158,26 +158,26 @@ http_interactions:
|
|
158
158
|
- close
|
159
159
|
body:
|
160
160
|
encoding: UTF-8
|
161
|
-
string: '{"status":"ok","message-type":"member","message-version":"1.0.0","message":{"last-status-check-time":
|
162
|
-
Limited","counts":{"current-dois":
|
161
|
+
string: '{"status":"ok","message-type":"member","message-version":"1.0.0","message":{"last-status-check-time":1696462065724,"primary-name":"Hindawi
|
162
|
+
Limited","counts":{"current-dois":117708,"backfile-dois":398108,"total-dois":515816},"breakdowns":{"dois-by-issued-year":[[2022,54629],[2021,47850],[2020,43079],[2014,33557],[2013,30785],[2019,28163],[2018,27892],[2012,27711],[2015,26751],[2016,23959],[2017,22581],[2011,17395],[2009,15869],[2023,15229],[2010,11371],[2008,6828],[2007,6239],[2006,5523],[2005,4750],[2004,4733],[2002,4642],[2001,4472],[2003,4248],[2000,4066],[1998,3520],[1999,3467],[1997,2937],[1996,2881],[1995,2468],[1994,2370],[1992,2136],[1993,2102],[1991,1815],[1989,1418],[1990,1344],[1988,1297],[1987,1064],[1986,984],[1983,818],[1984,749],[1985,714],[1981,705],[1980,692],[1978,607],[1982,594],[1979,563],[1977,481],[1976,404],[1970,355],[1975,353],[1972,345],[1967,339],[1971,297],[1974,284],[1968,279],[1969,261],[1964,258],[1966,255],[1965,239],[1963,230],[1973,209],[1962,202],[1891,110],[1893,94],[1961,93],[1897,76],[1892,71],[1895,66],[1929,64],[1888,64],[1898,63],[1896,61],[1960,60],[1899,60],[1882,60],[1912,59],[1902,59],[1901,59],[1880,58],[1928,56],[1900,56],[1910,55],[1904,55],[1894,54],[1915,53],[1889,52],[1884,50],[1890,49],[1924,48],[1914,48],[1911,48],[1930,47],[1916,46],[1883,43],[1923,42],[1913,42],[1881,42],[1925,41],[1917,41],[1907,41],[1906,41],[1903,41],[1909,40],[1927,39],[1926,39],[1921,38],[1908,38],[1932,37],[1875,37],[1920,36],[1934,34],[1919,34],[1876,34],[1922,33],[1905,32],[1955,31],[1918,30],[1953,29],[1950,28],[1885,28],[1947,27],[1956,26],[1941,26],[1931,26],[1952,25],[1951,25],[1948,25],[1933,25],[1879,24],[1874,24],[1957,23],[1949,23],[1935,22],[1943,21],[1939,21],[1936,21],[1946,19],[1944,19],[1877,19],[1938,17],[1954,16],[1940,16],[1937,16],[1878,15],[1945,14],[1942,14],[1959,12],[1958,12]]},"prefixes":["10.7167","10.1100","10.1155","10.5402","10.7217","10.4061","10.6064","10.3814"],"coverage":{"affiliations-current":0.8952407652835831,"similarity-checking-current":0.9546929690420362,"descriptions-current":0.0,"ror-ids-current":0.0,"funders-backfile":0.3749660896038261,"licenses-backfile":0.9748560692073508,"funders-current":0.4934244061576104,"affiliations-backfile":0.7558376119043074,"resource-links-backfile":0.9561450661629508,"orcids-backfile":0.4076531996342701,"update-policies-current":0.1740408468413362,"ror-ids-backfile":0.0,"orcids-current":0.8800676249702654,"similarity-checking-backfile":0.9572678770584866,"references-backfile":0.8178233042290032,"descriptions-backfile":0.0,"award-numbers-backfile":0.2896651159986737,"update-policies-backfile":0.06160137450139158,"licenses-current":0.9547099602405954,"award-numbers-current":0.4233017297040133,"abstracts-backfile":0.6126955499512695,"resource-links-current":0.9546929690420362,"abstracts-current":0.7648503075406939,"references-current":0.9461209093689469},"prefix":[{"name":"Hindawi
|
163
163
|
(Datasets International)","value":"10.7167"},{"name":"Hindawi (The Scientific
|
164
164
|
World)","value":"10.1100"},{"name":"Hindawi Limited","value":"10.1155"},{"name":"Hindawi
|
165
165
|
(International Scholarly Research Network)","value":"10.5402"},{"name":"Hindawi
|
166
166
|
(Conference Papers in Science)","value":"10.7217"},{"name":"Hindawi Publishing
|
167
167
|
Corporation (Sage-Hindawi Access to Research)","value":"10.4061"},{"name":"Hindawi
|
168
168
|
(Scientifica)","value":"10.6064"},{"name":"Hindawi Publishing Corporation
|
169
|
-
(Syrexe)","value":"10.3814"}],"id":98,"tokens":["hindawi","limited"],"counts-type":{"all":{"monograph":6,"peer-review":10621,"journal-article":
|
169
|
+
(Syrexe)","value":"10.3814"}],"id":98,"tokens":["hindawi","limited"],"counts-type":{"all":{"monograph":6,"peer-review":10621,"journal-article":497452,"book":12,"proceedings-article":561,"journal":1117,"component":303,"journal-issue":7164},"backfile":{"monograph":6,"peer-review":5885,"journal-article":385075,"book":12,"proceedings-article":561,"journal-issue":6569},"current":{"peer-review":4736,"journal-article":112377,"journal-issue":595}},"coverage-type":{"all":{"monograph":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"peer-review":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1696462065724,"affiliations":0.8167260358788386,"abstracts":0.6713170315929979,"orcids":0.5344857393276135,"licenses":0.9966670151089954,"references":0.8783721846529916,"funders":0.4168382075054478,"similarity-checking":0.9901156292466409,"award-numbers":0.3319797689023263,"ror-ids":0.0,"update-policies":0.0904810916430128,"resource-links":0.9816886855415196,"descriptions":0.0},"book":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"proceedings-article":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.01074306177260519,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"component":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.8052805280528053},"journal-issue":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.6534059184812954,"references":0.0,"funders":0.0,"similarity-checking":0.1306532663316583,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.6534059184812954,"descriptions":0.0}},"backfile":{"monograph":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"peer-review":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1696462065724,"affiliations":0.7814192040511589,"abstracts":0.633432448224372,"orcids":0.4214503668116601,"licenses":0.9956943452574174,"references":0.8455028241251704,"funders":0.3876569499448159,"similarity-checking":0.9872362526780497,"award-numbers":0.2994689346231254,"ror-ids":0.0,"update-policies":0.06368629487762124,"resource-links":0.9763500616762968,"descriptions":0.0},"book":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"proceedings-article":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-issue":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.7125894352260618,"references":0.0,"funders":0.0,"similarity-checking":0.1424874410108083,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.7125894352260618,"descriptions":0.0}},"current":{"peer-review":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1696462065724,"affiliations":0.9377096736876763,"abstracts":0.8011336839388843,"orcids":0.9218167418599891,"licenses":1.0,"references":0.9910034971568915,"funders":0.5168317360313943,"similarity-checking":0.9999822027639108,"award-numbers":0.4433825426911201,"ror-ids":0.0,"update-policies":0.1822970892620376,"resource-links":0.9999822027639108,"descriptions":0.0},"journal-issue":{"last-status-check-time":1696462065724,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}}},"flags":{"deposits-abstracts-current":true,"deposits-orcids-current":true,"deposits":true,"deposits-affiliations-backfile":true,"deposits-update-policies-backfile":true,"deposits-similarity-checking-backfile":true,"deposits-award-numbers-current":true,"deposits-resource-links-current":true,"deposits-ror-ids-current":false,"deposits-articles":true,"deposits-affiliations-current":true,"deposits-funders-current":true,"deposits-references-backfile":true,"deposits-ror-ids-backfile":false,"deposits-abstracts-backfile":true,"deposits-licenses-backfile":true,"deposits-award-numbers-backfile":true,"deposits-descriptions-current":false,"deposits-references-current":true,"deposits-resource-links-backfile":true,"deposits-descriptions-backfile":false,"deposits-orcids-backfile":true,"deposits-funders-backfile":true,"deposits-update-policies-current":true,"deposits-similarity-checking-current":true,"deposits-licenses-current":true},"location":"London,
|
170
170
|
United Kingdom","names":["Hindawi Limited","Hindawi (Datasets International)","Hindawi
|
171
171
|
(The Scientific World)","Hindawi (International Scholarly Research Network)","Hindawi
|
172
172
|
(Conference Papers in Science)","Hindawi Publishing Corporation (Sage-Hindawi
|
173
173
|
Access to Research)","Hindawi (Scientifica)","Hindawi Publishing Corporation
|
174
174
|
(Syrexe)"]}}'
|
175
|
-
recorded_at:
|
175
|
+
recorded_at: Thu, 05 Oct 2023 19:47:08 GMT
|
176
176
|
- request:
|
177
177
|
method: get
|
178
178
|
uri: https://doi.org/ra/10.1155
|
179
179
|
body:
|
180
|
-
encoding:
|
180
|
+
encoding: ASCII-8BIT
|
181
181
|
string: ''
|
182
182
|
headers:
|
183
183
|
Connection:
|
@@ -192,7 +192,7 @@ http_interactions:
|
|
192
192
|
message: OK
|
193
193
|
headers:
|
194
194
|
Date:
|
195
|
-
-
|
195
|
+
- Thu, 05 Oct 2023 19:47:09 GMT
|
196
196
|
Content-Type:
|
197
197
|
- application/json;charset=UTF-8
|
198
198
|
Transfer-Encoding:
|
@@ -204,7 +204,7 @@ http_interactions:
|
|
204
204
|
Cf-Cache-Status:
|
205
205
|
- DYNAMIC
|
206
206
|
Report-To:
|
207
|
-
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=
|
207
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=5DaM5MHY4vKEiVDBHej0gpW8BL3GmdUhtuZE8ycquSlaiAuupj9lkkbt9JQZ9w4jXZr9zrrwxOQn8yIPArMGrztgRgFj5HkPE29JOaJQxJooBzHiCIH9sDfe6Yo3csaEC6zEvhI%3D"}],"group":"cf-nel","max_age":604800}'
|
208
208
|
Nel:
|
209
209
|
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
210
210
|
Strict-Transport-Security:
|
@@ -212,7 +212,7 @@ http_interactions:
|
|
212
212
|
Server:
|
213
213
|
- cloudflare
|
214
214
|
Cf-Ray:
|
215
|
-
-
|
215
|
+
- 81182cbd5ffa0b46-AMS
|
216
216
|
Alt-Svc:
|
217
217
|
- h3=":443"; ma=86400
|
218
218
|
body:
|
@@ -224,5 +224,5 @@ http_interactions:
|
|
224
224
|
"RA": "Crossref"
|
225
225
|
}
|
226
226
|
]
|
227
|
-
recorded_at:
|
228
|
-
recorded_with: VCR 6.
|
227
|
+
recorded_at: Thu, 05 Oct 2023 19:47:09 GMT
|
228
|
+
recorded_with: VCR 6.2.0
|
@@ -42,30 +42,12 @@ describe Commonmeta::Metadata, vcr: true do
|
|
42
42
|
input = "https://github.com/citation-file-format/cff-converter-python/blob/main/CITATION.cff"
|
43
43
|
subject = described_class.new(input: input)
|
44
44
|
expect(subject.id).to eq("https://doi.org/10.5281/zenodo.1162057")
|
45
|
-
expect(subject.url).to eq("https://github.com/citation-file-format/
|
45
|
+
expect(subject.url).to eq("https://github.com/citation-file-format/cffconvert")
|
46
46
|
expect(subject.type).to eq("Software")
|
47
47
|
expect(subject.contributors).to eq([{ "affiliation" => [{ "name" => "Netherlands eScience Center" }],
|
48
48
|
"familyName" => "Spaaks",
|
49
49
|
"givenName" => "Jurriaan H.",
|
50
50
|
"id" => "https://orcid.org/0000-0002-7064-4069",
|
51
|
-
"type" => "Person", "contributorRoles" => ["Author"] },
|
52
|
-
{ "affiliation" => [{ "name" => "Netherlands eScience Center" }],
|
53
|
-
"familyName" => "Klaver",
|
54
|
-
"givenName" => "Tom",
|
55
|
-
"type" => "Person", "contributorRoles" => ["Author"] },
|
56
|
-
{ "affiliation" => [{ "name" => "Netherlands eScience Center" }],
|
57
|
-
"familyName" => "Verhoeven",
|
58
|
-
"id" => "https://orcid.org/0000-0002-5821-2060",
|
59
|
-
"givenName" => "Stefan",
|
60
|
-
"type" => "Person", "contributorRoles" => ["Author"] },
|
61
|
-
{ "affiliation" => [{ "name" => "Humboldt-Universität zu Berlin" }],
|
62
|
-
"familyName" => "Druskat",
|
63
|
-
"givenName" => "Stephan",
|
64
|
-
"id" => "https://orcid.org/0000-0003-4925-7248",
|
65
|
-
"type" => "Person", "contributorRoles" => ["Author"] },
|
66
|
-
{ "affiliation" => [{ "name" => "University of Oslo" }],
|
67
|
-
"familyName" => "Leoncio",
|
68
|
-
"givenName" => "Waldir",
|
69
51
|
"type" => "Person", "contributorRoles" => ["Author"] }])
|
70
52
|
expect(subject.titles).to eq([{ "title" => "cffconvert" }])
|
71
53
|
expect(subject.descriptions.first["description"]).to start_with("Command line program to validate and convert CITATION.cff files")
|
@@ -78,7 +60,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
78
60
|
{ "subject" => "Endnote" },
|
79
61
|
{ "subject" => "Ris" },
|
80
62
|
{ "subject" => "Citation file format" }])
|
81
|
-
expect(subject.version).to eq("
|
63
|
+
expect(subject.version).to eq("3.0.0a0")
|
82
64
|
expect(subject.date).to eq("published" => "2021-09-22")
|
83
65
|
expect(subject.publisher).to eq("name" => "GitHub")
|
84
66
|
expect(subject.license).to eq("id" => "Apache-2.0", "url" => "http://www.apache.org/licenses/LICENSE-2.0")
|
@@ -328,6 +328,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
328
328
|
expect(subject.references.length).to eq(98)
|
329
329
|
expect(subject.references.first).to eq("containerTitle" => "J. Immunol",
|
330
330
|
"contributor" => "Allen",
|
331
|
+
"doi" => "https://doi.org/10.4049/jimmunol.160.12.6062",
|
331
332
|
"firstPage" => "6062",
|
332
333
|
"key" => "10.1016/j.ejphar.2015.03.018_bib1",
|
333
334
|
"publicationYear" => "1998",
|
@@ -522,7 +523,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
522
523
|
expect(subject.contributors).to eq([{ "type" => "Person", "contributorRoles" => ["Author"], "familyName" => "Leung",
|
523
524
|
"givenName" => "Vincent S." }])
|
524
525
|
expect(subject.titles).to eq([{ "title" => "The Politics of the Past in Early China" }])
|
525
|
-
expect(subject.date).to eq("published" => "2019-07-01", "updated" => "
|
526
|
+
expect(subject.date).to eq("published" => "2019-07-01", "updated" => "2023-09-17")
|
526
527
|
expect(subject.publisher).to eq("id" => "https://api.crossref.org/members/56",
|
527
528
|
"name" => "Cambridge University Press (CUP)")
|
528
529
|
expect(subject.provider).to eq("Crossref")
|
@@ -732,29 +733,22 @@ describe Commonmeta::Metadata, vcr: true do
|
|
732
733
|
subject = described_class.new(input: input)
|
733
734
|
expect(subject.valid?).to be true
|
734
735
|
expect(subject.id).to eq("https://doi.org/10.1111/nph.14619")
|
735
|
-
expect(subject.url).to eq("https://onlinelibrary.wiley.com/doi/10.1111/nph.14619")
|
736
|
+
expect(subject.url).to eq("https://nph.onlinelibrary.wiley.com/doi/10.1111/nph.14619")
|
736
737
|
expect(subject.type).to eq("JournalArticle")
|
737
738
|
expect(subject.contributors.length).to eq(3)
|
738
|
-
expect(subject.contributors.first).to eq("affiliation" => [{
|
739
|
+
expect(subject.contributors.first).to eq("affiliation" => [{"name"=>"Independent Junior Research Group on Protein Recognition and Degradation Leibniz Institute of Plant Biochemistry (IPB) Weinberg 3 Halle (Saale) D‐06120 Germany"}, {"name"=>"ScienceCampus Halle – Plant‐based Bioeconomy Betty‐Heimann‐Strasse 3 Halle (Saale) D‐06120 Germany"}],
|
739
740
|
"familyName" => "Dissmeyer",
|
740
741
|
"givenName" => "Nico",
|
741
742
|
"id" => "https://orcid.org/0000-0002-4156-3761",
|
742
743
|
"type" => "Person", "contributorRoles" => ["Author"])
|
743
|
-
expect(subject.titles).to eq([{ "title" => "Life and death of proteins after protease cleavage: protein degradation by the N
|
744
|
-
expect(subject.license).to eq("url" => "http://
|
745
|
-
expect(subject.date).to eq("published" => "2017-06-05", "updated" => "
|
744
|
+
expect(subject.titles).to eq([{ "title" => "Life and death of proteins after protease cleavage: protein degradation by the N‐end rule pathway" }])
|
745
|
+
expect(subject.license).to eq("url" => "http://onlinelibrary.wiley.com/termsAndConditions#vor")
|
746
|
+
expect(subject.date).to eq("published" => "2017-06-05", "updated" => "2023-09-12")
|
746
747
|
expect(subject.publisher).to eq("id" => "https://api.crossref.org/members/311",
|
747
748
|
"name" => "Wiley")
|
748
749
|
expect(subject.references.length).to eq(49)
|
749
|
-
expect(subject.references.last).to eq("
|
750
|
-
|
751
|
-
"doi" => "https://doi.org/10.1002/pmic.201400530",
|
752
|
-
"firstPage" => "2447",
|
753
|
-
"key" => "10.1111/nph.14619-BIB0049|nph14619-cit-0049",
|
754
|
-
"publicationYear" => "2015",
|
755
|
-
"title" => "Quantitative proteomics analysis of the Arg/N-end rule pathway of targeted degradation in Arabidopsis roots",
|
756
|
-
"volume" => "15")
|
757
|
-
expect(subject.container).to eq("firstPage" => "929", "identifier" => "0028-646X",
|
750
|
+
expect(subject.references.last).to eq("doi"=>"https://doi.org/10.1002/pmic.201400530", "key"=>"e_1_2_7_50_1")
|
751
|
+
expect(subject.container).to eq("firstPage" => "929", "identifier" => "1469-8137",
|
758
752
|
"identifierType" => "ISSN", "issue" => "3", "lastPage" => "935", "title" => "New Phytologist", "type" => "Journal", "volume" => "218")
|
759
753
|
expect(subject.provider).to eq("Crossref")
|
760
754
|
end
|
@@ -795,7 +789,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
795
789
|
it "multiple issn" do
|
796
790
|
input = "https://doi.org/10.1007/978-3-642-34922-5_19"
|
797
791
|
subject = described_class.new(input: input)
|
798
|
-
|
792
|
+
expect(subject.valid?).to be true
|
799
793
|
expect(subject.id).to eq("https://doi.org/10.1007/978-3-642-34922-5_19")
|
800
794
|
expect(subject.url).to eq("https://link.springer.com/10.1007/978-3-642-34922-5_19")
|
801
795
|
expect(subject.type).to eq("BookChapter")
|