bolognese 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +2 -3
  4. data/lib/bolognese.rb +1 -0
  5. data/lib/bolognese/datacite.rb +6 -2
  6. data/lib/bolognese/version.rb +1 -1
  7. data/spec/codemeta_spec.rb +1 -1
  8. data/spec/crossref_spec.rb +2 -2
  9. data/spec/fixtures/vcr_cassettes/Bolognese_Bibtex/get_metadata_as_rdf_xml/Crossref_DOI.yml +18 -4598
  10. data/spec/fixtures/vcr_cassettes/Bolognese_Bibtex/get_metadata_as_turtle/Crossref_DOI.yml +18 -738
  11. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +14 -22
  12. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +14 -22
  13. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +14 -24
  14. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +16 -22
  15. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +14 -22
  16. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +15 -160
  17. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +15 -160
  18. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +17 -160
  19. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +17 -160
  20. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +17 -160
  21. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +519 -528
  22. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +519 -528
  23. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +519 -528
  24. data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +519 -528
  25. data/spec/fixtures/vcr_cassettes/Bolognese_Citeproc/get_metadata_as_rdf_xml/BlogPosting.yml +18 -4598
  26. data/spec/fixtures/vcr_cassettes/Bolognese_Citeproc/get_metadata_as_turtle/BlogPosting.yml +18 -18
  27. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata/maremma.yml +25 -22
  28. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata/maremma_schema_org_JSON.yml +23 -20
  29. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata/no_codemeta_json.yml +7 -7
  30. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata/not_found_error.yml +7 -7
  31. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_bibtex/maremma.yml +24 -21
  32. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_citeproc/maremma.yml +10 -10
  33. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_datacite_xml/maremma.yml +26 -23
  34. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_rdf_xml/maremma.yml +26 -4606
  35. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_ris/maremma.yml +7 -7
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_schema_org_JSON/maremma.yml +26 -23
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_turtle/maremma.yml +28 -4608
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/author.yml +9 -5
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/no_author.yml +9 -5
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/single_author.yml +9 -5
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/authors_as_string/with_organization.yml +9 -5
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_ORCID_ID.yml +9 -145
  43. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_SICI_DOI.yml +173 -98
  44. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/DOI_with_data_citation.yml +9 -187
  45. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/Schema_org_JSON.yml +9 -5
  46. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/date_in_future.yml +9 -83
  47. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/journal_article.yml +9 -155
  48. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +2 -92
  49. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/posted_content.yml +9 -187
  50. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_bibtex/with_data_citation.yml +9 -5
  51. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_bibtex/with_pages.yml +9 -5
  52. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/journal_article.yml +5 -5
  53. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_citeproc/with_pages.yml +5 -5
  54. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_ORCID_ID.yml +9 -5
  55. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_data_citation.yml +9 -5
  56. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/with_editor.yml +9 -5
  57. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_rdf_xml/journal_article.yml +23 -23
  58. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_rdf_xml/with_pages.yml +23 -23
  59. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/journal_article.yml +5 -5
  60. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_ris/with_pages.yml +5 -5
  61. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_string/DOI_with_data_citation.yml +9 -5
  62. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_turtle/journal_article.yml +23 -23
  63. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_turtle/with_pages.yml +23 -4603
  64. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_ORCID.yml +14 -129
  65. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_name_identifier/has_no_ORCID.yml +13 -109
  66. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_familyName.yml +13 -130
  67. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order.yml +12 -160
  68. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_display-order_with_ORCID.yml +14 -151
  69. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/has_name_in_sort-order.yml +13 -148
  70. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_one_author/is_organization.yml +9 -5
  71. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_comma.yml +9 -5
  72. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_family_name.yml +9 -5
  73. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_id.yml +9 -5
  74. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_no_info.yml +9 -5
  75. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_organization.yml +9 -5
  76. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/is_personal_name_/has_type_person.yml +9 -5
  77. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/BlogPosting.yml +14 -129
  78. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Dataset.yml +14 -147
  79. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Date.yml +14 -108
  80. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Funding_schema_version_3.yml +14 -114
  81. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Funding_schema_version_4.yml +13 -449
  82. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Schema_org_JSON_IsSupplementTo.yml +14 -145
  83. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Schema_org_JSON_isReferencedBy.yml +14 -147
  84. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/is_identical_to.yml +14 -150
  85. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/multiple_licenses.yml +13 -159
  86. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_bibtex/BlogPosting.yml +14 -129
  87. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_bibtex/Dataset.yml +14 -147
  88. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_citeproc/BlogPosting.yml +8 -125
  89. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_citeproc/Dataset.yml +10 -143
  90. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_codemeta/SoftwareSourceCode.yml +14 -107
  91. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_datacite_xml_4_0/Dataset.yml +14 -147
  92. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_rdf_xml/BlogPosting.yml +27 -142
  93. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_ris/BlogPosting.yml +9 -124
  94. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_ris/Dataset.yml +10 -143
  95. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_turtle/BlogPosting.yml +27 -142
  96. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_turtle/Dataset.yml +28 -161
  97. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_alternate_identifiers/insert.yml +13 -148
  98. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_contributors/none.yml +14 -147
  99. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_creators/insert.yml +14 -147
  100. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_dates/insert.yml +14 -147
  101. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_descriptions/insert.yml +13 -130
  102. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_identifier/doi.yml +14 -147
  103. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator_only_name.yml +13 -148
  104. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_publication_year/insert.yml +13 -148
  105. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_publisher/insert.yml +13 -148
  106. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/insert.yml +13 -148
  107. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/related_identifier.yml +14 -147
  108. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_resource_type/insert.yml +14 -147
  109. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_rights_list/insert.yml +14 -147
  110. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_subjects/insert.yml +14 -147
  111. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_titles/insert.yml +14 -147
  112. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_version/insert.yml +14 -147
  113. data/spec/fixtures/vcr_cassettes/Bolognese_DataciteJson/get_metadata_as_rdf_xml/BlogPosting.yml +27 -142
  114. data/spec/fixtures/vcr_cassettes/Bolognese_DataciteJson/get_metadata_as_turtle/BlogPosting.yml +18 -18
  115. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/crossref.yml +5 -17
  116. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/datacite.yml +5 -17
  117. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/medra.yml +7 -17
  118. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/not_found.yml +8 -16
  119. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref.yml +5 -19
  120. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +5 -17
  121. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite.yml +5 -19
  122. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite_doi_http.yml +7 -17
  123. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/generate/datacite.yml +10 -143
  124. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/read/datacite.yml +10 -143
  125. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata/BlogPosting.yml +538 -538
  126. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata/BlogPosting_schema_org_JSON.yml +538 -538
  127. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata/not_found_error.yml +2 -2
  128. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_bibtex/with_data_citation.yml +538 -538
  129. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_citeproc/BlogPosting.yml +12 -12
  130. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_datacite_xml/with_data_citation.yml +538 -538
  131. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_ris/BlogPosting.yml +12 -12
  132. metadata +2 -67
  133. data/spec/fixtures/vcr_cassettes/Bolognese_Codemeta/get_metadata_as_ris/BlogPosting.yml +0 -100
  134. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/author_from_schema_org/with_id.yml +0 -930
  135. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/author_to_schema_org/with_id.yml +0 -930
  136. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/from_schema_org/with_id.yml +0 -930
  137. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/DOI_with_ORCID_ID.yml +0 -506
  138. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/DOI_with_data_citation.yml +0 -901
  139. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/SICI_doi.yml +0 -930
  140. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi.yml +0 -930
  141. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_from_url_without_doi_proxy.yml +0 -930
  142. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_prefix_too_long.yml +0 -930
  143. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_prefix_with_string.yml +0 -930
  144. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/doi_with_protocol.yml +0 -930
  145. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/dx_doi_org_url.yml +0 -930
  146. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/https_url.yml +0 -930
  147. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_doi/not_valid_doi_prefix.yml +0 -930
  148. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_id/doi.yml +0 -930
  149. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_id/doi_as_url.yml +0 -930
  150. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_id/ftp.yml +0 -930
  151. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_id/invalid_url.yml +0 -930
  152. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_id/string.yml +0 -930
  153. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_id/url.yml +0 -930
  154. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_id/url_with_utf-8.yml +0 -930
  155. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_ids/doi.yml +0 -930
  156. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_ids/url.yml +0 -930
  157. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_url/doi.yml +0 -930
  158. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/normalize_url/url.yml +0 -930
  159. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/array.yml +0 -930
  160. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/hash.yml +0 -930
  161. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/nil.yml +0 -930
  162. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attribute/string.yml +0 -930
  163. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/array.yml +0 -930
  164. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/hash.yml +0 -930
  165. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/nil.yml +0 -930
  166. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/parse_attributes/string.yml +0 -930
  167. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/sanitize/should_only_keep_specific_tags.yml +0 -930
  168. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/sanitize/should_remove_a_tags.yml +0 -930
  169. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/to_schema_org/with_id.yml +0 -930
  170. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/validate_url/DOI.yml +0 -930
  171. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/validate_url/URL.yml +0 -930
  172. data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/validate_url/string.yml +0 -930
  173. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Citeproc_JSON.yml +0 -173
  174. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata/Schema_org_JSON.yml +0 -173
  175. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_datacite_xml_4_0/Funding.yml +0 -474
  176. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_microdata/BlogPosting.yml +0 -4735
  177. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_rdf/xml/BlogPosting.yml +0 -4735
  178. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_rdf/xml/Dataset.yml +0 -4753
  179. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_rdfa/BlogPosting.yml +0 -4735
  180. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_rdfxml/BlogPosting.yml +0 -9315
  181. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/get_metadata_as_string/Dataset.yml +0 -173
  182. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_person/creator_given_and_family_name.yml +0 -173
  183. data/spec/fixtures/vcr_cassettes/Bolognese_Datacite/insert_related_identifiers/rel_identifiers.yml +0 -173
  184. data/spec/fixtures/vcr_cassettes/Bolognese_DataciteJson/BlogPosting.yml +0 -4735
  185. data/spec/fixtures/vcr_cassettes/Bolognese_DataciteJson/get_metadata_as_bibtex/BlogPosting.yml +0 -155
  186. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref.yml +0 -44
  187. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/crossref_doi_not_url.yml +0 -44
  188. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite.yml +0 -44
  189. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/datacite_doi_http.yml +0 -44
  190. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider/orcid.yml +0 -44
  191. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/crossref.yml +0 -44
  192. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/crossref_doi_not_url.yml +0 -44
  193. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/datacite.yml +0 -44
  194. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_PID_provider_by_ID/datacite_doi_http.yml +0 -44
  195. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write/datacite_to_bibtex.yml +0 -173
  196. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_rdf_xml/BlogPosting.yml +0 -5233
  197. data/spec/fixtures/vcr_cassettes/Bolognese_SchemaOrg/get_metadata_as_turtle/BlogPosting.yml +0 -5233
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.org/10.5438/4k3m-nyvg
5
+ uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.5438/4k3m-nyvg&wt=json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,146 +10,31 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Maremma - https://github.com/datacite/maremma
12
12
  Accept:
13
- - application/vnd.datacite.datacite+xml
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
14
  response:
15
15
  status:
16
- code: 303
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
- Server:
20
- - Apache-Coyote/1.1
21
- Vary:
22
- - Accept
23
- Location:
24
- - http://data.datacite.org/10.5438%2F4k3m-nyvg
25
- Expires:
26
- - Tue, 28 Feb 2017 08:33:29 GMT
19
+ Access-Control-Allow-Methods:
20
+ - GET, POST, OPTIONS
21
+ Access-Control-Allow-Origin:
22
+ - "*"
27
23
  Content-Type:
28
- - text/html;charset=utf-8
29
- Content-Length:
30
- - '173'
24
+ - application/json;charset=UTF-8
31
25
  Date:
32
- - Tue, 28 Feb 2017 07:49:56 GMT
33
- body:
34
- encoding: UTF-8
35
- string: |-
36
- <html><head><title>Handle Redirect</title></head>
37
- <body><a href="http://data.datacite.org/10.5438%2F4k3m-nyvg">http://data.datacite.org/10.5438%2F4k3m-nyvg</a></body></html>
38
- http_version:
39
- recorded_at: Tue, 28 Feb 2017 07:49:56 GMT
40
- - request:
41
- method: get
42
- uri: http://data.datacite.org/10.5438%2F4k3m-nyvg
43
- body:
44
- encoding: US-ASCII
45
- string: ''
46
- headers:
47
- User-Agent:
48
- - Maremma - https://github.com/datacite/maremma
49
- Accept:
50
- - application/vnd.datacite.datacite+xml
51
- response:
52
- status:
53
- code: 301
54
- message: ''
55
- headers:
26
+ - Tue, 18 Apr 2017 18:29:04 GMT
56
27
  Server:
57
28
  - openresty/1.11.2.2
58
- Date:
59
- - Tue, 28 Feb 2017 07:49:56 GMT
60
- Content-Type:
61
- - text/html
62
29
  Content-Length:
63
- - '191'
30
+ - '3025'
64
31
  Connection:
65
32
  - keep-alive
66
- Location:
67
- - https://data.datacite.org/10.5438%2F4k3m-nyvg
68
- body:
69
- encoding: UTF-8
70
- string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
- bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
72
- http_version:
73
- recorded_at: Tue, 28 Feb 2017 07:49:56 GMT
74
- - request:
75
- method: get
76
- uri: https://data.datacite.org/10.5438%2F4k3m-nyvg
77
- body:
78
- encoding: US-ASCII
79
- string: ''
80
- headers:
81
- User-Agent:
82
- - Maremma - https://github.com/datacite/maremma
83
- Accept:
84
- - application/vnd.datacite.datacite+xml
85
- response:
86
- status:
87
- code: 200
88
- message: ''
89
- headers:
90
- Server:
91
- - openresty/1.11.2.2
92
- Date:
93
- - Tue, 28 Feb 2017 07:49:56 GMT
94
- Content-Type:
95
- - application/vnd.datacite.datacite+xml
96
- Content-Length:
97
- - '2045'
98
- Connection:
99
- - keep-alive
100
- Cache-Control:
101
- - no-transform, max-age=3600
102
- Last-Modified:
103
- - Mon, 09 Jan 2017 13:53:11 GMT
104
- Vary:
105
- - Accept
106
- Access-Control-Allow-Origin:
107
- - "*"
108
- Access-Control-Allow-Methods:
109
- - GET, POST, OPTIONS
110
33
  body:
111
34
  encoding: UTF-8
112
- string: |
113
- <?xml version="1.0" encoding="UTF-8"?>
114
- <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
115
- <identifier identifierType="DOI">10.5438/4K3M-NYVG</identifier>
116
- <creators>
117
- <creator>
118
- <creatorName>Fenner, Martin</creatorName>
119
- <givenName>Martin</givenName>
120
- <familyName>Fenner</familyName>
121
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
122
- </creator>
123
- </creators>
124
- <titles>
125
- <title>Eating your own Dog Food</title>
126
- </titles>
127
- <publisher>DataCite</publisher>
128
- <publicationYear>2016</publicationYear>
129
- <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
130
- <alternateIdentifiers>
131
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-49-3632-5083</alternateIdentifier>
132
- </alternateIdentifiers>
133
- <subjects>
134
- <subject>datacite</subject>
135
- <subject>doi</subject>
136
- <subject>metadata</subject>
137
- </subjects>
138
- <dates>
139
- <date dateType="Created">2016-12-20</date>
140
- <date dateType="Issued">2016-12-20</date>
141
- <date dateType="Updated">2016-12-20</date>
142
- </dates>
143
- <relatedIdentifiers>
144
- <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/0012</relatedIdentifier>
145
- <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/55E5-T5C0</relatedIdentifier>
146
- <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5438/0000-00SS</relatedIdentifier>
147
- </relatedIdentifiers>
148
- <version>1.0</version>
149
- <descriptions>
150
- <description descriptionType="Abstract">Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...</description>
151
- </descriptions>
152
- </resource>
35
+ string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"minted":"2016-12-19T20:49:21Z","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC00L21ldGFkYXRhLnhzZCI+CiAgPGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNTQzOC80SzNNLU5ZVkc8L2lkZW50aWZpZXI+CiAgPGNyZWF0b3JzPgogICAgPGNyZWF0b3I+CiAgICAgIDxjcmVhdG9yTmFtZT5GZW5uZXIsIE1hcnRpbjwvY3JlYXRvck5hbWU+CiAgICAgIDxnaXZlbk5hb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W9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPgo=","updated":"2017-01-09T13:53:12Z","doi":"10.5438/4K3M-NYVG","media":["application/xml:https://blog.datacite.org/eating-your-own-dog-food/eating-your-own-dog-food.xml"]}]}}
36
+
37
+ '
153
38
  http_version:
154
- recorded_at: Tue, 28 Feb 2017 07:49:56 GMT
39
+ recorded_at: Tue, 18 Apr 2017 18:29:04 GMT
155
40
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.org/10.4230/lipics.tqc.2013.93
5
+ uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.4230/lipics.tqc.2013.93&wt=json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,125 +10,29 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Maremma - https://github.com/datacite/maremma
12
12
  Accept:
13
- - application/vnd.datacite.datacite+xml
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
14
  response:
15
15
  status:
16
- code: 303
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
- Server:
20
- - Apache-Coyote/1.1
21
- Vary:
22
- - Accept
23
- Location:
24
- - http://data.datacite.org/10.4230%2Flipics.tqc.2013.93
25
- Expires:
26
- - Tue, 28 Feb 2017 08:33:29 GMT
19
+ Access-Control-Allow-Methods:
20
+ - GET, POST, OPTIONS
21
+ Access-Control-Allow-Origin:
22
+ - "*"
27
23
  Content-Type:
28
- - text/html;charset=utf-8
29
- Content-Length:
30
- - '191'
24
+ - application/json;charset=UTF-8
31
25
  Date:
32
- - Tue, 28 Feb 2017 07:49:12 GMT
33
- body:
34
- encoding: UTF-8
35
- string: |-
36
- <html><head><title>Handle Redirect</title></head>
37
- <body><a href="http://data.datacite.org/10.4230%2Flipics.tqc.2013.93">http://data.datacite.org/10.4230%2Flipics.tqc.2013.93</a></body></html>
38
- http_version:
39
- recorded_at: Tue, 28 Feb 2017 07:49:12 GMT
40
- - request:
41
- method: get
42
- uri: http://data.datacite.org/10.4230%2Flipics.tqc.2013.93
43
- body:
44
- encoding: US-ASCII
45
- string: ''
46
- headers:
47
- User-Agent:
48
- - Maremma - https://github.com/datacite/maremma
49
- Accept:
50
- - application/vnd.datacite.datacite+xml
51
- response:
52
- status:
53
- code: 301
54
- message: ''
55
- headers:
26
+ - Tue, 18 Apr 2017 18:29:03 GMT
56
27
  Server:
57
28
  - openresty/1.11.2.2
58
- Date:
59
- - Tue, 28 Feb 2017 07:49:12 GMT
60
- Content-Type:
61
- - text/html
62
- Content-Length:
63
- - '191'
64
29
  Connection:
65
30
  - keep-alive
66
- Location:
67
- - https://data.datacite.org/10.4230%2Flipics.tqc.2013.93
68
- body:
69
- encoding: UTF-8
70
- string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
- bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
72
- http_version:
73
- recorded_at: Tue, 28 Feb 2017 07:49:12 GMT
74
- - request:
75
- method: get
76
- uri: https://data.datacite.org/10.4230%2Flipics.tqc.2013.93
77
- body:
78
- encoding: US-ASCII
79
- string: ''
80
- headers:
81
- User-Agent:
82
- - Maremma - https://github.com/datacite/maremma
83
- Accept:
84
- - application/vnd.datacite.datacite+xml
85
- response:
86
- status:
87
- code: 200
88
- message: ''
89
- headers:
90
- Server:
91
- - openresty/1.11.2.2
92
- Date:
93
- - Tue, 28 Feb 2017 07:49:13 GMT
94
- Content-Type:
95
- - application/vnd.datacite.datacite+xml
96
- Content-Length:
97
- - '1919'
98
- Connection:
99
- - keep-alive
100
- Cache-Control:
101
- - no-transform, max-age=3600
102
- Last-Modified:
103
- - Wed, 13 Nov 2013 13:42:17 GMT
104
- Vary:
105
- - Accept
106
- Access-Control-Allow-Origin:
107
- - "*"
108
- Access-Control-Allow-Methods:
109
- - GET, POST, OPTIONS
110
31
  body:
111
32
  encoding: UTF-8
112
- string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<resource xmlns=\"http://datacite.org/schema/kernel-2.1\"
113
- xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://datacite.org/schema/kernel-2.1
114
- http://schema.datacite.org/meta/kernel-2.1/metadata.xsd\">\n<identifier identifierType=\"DOI\">10.4230/LIPIcs.TQC.2013.93</identifier>\n<creators>\n<creator>\n<creatorName>Johnston,
115
- Nathaniel</creatorName>\n</creator>\n</creators>\n<titles>\n\t<title>The Minimum
116
- Size of Qubit Unextendible Product Bases</title>\n</titles>\n<publisher>Schloss
117
- Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH, Wadern/Saarbruecken, Germany</publisher>\n<publicationYear>2013</publicationYear>\n<subjects>\n\t<subject>Computer
118
- Science</subject>\n\t<subject subjectScheme=\"DDC\">000 Computer science,
119
- knowledge, general works</subject>\n</subjects>\n<contributors>\n\t<contributor
120
- contributorType=\"Editor\">\n\t\t<contributorName>Herbstritt, Marc</contributorName>\n\t</contributor>\n</contributors>\n<dates>\n\t<date
121
- dateType=\"Available\">2013-11-05</date>\n</dates>\n<language>eng</language>\n<resourceType
122
- resourceTypeGeneral=\"Text\">ConferencePaper</resourceType>\n<sizes>\n\t<size>13
123
- pages</size>\n</sizes>\n<formats>\n\t<format>application/pdf</format>\n</formats>\n<version>1.0</version>\n<rights>Creative
124
- Commons Attribution 3.0 Unported license (CC-BY 3.0)</rights>\n<descriptions>\n\t<description
125
- descriptionType=\"Other\">\n\tWe investigate the problem of constructing unextendible
126
- product bases in the qubit case - that is, when each local dimension equals
127
- 2. The cardinality of the smallest unextendible product basis is known in
128
- all qubit cases except when the number of parties is a multiple of 4 greater
129
- than 4 itself. We construct small unextendible product bases in all of the
130
- remaining open cases, and we use graph theory techniques to produce a computer-assisted
131
- proof that our constructions are indeed the smallest possible.\n\t</description>\n</descriptions>\n</resource>\n"
33
+ string: '{"responseHeader":{"status":0,"QTime":10},"response":{"numFound":1,"start":0,"docs":[{"minted":"2013-11-13T13:42:17Z","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMi4xIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6c2NoZW1hTG9jYXRpb249Imh0dHA6Ly9kYXRhY2l0ZS5vcmcvc2NoZW1hL2tlcm5lbC0yLjEgaHR0cDovL3NjaGVtYS5kYXRhY2l0ZS5vcmcvbWV0YS9rZXJuZWwtMi4xL21ldGFkYXRhLnhzZCI+CjxpZGVudGlmaWVyIGlkZW50aWZpZXJUeXBlPSJET0kiPjEwLjQyMzAvTElQSWNzLlRRQy4yMDEzLjkzPC9pZGVudGlmaWVyPgo8Y3JlYXRvcnM+CjxjcmVhdG9yPgo8Y3JlYXRvck5hbWU+Sm9obnN0b24sIE5hdGhhbmllbDwvY3JlYXRvck5hbWU+CjwvY3JlYXRvcj4KPC9jcmVhdG9ycz4KPHRpdGxlcz4KCTx0aXRsZT5UaGUgTWluaW11bSBTaXplIG9mIFF1Yml0IFVuZXh0ZW5kaWJsZSBQcm9kdWN0IEJhc2VzPC90aXRsZT4KPC90aXRsZXM+CjxwdWJsaXNoZXI+U2NobG9zcyBEYWdzdHVobCAtIExlaWJuaXotWmVudHJ1bSBmdWVyIEluZm9ybWF0aWsgR21iSCwgV2FkZXJuL1NhYXJicnVlY2tlbiwgR2VybWFueTwvcHVibGlzaGVyPgo8cHVibGljYXRpb25ZZWFyPjIwMTM8L3B1YmxpY2F0aW9uWWVhcj4KPHN1YmplY3RzPgoJPHN1YmplY3Q+Q29tcHV0ZXIgU2NpZW5jZTwvc3ViamVjdD4KCTxzdWJqZWN0IHN1YmplY3RTY2h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ZiB0aGUgc21hbGxlc3QgdW5leHRlbmRpYmxlIHByb2R1Y3QgYmFzaXMgaXMga25vd24gaW4gYWxsIHF1Yml0IGNhc2VzIGV4Y2VwdCB3aGVuIHRoZSBudW1iZXIgb2YgcGFydGllcyBpcyBhIG11bHRpcGxlIG9mIDQgZ3JlYXRlciB0aGFuIDQgaXRzZWxmLiBXZSBjb25zdHJ1Y3Qgc21hbGwgdW5leHRlbmRpYmxlIHByb2R1Y3QgYmFzZXMgaW4gYWxsIG9mIHRoZSByZW1haW5pbmcgb3BlbiBjYXNlcywgYW5kIHdlIHVzZSBncmFwaCB0aGVvcnkgdGVjaG5pcXVlcyB0byBwcm9kdWNlIGEgY29tcHV0ZXItYXNzaXN0ZWQgcHJvb2YgdGhhdCBvdXIgY29uc3RydWN0aW9ucyBhcmUgaW5kZWVkIHRoZSBzbWFsbGVzdCBwb3NzaWJsZS4KCTwvZGVzY3JpcHRpb24+CjwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPgo=","updated":"2013-11-13T13:42:17Z","doi":"10.4230/LIPICS.TQC.2013.93"}]}}
34
+
35
+ '
132
36
  http_version:
133
- recorded_at: Tue, 28 Feb 2017 07:49:13 GMT
37
+ recorded_at: Tue, 18 Apr 2017 18:29:03 GMT
134
38
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://doi.org/10.5438/4k3m-nyvg
5
+ uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.5438/4k3m-nyvg&wt=json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,146 +10,29 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Maremma - https://github.com/datacite/maremma
12
12
  Accept:
13
- - application/vnd.datacite.datacite+xml
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
14
  response:
15
15
  status:
16
- code: 303
16
+ code: 200
17
17
  message: ''
18
18
  headers:
19
- Server:
20
- - Apache-Coyote/1.1
21
- Vary:
22
- - Accept
23
- Location:
24
- - http://data.datacite.org/10.5438%2F4k3m-nyvg
25
- Expires:
26
- - Tue, 28 Feb 2017 08:33:29 GMT
19
+ Access-Control-Allow-Methods:
20
+ - GET, POST, OPTIONS
21
+ Access-Control-Allow-Origin:
22
+ - "*"
27
23
  Content-Type:
28
- - text/html;charset=utf-8
29
- Content-Length:
30
- - '173'
24
+ - application/json;charset=UTF-8
31
25
  Date:
32
- - Tue, 28 Feb 2017 07:54:15 GMT
33
- body:
34
- encoding: UTF-8
35
- string: |-
36
- <html><head><title>Handle Redirect</title></head>
37
- <body><a href="http://data.datacite.org/10.5438%2F4k3m-nyvg">http://data.datacite.org/10.5438%2F4k3m-nyvg</a></body></html>
38
- http_version:
39
- recorded_at: Tue, 28 Feb 2017 07:54:16 GMT
40
- - request:
41
- method: get
42
- uri: http://data.datacite.org/10.5438%2F4k3m-nyvg
43
- body:
44
- encoding: US-ASCII
45
- string: ''
46
- headers:
47
- User-Agent:
48
- - Maremma - https://github.com/datacite/maremma
49
- Accept:
50
- - application/vnd.datacite.datacite+xml
51
- response:
52
- status:
53
- code: 301
54
- message: ''
55
- headers:
26
+ - Tue, 18 Apr 2017 18:29:04 GMT
56
27
  Server:
57
28
  - openresty/1.11.2.2
58
- Date:
59
- - Tue, 28 Feb 2017 07:54:16 GMT
60
- Content-Type:
61
- - text/html
62
- Content-Length:
63
- - '191'
64
29
  Connection:
65
30
  - keep-alive
66
- Location:
67
- - https://data.datacite.org/10.5438%2F4k3m-nyvg
68
- body:
69
- encoding: UTF-8
70
- string: "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body
71
- bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>openresty/1.11.2.2</center>\r\n</body>\r\n</html>\r\n"
72
- http_version:
73
- recorded_at: Tue, 28 Feb 2017 07:54:16 GMT
74
- - request:
75
- method: get
76
- uri: https://data.datacite.org/10.5438%2F4k3m-nyvg
77
- body:
78
- encoding: US-ASCII
79
- string: ''
80
- headers:
81
- User-Agent:
82
- - Maremma - https://github.com/datacite/maremma
83
- Accept:
84
- - application/vnd.datacite.datacite+xml
85
- response:
86
- status:
87
- code: 200
88
- message: ''
89
- headers:
90
- Server:
91
- - openresty/1.11.2.2
92
- Date:
93
- - Tue, 28 Feb 2017 07:54:16 GMT
94
- Content-Type:
95
- - application/vnd.datacite.datacite+xml
96
- Content-Length:
97
- - '2045'
98
- Connection:
99
- - keep-alive
100
- Cache-Control:
101
- - no-transform, max-age=3600
102
- Last-Modified:
103
- - Mon, 09 Jan 2017 13:53:11 GMT
104
- Vary:
105
- - Accept
106
- Access-Control-Allow-Origin:
107
- - "*"
108
- Access-Control-Allow-Methods:
109
- - GET, POST, OPTIONS
110
31
  body:
111
32
  encoding: UTF-8
112
- string: |
113
- <?xml version="1.0" encoding="UTF-8"?>
114
- <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
115
- <identifier identifierType="DOI">10.5438/4K3M-NYVG</identifier>
116
- <creators>
117
- <creator>
118
- <creatorName>Fenner, Martin</creatorName>
119
- <givenName>Martin</givenName>
120
- <familyName>Fenner</familyName>
121
- <nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
122
- </creator>
123
- </creators>
124
- <titles>
125
- <title>Eating your own Dog Food</title>
126
- </titles>
127
- <publisher>DataCite</publisher>
128
- <publicationYear>2016</publicationYear>
129
- <resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
130
- <alternateIdentifiers>
131
- <alternateIdentifier alternateIdentifierType="Local accession number">MS-49-3632-5083</alternateIdentifier>
132
- </alternateIdentifiers>
133
- <subjects>
134
- <subject>datacite</subject>
135
- <subject>doi</subject>
136
- <subject>metadata</subject>
137
- </subjects>
138
- <dates>
139
- <date dateType="Created">2016-12-20</date>
140
- <date dateType="Issued">2016-12-20</date>
141
- <date dateType="Updated">2016-12-20</date>
142
- </dates>
143
- <relatedIdentifiers>
144
- <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/0012</relatedIdentifier>
145
- <relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/55E5-T5C0</relatedIdentifier>
146
- <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5438/0000-00SS</relatedIdentifier>
147
- </relatedIdentifiers>
148
- <version>1.0</version>
149
- <descriptions>
150
- <description descriptionType="Abstract">Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...</description>
151
- </descriptions>
152
- </resource>
33
+ string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"minted":"2016-12-19T20:49:21Z","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC00L21ldGFkYXRhLnhzZCI+CiAgPGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNTQzOC80SzNNLU5ZVkc8L2lkZW50aWZpZXI+CiAgPGNyZWF0b3JzPgogICAgPGNyZWF0b3I+CiAgICAgIDxjcmVhdG9yTmFtZT5GZW5uZXIsIE1hcnRpbjwvY3JlYXRvck5hbWU+CiAgICAgIDxnaXZlbk5h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aW9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPgo=","updated":"2017-01-09T13:53:12Z","doi":"10.5438/4K3M-NYVG","media":["application/xml:https://blog.datacite.org/eating-your-own-dog-food/eating-your-own-dog-food.xml"]}]}}
34
+
35
+ '
153
36
  http_version:
154
- recorded_at: Tue, 28 Feb 2017 07:54:16 GMT
37
+ recorded_at: Tue, 18 Apr 2017 18:29:04 GMT
155
38
  recorded_with: VCR 3.0.3