bolognese 1.9.7 → 1.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (454) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -15
  3. data/Gemfile.lock +22 -21
  4. data/bolognese.gemspec +1 -1
  5. data/lib/bolognese/doi_utils.rb +8 -8
  6. data/lib/bolognese/readers/crossref_reader.rb +1 -1
  7. data/lib/bolognese/readers/datacite_reader.rb +1 -1
  8. data/lib/bolognese/readers/schema_org_reader.rb +2 -2
  9. data/lib/bolognese/utils.rb +4 -4
  10. data/lib/bolognese/version.rb +1 -1
  11. data/spec/author_utils_spec.rb +12 -6
  12. data/spec/cli_spec.rb +9 -8
  13. data/spec/datacite_utils_spec.rb +3 -3
  14. data/spec/doi_utils_spec.rb +17 -17
  15. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +27 -20
  16. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +27 -20
  17. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_citation.yml +27 -20
  18. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +27 -20
  19. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +27 -20
  20. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_jats.yml +27 -20
  21. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +27 -20
  22. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +33 -24
  23. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +33 -24
  24. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_citation.yml +34 -25
  25. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +34 -25
  26. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +34 -25
  27. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_jats.yml +34 -25
  28. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +33 -24
  29. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +28 -22
  30. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +28 -22
  31. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +29 -25
  32. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/find_from_format_by_id/crossref.yml +18 -15
  33. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/find_from_format_by_id/datacite.yml +18 -15
  34. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/find_from_format_by_id/jalc.yml +18 -15
  35. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/find_from_format_by_id/kisti.yml +18 -15
  36. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/find_from_format_by_id/medra.yml +18 -15
  37. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/find_from_format_by_id/op.yml +18 -15
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/author.yml +9 -5
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/no_author.yml +9 -5
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/single_author.yml +9 -5
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/with_organization.yml +9 -5
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_datacite_metadata/change_state.yml +34 -25
  43. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_datacite_metadata/change_title.yml +33 -24
  44. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/change_description.yml +9 -5
  45. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/change_identifiers.yml +9 -5
  46. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/change_license.yml +9 -5
  47. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/change_license_name.yml +9 -5
  48. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/change_license_url.yml +9 -5
  49. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/change_state.yml +9 -5
  50. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/validates_against_schema.yml +9 -5
  51. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/with_data_citation.yml +9 -5
  52. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_api_url/doi.yml +9 -5
  53. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_api_url/doi_with_protocol.yml +9 -5
  54. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_api_url/dx_doi_org_url.yml +9 -5
  55. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_api_url/force_test_resolver.yml +9 -5
  56. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_api_url/https_url.yml +9 -5
  57. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_api_url/test_resolver.yml +9 -5
  58. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_api_url/test_resolver_http.yml +9 -5
  59. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/doi.yml +9 -5
  60. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/doi_with_special_characters.yml +9 -5
  61. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/not_a_doi.yml +9 -5
  62. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/sandbox_url.yml +9 -5
  63. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/url.yml +9 -5
  64. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/crossref.yml +27 -20
  65. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/datacite.yml +27 -20
  66. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/jalc.yml +27 -20
  67. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/kisti.yml +27 -20
  68. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/medra.yml +27 -20
  69. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/not_a_valid_prefix.yml +9 -5
  70. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/not_found.yml +27 -20
  71. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/op.yml +27 -20
  72. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/doi.yml +9 -5
  73. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/doi_with_protocol.yml +9 -5
  74. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/dx_doi_org_url.yml +9 -5
  75. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/{test_resolver_http.yml → force_stage_resolver.yml} +9 -5
  76. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/https_url.yml +9 -5
  77. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/stage_resolver.yml +48 -0
  78. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/{force_test_resolver.yml → stage_resolver_http.yml} +9 -5
  79. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref.yml +53 -47
  80. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +53 -47
  81. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite.yml +52 -46
  82. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite_doi_http.yml +52 -46
  83. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/github.yml +35 -32
  84. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/orcid.yml +35 -32
  85. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/schema_org.yml +35 -32
  86. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/unknown_DOI_registration_agency.yml +53 -47
  87. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/bibtex.yml +35 -32
  88. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/citeproc.yml +35 -32
  89. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/codemeta.yml +34 -31
  90. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/crosscite.yml +34 -31
  91. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/crossref.yml +35 -32
  92. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/datacite.yml +34 -31
  93. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/datacite_json.yml +35 -32
  94. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/ris.yml +35 -32
  95. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/schema_org.yml +34 -31
  96. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_string/crosscite.yml +35 -32
  97. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/fos/hsh_to_fos_for_match.yml +9 -5
  98. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/fos/hsh_to_fos_for_with_schemeUri_in_hash.yml +48 -0
  99. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/fos/hsh_to_fos_match.yml +9 -5
  100. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/fos/hsh_to_fos_no_match.yml +9 -5
  101. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/fos/name_to_fos_for_match.yml +9 -5
  102. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/fos/name_to_fos_match.yml +9 -5
  103. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/fos/name_to_fos_no_match.yml +9 -5
  104. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/from_schema_org/with_id.yml +9 -5
  105. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/from_schema_org_creators/with_affiliation.yml +9 -5
  106. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/from_schema_org_creators/without_affiliation.yml +9 -5
  107. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_codemeta_metadata/maremma.yml +20 -16
  108. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_codemeta_metadata/metadata_reports.yml +20 -37
  109. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/DOI_with_ORCID_ID.yml +27 -20
  110. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/DOI_with_SICI_DOI.yml +27 -20
  111. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/DOI_with_data_citation.yml +27 -20
  112. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/JaLC.yml +26 -19
  113. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/KISTI.yml +26 -19
  114. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/OP.yml +28 -21
  115. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/affiliation_is_space.yml +24 -23
  116. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/another_book.yml +27 -20
  117. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/another_book_chapter.yml +26 -19
  118. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/article_id_as_page_number.yml +23 -22
  119. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/author_literal.yml +27 -20
  120. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book.yml +28 -21
  121. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book_chapter.yml +27 -20
  122. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book_chapter_with_RDF_for_container.yml +29 -22
  123. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book_oup.yml +26 -19
  124. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/component.yml +28 -21
  125. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/dataset.yml +28 -21
  126. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/dataset_usda.yml +26 -19
  127. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/date_in_future.yml +28 -21
  128. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/dissertation.yml +26 -19
  129. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/empty_given_name.yml +29 -21
  130. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/invalid_date.yml +27 -20
  131. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/journal_article.yml +27 -20
  132. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/journal_article_original_language_title.yml +30 -22
  133. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/journal_article_with.yml +27 -20
  134. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/journal_article_with_RDF_for_container.yml +27 -20
  135. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/journal_article_with_funding.yml +27 -20
  136. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/journal_issue.yml +26 -19
  137. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/mEDRA.yml +29 -60
  138. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/markup.yml +31 -23
  139. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/missing_creator.yml +27 -20
  140. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/multiple_issn.yml +25 -24
  141. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/multiple_titles.yml +28 -21
  142. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/multiple_titles_with_missing.yml +23 -22
  143. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/not_found_error.yml +26 -19
  144. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/peer_review.yml +26 -19
  145. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/posted_content.yml +27 -20
  146. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/posted_content_copernicus.yml +32 -24
  147. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/report_osti.yml +37 -31
  148. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/vor_with_url.yml +27 -20
  149. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/yet_another_book.yml +30 -22
  150. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/yet_another_book_chapter.yml +26 -19
  151. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_json_metadata/metadata_from_api.yml +34 -40
  152. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting.yml +35 -32
  153. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_staging_system.yml +106 -0
  154. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_staging_system_schema_3.yml +106 -0
  155. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_with_related_id_system.yml +34 -41
  156. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_not_found.yml +34 -25
  157. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Dataset.yml +33 -24
  158. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Funding.yml +34 -25
  159. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Funding_empty_awardTitle.yml +33 -24
  160. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Funding_schema_version_4.yml +34 -25
  161. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Referee_report_in_staging_system.yml +106 -0
  162. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Schema_org_type.yml +34 -25
  163. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_only_full_name.yml +33 -24
  164. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_scheme.yml +34 -25
  165. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_wrong_orcid_scheme.yml +34 -25
  166. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/cc-by_3_0_us.yml +34 -32
  167. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/content_url.yml +35 -33
  168. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/date.yml +34 -48
  169. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/dissertation.yml +33 -24
  170. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/doi_with_sign.yml +34 -28
  171. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/empty_subject.yml +35 -28
  172. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/even_more_subject_scheme_FOR.yml +34 -25
  173. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/funding_references.yml +34 -25
  174. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/funding_schema_version_3.yml +34 -51
  175. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/is_identical_to.yml +34 -25
  176. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/keywords_with_attributes.yml +35 -40
  177. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/leading_and_trailing_whitespace.yml +34 -53
  178. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/more_subject_scheme_FOR.yml +35 -37
  179. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/multiple_author_names_in_one_creatorsName.yml +34 -33
  180. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/multiple_licenses.yml +35 -52
  181. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/series-information.yml +34 -25
  182. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/subject_scheme.yml +33 -24
  183. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/subject_scheme_FOR.yml +35 -46
  184. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date/publication_date.yml +9 -5
  185. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/date.yml +9 -5
  186. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/year-month.yml +9 -5
  187. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/year.yml +9 -5
  188. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_parts/date.yml +9 -5
  189. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_parts/year-month.yml +9 -5
  190. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_parts/year.yml +9 -5
  191. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_parts/date.yml +9 -5
  192. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_parts/year-month.yml +9 -5
  193. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_parts/year.yml +9 -5
  194. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datetime_from_time/future.yml +9 -5
  195. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datetime_from_time/invalid.yml +9 -5
  196. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datetime_from_time/nil.yml +9 -5
  197. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datetime_from_time/past.yml +9 -5
  198. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datetime_from_time/present.yml +9 -5
  199. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_familyName.yml +16 -16
  200. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_Thai.yml +16 -10
  201. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_display-order.yml +17 -37
  202. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_display-order_with_ORCID.yml +15 -9
  203. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_sort-order.yml +15 -9
  204. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/hyper-authorship.yml +17 -1203
  205. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/is_organization.yml +9 -5
  206. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/multiple_author_names_in_one_field.yml +16 -18
  207. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/multiple_name_identifier.yml +15 -9
  208. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/name_with_affiliation.yml +15 -9
  209. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/name_with_affiliation_and_country.yml +79 -40
  210. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/name_with_role.yml +15 -9
  211. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/only_familyName_and_givenName.yml +12 -8
  212. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/BlogPosting.yml +28 -22
  213. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/BlogPosting_with_new_DOI.yml +28 -22
  214. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/harvard_dataverse.yml +14 -12
  215. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/pangaea.yml +12 -8
  216. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/zenodo.yml +16 -542
  217. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_series_information/only_title.yml +9 -5
  218. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_series_information/title_and_pages.yml +9 -5
  219. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_series_information/title_volume_and_pages.yml +9 -5
  220. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_series_information/title_volume_issue_and_pages.yml +9 -5
  221. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/github/github_as_codemeta_url.yml +9 -5
  222. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/github/github_from_url.yml +9 -5
  223. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/github/github_from_url_file.yml +9 -5
  224. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/handle_input/DOI_RA_not_Crossref_or_DataCite.yml +18 -15
  225. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/handle_input/unknown_DOI_prefix.yml +18 -15
  226. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_contributors/none.yml +16 -10
  227. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_creators/insert.yml +15 -9
  228. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_dates/insert.yml +16 -10
  229. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_descriptions/insert.yml +17 -17
  230. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_identifier/doi.yml +15 -9
  231. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_language/insert.yml +16 -10
  232. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_person/creator_only_name.yml +15 -9
  233. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_publication_year/insert.yml +16 -10
  234. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_publisher/insert.yml +15 -9
  235. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_related_identifiers/insert.yml +16 -10
  236. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_related_identifiers/related_identifier.yml +16 -10
  237. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_resource_type/insert.yml +15 -9
  238. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_rights_list/insert.yml +15 -9
  239. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_sizes/insert.yml +16 -10
  240. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_subjects/insert.yml +15 -9
  241. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_titles/insert.yml +15 -9
  242. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_version/insert.yml +16 -10
  243. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_comma.yml +9 -5
  244. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_family_name.yml +9 -5
  245. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_id.yml +9 -5
  246. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_known_given_name.yml +9 -5
  247. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_no_info.yml +9 -5
  248. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_orcid_id.yml +9 -5
  249. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_type_organization.yml +9 -5
  250. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/missing_comma.yml +35 -32
  251. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/nil.yml +34 -31
  252. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/overlapping_keys.yml +35 -32
  253. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/valid.yml +35 -32
  254. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_cc_url/not_found.yml +9 -5
  255. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_cc_url/with_trailing_slash.yml +9 -5
  256. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_cc_url/with_trailing_slash_and_to_https.yml +9 -5
  257. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/SICI_doi.yml +9 -5
  258. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi.yml +9 -5
  259. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_force_datacite_sandbox.yml +9 -5
  260. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_from_datacite_sandbox.yml +9 -5
  261. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_from_url_without_doi_proxy.yml +9 -5
  262. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_prefix_too_long.yml +9 -5
  263. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_prefix_with_string.yml +9 -5
  264. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_with_protocol.yml +9 -5
  265. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/dx_doi_org_url.yml +9 -5
  266. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/https_url.yml +9 -5
  267. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/not_valid_doi_prefix.yml +9 -5
  268. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/url_with_one_slash.yml +9 -5
  269. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/doi.yml +9 -5
  270. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/doi_as_url.yml +9 -5
  271. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/ftp.yml +9 -5
  272. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/invalid_url.yml +9 -5
  273. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/sandbox_via_options.yml +9 -5
  274. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/sandbox_via_url.yml +9 -5
  275. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/string.yml +9 -5
  276. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/url.yml +9 -5
  277. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/url_with_utf-8.yml +9 -5
  278. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_ids/doi.yml +9 -5
  279. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_ids/url.yml +9 -5
  280. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_issn/from_array.yml +9 -5
  281. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_issn/from_empty_array.yml +9 -5
  282. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_issn/from_hash.yml +9 -5
  283. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_issn/from_string.yml +9 -5
  284. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_url/uri.yml +9 -5
  285. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_url/with_trailing_slash.yml +9 -5
  286. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_url/with_trailing_slash_and_to_https.yml +9 -5
  287. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/array.yml +9 -5
  288. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/array_of_strings.yml +9 -5
  289. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/first.yml +9 -5
  290. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/hash.yml +9 -5
  291. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/nil.yml +9 -5
  292. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/string.yml +9 -5
  293. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/sanitize/should_only_keep_specific_tags.yml +9 -5
  294. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/sanitize/should_remove_a_tags.yml +9 -5
  295. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/hsh_to_spdx_id.yml +9 -5
  296. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/hsh_to_spdx_not_found.yml +9 -5
  297. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/hsh_to_spdx_url.yml +9 -5
  298. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/name_to_spdx_exists.yml +9 -5
  299. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/name_to_spdx_id.yml +9 -5
  300. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/to_schema_org/with_id.yml +9 -5
  301. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/to_schema_org_identifiers/with_identifiers.yml +9 -5
  302. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_doi/doi.yml +9 -5
  303. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/{doi_resolver/test_resolver.yml → validate_funder_doi/1_7_10.yml} +9 -5
  304. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_11.yml +48 -0
  305. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_12.yml +48 -0
  306. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_13.yml +48 -0
  307. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_14.yml +48 -0
  308. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_4.yml +48 -0
  309. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_5.yml +48 -0
  310. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_6.yml +48 -0
  311. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_7.yml +48 -0
  312. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_8.yml +48 -0
  313. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/1_7_9.yml +48 -0
  314. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/funder_doi.yml +9 -5
  315. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/funder_doi_without_prefix.yml +9 -5
  316. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_funder_doi/non-funder_doi.yml +9 -5
  317. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid.yml +9 -5
  318. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_https.yml +9 -5
  319. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_id.yml +9 -5
  320. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_with_spaces.yml +9 -5
  321. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_wrong_id.yml +9 -5
  322. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_www.yml +9 -5
  323. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme.yml +9 -5
  324. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme_https.yml +9 -5
  325. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme_trailing_slash.yml +9 -5
  326. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme_www.yml +9 -5
  327. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/doi.yml +9 -5
  328. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/doi_as_url.yml +9 -5
  329. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/doi_with_protocol.yml +9 -5
  330. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/only_prefix.yml +9 -5
  331. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/DOI.yml +9 -5
  332. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/ISSN.yml +9 -5
  333. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/URL.yml +9 -5
  334. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/string.yml +9 -5
  335. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/BlogPosting.yml +17 -17
  336. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/Dataset.yml +16 -10
  337. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/authors_with_affiliations.yml +79 -40
  338. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/climate_data.yml +17 -13
  339. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/from_schema_org.yml +28 -24
  340. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/keywords_subject_scheme.yml +17 -88
  341. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/maremma.yml +20 -16
  342. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/text.yml +16 -10
  343. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/with_data_citation.yml +9 -5
  344. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/with_pages.yml +9 -5
  345. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/Dataset.yml +16 -10
  346. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/Journal_article.yml +9 -5
  347. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/Journal_article_vancouver_style.yml +9 -5
  348. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/Missing_author.yml +9 -5
  349. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/interactive_resource_without_dates.yml +17 -14
  350. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/software_w/version.yml +16 -24
  351. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/Another_dataset.yml +16 -34
  352. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/BlogPosting.yml +17 -17
  353. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/BlogPosting_schema_org.yml +29 -25
  354. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/Dataset.yml +15 -9
  355. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/container_title.yml +16 -10
  356. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/interactive_resource_without_dates.yml +16 -13
  357. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/journal_article.yml +9 -5
  358. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/keywords_subject_scheme.yml +17 -88
  359. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/maremma.yml +20 -16
  360. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/missing_creator.yml +9 -5
  361. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/multiple_abstracts.yml +15 -9
  362. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/organization_author.yml +9 -5
  363. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/software.yml +15 -9
  364. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/software_w/version.yml +16 -24
  365. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/with_only_first_page.yml +9 -5
  366. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/with_pages.yml +9 -5
  367. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite.yml +16 -14
  368. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite_check_codemeta_v2.yml +16 -14
  369. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/datacite_database_attributes.yml +16 -10
  370. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/maremma.yml +20 -16
  371. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/with_ORCID_ID.yml +9 -5
  372. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/with_data_citation.yml +9 -5
  373. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/with_data_citation_schema_org.yml +28 -22
  374. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crossref/from_DataCite.yml +16 -10
  375. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_csv/climate_data.yml +16 -12
  376. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_csv/maremma.yml +19 -15
  377. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_csv/text.yml +15 -9
  378. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_csv/with_data_citation.yml +9 -5
  379. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_csv/with_pages.yml +9 -5
  380. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/maremma.yml +20 -16
  381. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/with_ORCID_ID.yml +9 -5
  382. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/with_data_citation.yml +9 -5
  383. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/with_data_citation_schema_org.yml +29 -23
  384. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/DOI_not_found.yml +16 -10
  385. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/Dataset_in_schema_4_0.yml +16 -10
  386. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/Text_pass-thru.yml +16 -42
  387. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/Text_pass-thru_with_doi_in_options.yml +17 -43
  388. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/maremma.yml +20 -16
  389. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_ORCID_ID.yml +9 -5
  390. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_data_citation.yml +9 -5
  391. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_data_citation_schema_org.yml +29 -25
  392. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_editor.yml +9 -5
  393. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_version.yml +17 -26
  394. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/Dataset_in_schema_4_0.yml +16 -10
  395. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/Text_pass-thru.yml +17 -43
  396. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/book_chapter.yml +8 -4
  397. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/interactive_resource_without_dates.yml +16 -13
  398. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/maremma.yml +20 -16
  399. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_ORCID_ID.yml +9 -5
  400. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_data_citation.yml +9 -5
  401. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_data_citation_schema_org.yml +30 -22
  402. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_editor.yml +9 -5
  403. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_rdf_xml/BlogPosting.yml +16 -16
  404. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_rdf_xml/BlogPosting_schema_org.yml +28 -22
  405. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_rdf_xml/journal_article.yml +9 -5
  406. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_rdf_xml/maremma.yml +20 -16
  407. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_rdf_xml/with_pages.yml +9 -5
  408. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/BlogPosting.yml +16 -16
  409. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/BlogPosting_schema_org.yml +28 -22
  410. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/Dataset.yml +16 -10
  411. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/alternate_name.yml +16 -10
  412. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/journal_article.yml +9 -5
  413. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/keywords_with_subject_scheme.yml +16 -87
  414. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/maremma.yml +20 -16
  415. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/with_pages.yml +9 -5
  416. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Funding.yml +33 -24
  417. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Funding_OpenAIRE.yml +35 -52
  418. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON.yml +16 -36
  419. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_Cyark.yml +34 -48
  420. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_IsSupplementTo.yml +33 -24
  421. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_isReferencedBy.yml +16 -10
  422. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/alternate_identifiers.yml +17 -18
  423. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/data_catalog.yml +16 -22
  424. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/geo_location_box.yml +17 -68
  425. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/interactive_resource_without_dates.yml +17 -14
  426. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/journal_article.yml +9 -5
  427. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/maremma_schema_org_JSON.yml +20 -16
  428. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/series_information.yml +15 -9
  429. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/subject_scheme.yml +16 -10
  430. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/subject_scheme_multiple_keywords.yml +16 -87
  431. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/BlogPosting.yml +17 -17
  432. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/BlogPosting_schema_org.yml +30 -24
  433. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/Dataset.yml +16 -10
  434. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/journal_article.yml +9 -5
  435. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/with_pages.yml +9 -5
  436. data/spec/readers/crossref_reader_spec.rb +284 -23
  437. data/spec/readers/datacite_reader_spec.rb +64 -27
  438. data/spec/readers/schema_org_reader_spec.rb +4 -6
  439. data/spec/utils_spec.rb +15 -3
  440. data/spec/writers/bibtex_writer_spec.rb +4 -6
  441. data/spec/writers/citeproc_writer_spec.rb +3 -3
  442. data/spec/writers/csv_writer_spec.rb +1 -1
  443. data/spec/writers/datacite_writer_spec.rb +1 -1
  444. data/spec/writers/jats_writer_spec.rb +1 -1
  445. data/spec/writers/rdf_xml_writer_spec.rb +1 -1
  446. data/spec/writers/ris_writer_spec.rb +10 -8
  447. data/spec/writers/schema_org_writer_spec.rb +4 -4
  448. data/spec/writers/turtle_writer_spec.rb +1 -1
  449. metadata +22 -12
  450. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +0 -111
  451. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/change_alternate_identifiers.yml +0 -51
  452. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_test_system.yml +0 -104
  453. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_test_system_schema_3.yml +0 -99
  454. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Referee_report_in_test_system.yml +0 -102
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a01fe4851a13d779fd983f0fd3dc3c3e14a9374ddee6f9802f305e11c802156e
4
- data.tar.gz: 49d2105471c6bc0270c5e6c326f4564503668537a7ffc26a241293ca2f0ae877
3
+ metadata.gz: 849fb87ec530a7e1ec773da483f9c1c02e77f121452631484df813c29c3e15c1
4
+ data.tar.gz: 4bae2258180b888f2c730222b997b66ad9824019bddaddd99dbee4980539eb1c
5
5
  SHA512:
6
- metadata.gz: 6e6d56a5bb01f18d4bc5812520828d73c19ec9f52f5a3650d31ba9c58f7a19715b59161c8f4bfdfe1cdaf565a94bfc9963b928a1587d86c4cd17ee0579f9b77a
7
- data.tar.gz: 0ca356314c8b16aadb0e9d0f30ebc21e77ee13baf2e73d90a9b8437e83201fa56f3091d6df802824bde0e3b900cc3aa09166caac75c6131378dccc48551de3b1
6
+ metadata.gz: '00679fba333bc077b0c4f9562b017eccdd07e365f340d4f1c90da0e34049ad89a87d299fa0193a224282cdb594aa5113ab13e0f54aa794f195f33352487811e5'
7
+ data.tar.gz: f088ff9511beff4b6eb4f654923af62d4b3b47be8253314a05218b5e5453798b266035927d7350049deb5d5c85673fc79886c9faeb6dd9a540697711adc14b18
data/CHANGELOG.md CHANGED
@@ -1,8 +1,36 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/datacite/bolognese/tree/HEAD)
3
+ ## [1.9.11](https://github.com/datacite/bolognese/tree/1.9.11) (2021-08-04)
4
4
 
5
- [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.5...HEAD)
5
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.10...1.9.11)
6
+
7
+ **Closed issues:**
8
+
9
+ - Sandbox Orcid URLs are not allowed. [\#120](https://github.com/datacite/bolognese/issues/120)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Allow Orcid URLs to have been issued from the sandbox [\#121](https://github.com/datacite/bolognese/pull/121) ([prdanelli](https://github.com/prdanelli))
14
+
15
+ ## [1.9.10](https://github.com/datacite/bolognese/tree/1.9.10) (2021-07-20)
16
+
17
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.9...1.9.10)
18
+
19
+ ## [1.9.9](https://github.com/datacite/bolognese/tree/1.9.9) (2021-06-09)
20
+
21
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.8...1.9.9)
22
+
23
+ ## [1.9.8](https://github.com/datacite/bolognese/tree/1.9.8) (2021-06-08)
24
+
25
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.7...1.9.8)
26
+
27
+ ## [1.9.7](https://github.com/datacite/bolognese/tree/1.9.7) (2021-05-26)
28
+
29
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.6...1.9.7)
30
+
31
+ ## [1.9.6](https://github.com/datacite/bolognese/tree/1.9.6) (2021-05-26)
32
+
33
+ [Full Changelog](https://github.com/datacite/bolognese/compare/1.9.5...1.9.6)
6
34
 
7
35
  **Fixed bugs:**
8
36
 
@@ -13,10 +41,13 @@
13
41
 
14
42
  - Book metadata seems to be ignored [\#113](https://github.com/datacite/bolognese/issues/113)
15
43
  - Namespaced XML Tags [\#109](https://github.com/datacite/bolognese/issues/109)
44
+ - Funder DOI validation [\#108](https://github.com/datacite/bolognese/issues/108)
16
45
 
17
46
  **Merged pull requests:**
18
47
 
19
48
  - Fix missing affiliation identifier [\#117](https://github.com/datacite/bolognese/pull/117) ([richardhallett](https://github.com/richardhallett))
49
+ - Add support for book title and additional metadata when reading Crossref Book Chapter DOI [\#115](https://github.com/datacite/bolognese/pull/115) ([prdanelli](https://github.com/prdanelli))
50
+ - Valid Funder DOIs are being rejected for not starting with a 5 [\#114](https://github.com/datacite/bolognese/pull/114) ([prdanelli](https://github.com/prdanelli))
20
51
 
21
52
  ## [1.9.5](https://github.com/datacite/bolognese/tree/1.9.5) (2021-04-20)
22
53
 
@@ -260,6 +291,7 @@
260
291
 
261
292
  - Map Fields of Research classification to OECD Fields of Science [\#93](https://github.com/datacite/bolognese/pull/93) ([mfenner](https://github.com/mfenner))
262
293
  - Don't try and normalise "Other" funder types. [\#91](https://github.com/datacite/bolognese/pull/91) ([richardhallett](https://github.com/richardhallett))
294
+ - fixes missing version attribute when data comes from datacite\_json [\#85](https://github.com/datacite/bolognese/pull/85) ([kjgarza](https://github.com/kjgarza))
263
295
 
264
296
  ## [1.6](https://github.com/datacite/bolognese/tree/1.6) (2020-05-16)
265
297
 
@@ -289,10 +321,6 @@
289
321
 
290
322
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.5.17...1.5.18)
291
323
 
292
- **Merged pull requests:**
293
-
294
- - fixes missing version attribute when data comes from datacite\_json [\#85](https://github.com/datacite/bolognese/pull/85) ([kjgarza](https://github.com/kjgarza))
295
-
296
324
  ## [1.5.17](https://github.com/datacite/bolognese/tree/1.5.17) (2020-04-18)
297
325
 
298
326
  [Full Changelog](https://github.com/datacite/bolognese/compare/1.5.16...1.5.17)
@@ -1019,14 +1047,14 @@
1019
1047
 
1020
1048
  [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.11.15...v.0.11.16)
1021
1049
 
1022
- **Fixed bugs:**
1023
-
1024
- - Handle xs:string attribute [\#32](https://github.com/datacite/bolognese/issues/32)
1025
-
1026
1050
  ## [v.0.11.15](https://github.com/datacite/bolognese/tree/v.0.11.15) (2018-08-01)
1027
1051
 
1028
1052
  [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.11.14...v.0.11.15)
1029
1053
 
1054
+ **Fixed bugs:**
1055
+
1056
+ - Handle xs:string attribute [\#32](https://github.com/datacite/bolognese/issues/32)
1057
+
1030
1058
  ## [v.0.11.14](https://github.com/datacite/bolognese/tree/v.0.11.14) (2018-07-28)
1031
1059
 
1032
1060
  [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.11.3...v.0.11.14)
@@ -1325,10 +1353,6 @@
1325
1353
 
1326
1354
  [Full Changelog](https://github.com/datacite/bolognese/compare/v.0.9.64...v.0.9.65)
1327
1355
 
1328
- **Closed issues:**
1329
-
1330
- - inconsistent name parsing in JSON-LD conversion [\#16](https://github.com/datacite/bolognese/issues/16)
1331
-
1332
1356
  **Merged pull requests:**
1333
1357
 
1334
1358
  - \[\#28\] Removing multi author support from parsing single author fields. [\#19](https://github.com/datacite/bolognese/pull/19) ([richardhallett](https://github.com/richardhallett))
@@ -1507,11 +1531,11 @@
1507
1531
 
1508
1532
  **Closed issues:**
1509
1533
 
1534
+ - inconsistent name parsing in JSON-LD conversion [\#16](https://github.com/datacite/bolognese/issues/16)
1510
1535
  - Fix error handling alternate names in ris writer [\#14](https://github.com/datacite/bolognese/issues/14)
1511
1536
  - Error displaying container-title [\#13](https://github.com/datacite/bolognese/issues/13)
1512
1537
  - Error parsing funding information [\#12](https://github.com/datacite/bolognese/issues/12)
1513
1538
  - crossref author id to orcid id? [\#10](https://github.com/datacite/bolognese/issues/10)
1514
- - Support funding information [\#7](https://github.com/datacite/bolognese/issues/7)
1515
1539
  - datacite: support subjectScheme and subjectURI [\#4](https://github.com/datacite/bolognese/issues/4)
1516
1540
 
1517
1541
  ## [v.0.9.21](https://github.com/datacite/bolognese/tree/v.0.9.21) (2017-06-03)
@@ -1522,6 +1546,7 @@
1522
1546
 
1523
1547
  - Abstract should be a string in Citeproc writer [\#11](https://github.com/datacite/bolognese/issues/11)
1524
1548
  - the Bolognese gem doesn't properly handle the optional language attribute. [\#8](https://github.com/datacite/bolognese/issues/8)
1549
+ - Support funding information [\#7](https://github.com/datacite/bolognese/issues/7)
1525
1550
  - datacite: support xml:lang in title [\#3](https://github.com/datacite/bolognese/issues/3)
1526
1551
 
1527
1552
  ## [v.0.9.20](https://github.com/datacite/bolognese/tree/v.0.9.20) (2017-05-13)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.9.7)
4
+ bolognese (1.9.11)
5
5
  activesupport (>= 4.2.5)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -17,7 +17,7 @@ PATH
17
17
  json-ld-preloaded (~> 3.1, >= 3.1.3)
18
18
  jsonlint (~> 0.3.0)
19
19
  loofah (~> 2.0, >= 2.0.3)
20
- maremma (>= 4.7, < 5)
20
+ maremma (>= 4.9.4, < 5)
21
21
  namae (~> 1.0)
22
22
  nokogiri (~> 1.11.2)
23
23
  oj (~> 3.10)
@@ -30,13 +30,13 @@ PATH
30
30
  GEM
31
31
  remote: https://rubygems.org/
32
32
  specs:
33
- activesupport (6.1.3.2)
33
+ activesupport (6.1.4)
34
34
  concurrent-ruby (~> 1.0, >= 1.0.2)
35
35
  i18n (>= 1.6, < 2)
36
36
  minitest (>= 5.1)
37
37
  tzinfo (~> 2.0)
38
38
  zeitwerk (~> 2.3)
39
- addressable (2.7.0)
39
+ addressable (2.8.0)
40
40
  public_suffix (>= 2.0.2, < 5.0)
41
41
  amazing_print (1.3.0)
42
42
  benchmark_methods (0.7)
@@ -45,20 +45,21 @@ GEM
45
45
  builder (3.2.4)
46
46
  citeproc (1.0.10)
47
47
  namae (~> 1.0)
48
- citeproc-ruby (1.1.13)
48
+ citeproc-ruby (1.1.14)
49
49
  citeproc (~> 1.0, >= 1.0.9)
50
- csl (~> 1.5)
50
+ csl (~> 1.6)
51
51
  colorize (0.8.1)
52
- concurrent-ruby (1.1.8)
52
+ concurrent-ruby (1.1.9)
53
53
  crack (0.4.5)
54
54
  rexml
55
55
  crass (1.0.6)
56
- csl (1.5.2)
56
+ csl (1.6.0)
57
57
  namae (~> 1.0)
58
+ rexml
58
59
  csl-styles (1.0.1.11)
59
60
  csl (~> 1.0)
60
61
  diff-lcs (1.4.4)
61
- docile (1.3.5)
62
+ docile (1.4.0)
62
63
  ebnf (2.1.3)
63
64
  amazing_print (~> 1.2)
64
65
  htmlentities (~> 4.3)
@@ -77,7 +78,7 @@ GEM
77
78
  faraday (>= 0.7.4, < 1.0)
78
79
  gender_detector (0.1.2)
79
80
  unicode_utils (>= 1.3.0)
80
- haml (5.2.1)
81
+ haml (5.2.2)
81
82
  temple (>= 0.8.0)
82
83
  tilt
83
84
  hamster (3.0.0)
@@ -96,7 +97,7 @@ GEM
96
97
  multi_json (~> 1.14)
97
98
  rack (~> 2.0)
98
99
  rdf (~> 3.1)
99
- json-ld-preloaded (3.1.5)
100
+ json-ld-preloaded (3.1.6)
100
101
  json-ld (~> 3.1)
101
102
  rdf (~> 3.1)
102
103
  jsonlint (0.3.0)
@@ -104,10 +105,10 @@ GEM
104
105
  optimist (~> 3)
105
106
  latex-decode (0.3.2)
106
107
  link_header (0.0.8)
107
- loofah (2.9.1)
108
+ loofah (2.12.0)
108
109
  crass (~> 1.0.2)
109
110
  nokogiri (>= 1.5.9)
110
- maremma (4.7.4)
111
+ maremma (4.9.5)
111
112
  activesupport (>= 4.2.5)
112
113
  addressable (>= 2.3.6)
113
114
  builder (~> 3.2, >= 3.2.2)
@@ -118,15 +119,15 @@ GEM
118
119
  nokogiri (~> 1.11.2)
119
120
  oj (>= 2.8.3)
120
121
  oj_mimic_json (~> 1.0, >= 1.0.1)
121
- mini_portile2 (2.5.0)
122
+ mini_portile2 (2.5.3)
122
123
  minitest (5.14.4)
123
124
  multi_json (1.15.0)
124
125
  multipart-post (2.1.1)
125
126
  namae (1.1.1)
126
- nokogiri (1.11.2)
127
+ nokogiri (1.11.7)
127
128
  mini_portile2 (~> 2.5.0)
128
129
  racc (~> 1.4)
129
- oj (3.11.5)
130
+ oj (3.13.2)
130
131
  oj_mimic_json (1.0.1)
131
132
  optimist (3.0.1)
132
133
  postrank-uri (1.0.24)
@@ -139,7 +140,7 @@ GEM
139
140
  rack-test (0.8.3)
140
141
  rack (>= 1.0, < 3)
141
142
  rake (12.3.3)
142
- rdf (3.1.13)
143
+ rdf (3.1.15)
143
144
  hamster (~> 3.0)
144
145
  link_header (~> 0.0, >= 0.0.8)
145
146
  rdf-aggregate-repo (3.1.0)
@@ -159,12 +160,12 @@ GEM
159
160
  rdf-turtle (3.1.3)
160
161
  ebnf (~> 2.1)
161
162
  rdf (~> 3.1, >= 3.1.8)
162
- rdf-vocab (3.1.13)
163
+ rdf-vocab (3.1.14)
163
164
  rdf (~> 3.1, >= 3.1.12)
164
165
  rdf-xsd (3.1.1)
165
166
  rdf (~> 3.1)
166
167
  rexml (~> 3.2)
167
- rexml (3.2.4)
168
+ rexml (3.2.5)
168
169
  rspec (3.10.0)
169
170
  rspec-core (~> 3.10.0)
170
171
  rspec-expectations (~> 3.10.0)
@@ -197,7 +198,7 @@ GEM
197
198
  unicode-types (1.6.0)
198
199
  unicode_utils (1.4.0)
199
200
  vcr (3.0.3)
200
- webmock (3.12.1)
201
+ webmock (3.13.0)
201
202
  addressable (>= 2.3.6)
202
203
  crack (>= 0.3.2)
203
204
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -219,4 +220,4 @@ DEPENDENCIES
219
220
  webmock (~> 3.0, >= 3.0.1)
220
221
 
221
222
  BUNDLED WITH
222
- 2.2.18
223
+ 2.2.25
data/bolognese.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.required_ruby_version = '~> 2.3'
17
17
 
18
18
  # Declare dependencies here, rather than in the Gemfile
19
- s.add_dependency 'maremma', '>= 4.7', '< 5'
19
+ s.add_dependency 'maremma', '>= 4.9.4', '< 5'
20
20
  s.add_dependency 'faraday', '~> 0.17.3'
21
21
  s.add_dependency 'nokogiri', '~> 1.11.2'
22
22
  s.add_dependency 'loofah', '~> 2.0', '>= 2.0.3'
@@ -3,13 +3,13 @@
3
3
  module Bolognese
4
4
  module DoiUtils
5
5
  def validate_doi(doi)
6
- doi = Array(/\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match(doi)).last
6
+ doi = Array(/\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.stage.datacite.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match(doi)).last
7
7
  # remove non-printing whitespace and downcase
8
8
  doi.delete("\u200B").downcase if doi.present?
9
9
  end
10
10
 
11
11
  def validate_funder_doi(doi)
12
- doi = Array(/\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.test.datacite.org)\/)?(doi:)?(10\.13039\/)?([1-9]\d+)\z/.match(doi)).last
12
+ doi = Array(/\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.stage.datacite.org|handle.test.datacite.org)\/)?(doi:)?(10\.13039\/)?([1-9]\d+)\z/.match(doi)).last
13
13
 
14
14
  # remove non-printing whitespace and downcase
15
15
  if doi.present?
@@ -19,17 +19,17 @@ module Bolognese
19
19
  end
20
20
 
21
21
  def validate_prefix(doi)
22
- Array(/\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}).*\z/.match(doi)).last
22
+ Array(/\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.stage.datacite.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}).*\z/.match(doi)).last
23
23
  end
24
24
 
25
25
  def doi_resolver(doi, options = {})
26
- sandbox = Array(/handle.test.datacite.org/.match(doi)).last
27
- sandbox.present? || options[:sandbox] ? "https://handle.test.datacite.org/" : "https://doi.org/"
26
+ sandbox = Array(/handle.stage.datacite.org/.match(doi)).last
27
+ sandbox.present? || options[:sandbox] ? "https://handle.stage.datacite.org/" : "https://doi.org/"
28
28
  end
29
29
 
30
30
  def doi_api_url(doi, options = {})
31
- sandbox = Array(/handle.test.datacite.org/.match(doi)).last
32
- sandbox.present? || options[:sandbox] ? "https://api.test.datacite.org/dois/#{doi_from_url(doi)}?include=media,client" : "https://api.datacite.org/dois/#{doi_from_url(doi)}?include=media,client"
31
+ sandbox = Array(/handle.stage.datacite.org/.match(doi)).last
32
+ sandbox.present? || options[:sandbox] ? "https://api.stage.datacite.org/dois/#{doi_from_url(doi)}?include=media,client" : "https://api.datacite.org/dois/#{doi_from_url(doi)}?include=media,client"
33
33
  end
34
34
 
35
35
  def normalize_doi(doi, options = {})
@@ -41,7 +41,7 @@ module Bolognese
41
41
  end
42
42
 
43
43
  def doi_from_url(url)
44
- if /\A(?:(http|https):\/\/(dx\.)?(doi.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match(url)
44
+ if /\A(?:(http|https):\/\/(dx\.)?(doi.org|handle.stage.datacite.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match(url)
45
45
  uri = Addressable::URI.parse(url)
46
46
  uri.path.gsub(/^\//, '').downcase
47
47
  end
@@ -9,7 +9,7 @@ module Bolognese
9
9
 
10
10
  doi = doi_from_url(id)
11
11
  url = "https://api.crossref.org/works/#{doi}/transform/application/vnd.crossref.unixsd+xml"
12
- response = Maremma.get(url, accept: "text/xml", raw: true)
12
+ response = Maremma.get(url, accept: "text/xml;charset=utf-8", raw: true)
13
13
  string = response.body.fetch("data", nil)
14
14
  string = Nokogiri::XML(string, nil, 'UTF-8', &:noblanks).to_s if string.present?
15
15
 
@@ -7,7 +7,7 @@ module Bolognese
7
7
  return { "string" => nil, "state" => "not_found" } unless id.present?
8
8
 
9
9
  api_url = doi_api_url(id, options)
10
- response = Maremma.get api_url
10
+ response = Maremma.get(api_url)
11
11
  attributes = response.body.dig("data", "attributes")
12
12
  return { "string" => nil, "state" => "not_found" } unless attributes.present?
13
13
 
@@ -26,8 +26,8 @@ module Bolognese
26
26
  def get_schema_org(id: nil, **options)
27
27
  return { "string" => nil, "state" => "not_found" } unless id.present?
28
28
 
29
- id = normalize_id(id)
30
- response = Maremma.get(id)
29
+ url = normalize_id(id)
30
+ response = Maremma.get(url)
31
31
  doc = Nokogiri::XML(response.body.fetch("data", nil), nil, 'UTF-8')
32
32
 
33
33
  # workaround for xhtml documents
@@ -386,8 +386,8 @@ module Bolognese
386
386
  "BookChapter" => "CHAP",
387
387
  "Collection" => nil,
388
388
  "ComputationalNotebook" => "COMP",
389
- "ConferencePaper" => nil,
390
- "ConferenceProceeding" => nil,
389
+ "ConferencePaper" => "CPAPER",
390
+ "ConferenceProceeding" => "CONF",
391
391
  "DataPaper" => nil,
392
392
  "Dataset" => "DATA",
393
393
  "Dissertation" => "THES",
@@ -499,7 +499,7 @@ module Bolognese
499
499
  def find_from_format_by_id(id)
500
500
  id = normalize_id(id)
501
501
 
502
- if /\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.test.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match(id)
502
+ if /\A(?:(http|https):\/(\/)?(dx\.)?(doi.org|handle.stage.datacite.org)\/)?(doi:)?(10\.\d{4,5}\/.+)\z/.match(id)
503
503
  ra = get_doi_ra(id)
504
504
  %w(DataCite Crossref mEDRA KISTI JaLC OP).include?(ra) ? ra.downcase : nil
505
505
  elsif /\A(?:(http|https):\/(\/)?orcid\.org\/)?(\d{4}-\d{4}-\d{4}-\d{3}[0-9X]+)\z/.match(id)
@@ -574,7 +574,7 @@ module Bolognese
574
574
  end
575
575
 
576
576
  def validate_orcid(orcid)
577
- orcid = Array(/\A(?:(http|https):\/\/(www\.)?orcid\.org\/)?(\d{4}[[:space:]-]\d{4}[[:space:]-]\d{4}[[:space:]-]\d{3}[0-9X]+)\z/.match(orcid)).last
577
+ orcid = Array(/\A(?:(?:http|https):\/\/(?:(?:www|sandbox)?\.)?orcid\.org\/)?(\d{4}[[:space:]-]\d{4}[[:space:]-]\d{4}[[:space:]-]\d{3}[0-9X]+)\z/.match(orcid)).last
578
578
  orcid.gsub(/[[:space:]]/, "-") if orcid.present?
579
579
  end
580
580
 
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.9.7"
2
+ VERSION = "1.9.11"
3
3
  end
@@ -117,10 +117,11 @@ describe Bolognese::Metadata, vcr: true do
117
117
 
118
118
  it "name with affiliation and country" do
119
119
  input = "10.16910/jemr.9.1.2"
120
- subject = Bolognese::Metadata.new(input: input, from: "datacite")
121
- meta = Maremma.from_xml(subject.raw).fetch("resource", {})
122
- response = subject.get_one_author(meta.dig("creators", "creator").first)
123
- expect(response).to eq("name"=>"Eraslan, Sukru; University Of Manchester, UK, & Middle East Technical University, Northern Cyprus Campus, Kalkanli, Guzelyurt, Turkey", "nameIdentifiers" => [], "affiliation" => [])
120
+ subject = Bolognese::Metadata.new(input: input, from: "crossref")
121
+ response = subject.get_one_author(subject.creators.first)
122
+ expect(response).to eq("familyName" => "Eraslan",
123
+ "givenName" => "Sukru",
124
+ "name" => "Eraslan, Sukru")
124
125
  end
125
126
 
126
127
  it "name with role" do
@@ -128,7 +129,12 @@ describe Bolognese::Metadata, vcr: true do
128
129
  subject = Bolognese::Metadata.new(input: input, from: "datacite")
129
130
  meta = Maremma.from_xml(subject.raw).fetch("resource", {})
130
131
  response = subject.get_one_author(meta.dig("creators", "creator").first)
131
- expect(response).to eq("nameType"=>"Personal", "name"=>"Schumacher, H. C.", "givenName"=>"H. C.", "familyName"=>"Schumacher", "nameIdentifiers" => [], "affiliation" => [])
132
+ expect(response).to eq("affiliation" => [],
133
+ "familyName" => "Schumacher",
134
+ "givenName" => "Heinrich Christian",
135
+ "name" => "Schumacher, Heinrich Christian",
136
+ "nameIdentifiers" => [{"nameIdentifier"=>"http://d-nb.info/gnd/118611593", "nameIdentifierScheme"=>"GND", "schemeUri"=>"http://d-nb.info/gnd/"}],
137
+ "nameType" => "Personal")
132
138
  end
133
139
 
134
140
  it "multiple name_identifier" do
@@ -167,7 +173,7 @@ describe Bolognese::Metadata, vcr: true do
167
173
 
168
174
  it "author" do
169
175
  response = subject.authors_as_string(subject.creators)
170
- expect(response).to eq("Fenner, Martin and Crosas, Mercè and Grethe, Jeffrey and Kennedy, David and Hermjakob, Henning and Rocca-Serra, Philippe and Durand, Gustavo and Berjon, Robin and Karcher, Sebastian and Martone, Maryann and Clark, Timothy")
176
+ expect(response).to eq("Fenner, Martin and Crosas, Merc?? and Grethe, Jeffrey and Kennedy, David and Hermjakob, Henning and Rocca-Serra, Philippe and Durand, Gustavo and Berjon, Robin and Karcher, Sebastian and Martone, Maryann and Clark, Timothy")
171
177
  end
172
178
 
173
179
  it "single author" do
data/spec/cli_spec.rb CHANGED
@@ -51,12 +51,12 @@ describe Bolognese::CLI do
51
51
  let(:input) { "10.5061/dryad.8515" }
52
52
 
53
53
  it 'default' do
54
- expect { subject.convert input }.to output(/Plasmodium, malaria, taxonomy, mitochondrial genome, phylogeny, Parasites/).to_stdout
54
+ expect { subject.convert input }.to output(/Plasmodium, malaria, taxonomy, mitochondrial genome, Parasites/).to_stdout
55
55
  end
56
56
 
57
57
  it 'to schema_org' do
58
58
  subject.options = { to: "schema_org" }
59
- expect { subject.convert input }.to output(/Plasmodium, malaria, taxonomy, mitochondrial genome, phylogeny, Parasites/).to_stdout
59
+ expect { subject.convert input }.to output(/http:\/\/schema.org/).to_stdout
60
60
  end
61
61
 
62
62
  it 'to bibtex' do
@@ -89,12 +89,12 @@ describe Bolognese::CLI do
89
89
  let(:id) { "https://blog.datacite.org/eating-your-own-dog-food" }
90
90
 
91
91
  it 'default' do
92
- expect { subject.convert id }.to output(/datacite, doi, metadata, featured/).to_stdout
92
+ expect { subject.convert id }.to output(/http:\/\/schema.org/).to_stdout
93
93
  end
94
94
 
95
95
  it 'to schema_org' do
96
96
  subject.options = { to: "schema_org" }
97
- expect { subject.convert id }.to output(/datacite, doi, metadata, featured/).to_stdout
97
+ expect { subject.convert id }.to output(/http:\/\/schema.org/).to_stdout
98
98
  end
99
99
 
100
100
  it 'to datacite' do
@@ -102,10 +102,11 @@ describe Bolognese::CLI do
102
102
  expect { subject.convert id }.to output(/http:\/\/datacite.org\/schema\/kernel-4/).to_stdout
103
103
  end
104
104
 
105
- it 'to bibtex' do
106
- subject.options = { to: "bibtex" }
107
- expect { subject.convert id }.to output(/@article{https:\/\/doi.org\/10.5438\/4k3m-nyvg/).to_stdout
108
- end
105
+ # TODO
106
+ # it 'to bibtex' do
107
+ # subject.options = { to: "bibtex" }
108
+ # expect { subject.convert id }.to output(/@article{https:\/\/doi.org\/10.5438\/4k3m-nyvg/).to_stdout
109
+ # end
109
110
  end
110
111
  end
111
112