commonmeta-ruby 3.0.6 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -12
- data/commonmeta.gemspec +1 -0
- data/lib/commonmeta/cli.rb +12 -0
- data/lib/commonmeta/utils.rb +684 -673
- data/lib/commonmeta/version.rb +1 -1
- data/spec/cli_spec.rb +14 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_doi/decode_another_doi.yml +221 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_id/decode_another_id.yml +221 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_id/decode_id.yml +221 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_id/encode_id.yml +221 -0
- data/spec/utils_spec.rb +21 -1
- metadata +27 -3
@@ -0,0 +1,221 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.crossref.org/works/10.1101/097196
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Connection:
|
11
|
+
- close
|
12
|
+
Host:
|
13
|
+
- api.crossref.org
|
14
|
+
User-Agent:
|
15
|
+
- http.rb/5.1.1
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 04 Apr 2023 19:19:28 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Access-Control-Expose-Headers:
|
28
|
+
- Link
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
31
|
+
Accept-Ranges, Cache-Control
|
32
|
+
Access-Control-Allow-Origin:
|
33
|
+
- "*"
|
34
|
+
Server:
|
35
|
+
- Jetty(9.4.40.v20210413)
|
36
|
+
X-Ratelimit-Limit:
|
37
|
+
- '50'
|
38
|
+
X-Ratelimit-Interval:
|
39
|
+
- 1s
|
40
|
+
X-Api-Pool:
|
41
|
+
- public
|
42
|
+
X-Rate-Limit-Limit:
|
43
|
+
- '50'
|
44
|
+
X-Rate-Limit-Interval:
|
45
|
+
- 1s
|
46
|
+
Permissions-Policy:
|
47
|
+
- interest-cohort=()
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"institution":[{"name":"bioRxiv"}],"indexed":{"date-parts":[[2023,1,13]],"date-time":"2023-01-13T05:44:11Z","timestamp":1673588651470},"posted":{"date-parts":[[2016,12,28]]},"group-title":"Scientific
|
53
|
+
Communication and Education","reference-count":26,"publisher":"Cold Spring
|
54
|
+
Harbor Laboratory","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2017,10,9]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>This
|
55
|
+
article presents a practical roadmap for scholarly data repositories to implement
|
56
|
+
data citation in accordance with the Joint Declaration of Data Citation Principles,
|
57
|
+
a synopsis and harmonization of the recommendations of major science policy
|
58
|
+
bodies. The roadmap was developed by the Repositories Expert Group, as part
|
59
|
+
of the Data Citation Implementation Pilot (DCIP) project, an initiative of
|
60
|
+
FORCE11.org and the NIH BioCADDIE (<jats:ext-link xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"
|
61
|
+
ext-link-type=\"uri\" xlink:href=\"https:\/\/biocaddie.org\">https:\/\/biocaddie.org<\/jats:ext-link>)
|
62
|
+
program. The roadmap makes 11 specific recommendations, grouped into three
|
63
|
+
phases of implementation: a) required steps needed to support the Joint Declaration
|
64
|
+
of Data Citation Principles, b) recommended steps that facilitate article\/data
|
65
|
+
publication workflows, and c) optional steps that further improve data citation
|
66
|
+
support provided by data repositories.<\/jats:p>","DOI":"10.1101\/097196","type":"posted-content","created":{"date-parts":[[2016,12,29]],"date-time":"2016-12-29T06:10:15Z","timestamp":1482991815000},"source":"Crossref","is-referenced-by-count":15,"title":["A
|
67
|
+
Data Citation Roadmap for Scholarly Data Repositories"],"prefix":"10.1101","author":[{"ORCID":"http:\/\/orcid.org\/0000-0003-1419-2405","authenticated-orcid":false,"given":"Martin","family":"Fenner","sequence":"first","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0003-1304-1939","authenticated-orcid":false,"given":"Merc\u00e8","family":"Crosas","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-5212-7052","authenticated-orcid":false,"given":"Jeffrey","family":"Grethe","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-9377-0797","authenticated-orcid":false,"given":"David","family":"Kennedy","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-8479-0262","authenticated-orcid":false,"given":"Henning","family":"Hermjakob","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-9853-5668","authenticated-orcid":false,"given":"Philippe","family":"Rocca-Serra","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-2188-2570","authenticated-orcid":false,"given":"Gustavo","family":"Durand","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-1731-5346","authenticated-orcid":false,"given":"Robin","family":"Berjon","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-8249-7388","authenticated-orcid":false,"given":"Sebastian","family":"Karcher","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-8406-3871","authenticated-orcid":false,"given":"Maryann","family":"Martone","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0003-4060-7360","authenticated-orcid":false,"given":"Timothy","family":"Clark","sequence":"additional","affiliation":[]}],"member":"246","reference":[{"issue":"3","key":"2019071613381284000_097196v2.1","first-page":"43","article-title":"An
|
68
|
+
introduction to the joint principles for data citation","volume":"41","year":"2015","journal-title":"Bulletin
|
69
|
+
of the American \\ldots"},{"key":"2019071613381284000_097196v2.2","unstructured":"Altman,
|
70
|
+
M. , & Crosas, M. (2013). The Evolution of Data Citation: From Principles
|
71
|
+
to Implementation. IASSIST Quarterly. Retrieved from http:\/\/scholar.harvard.edu\/mercecrosas\/publications\/evolution-data-citation-principles-implementation"},{"key":"2019071613381284000_097196v2.3","unstructured":"BioSchemas.
|
72
|
+
(2016). Retrieved December 22, 2016, from http:\/\/bioschemas.org\/"},{"key":"2019071613381284000_097196v2.4","doi-asserted-by":"crossref","unstructured":"CODATA-ICSTI
|
73
|
+
Task Group on Data Citation Standards and Practice. (2013). Out of Cite, Out
|
74
|
+
of Mind: The Current State of Practice, Policy, and Technology for the Citation
|
75
|
+
of Data. Data Science Journal, 12(0). https:\/\/doi.org\/10.2481\/dsj.OSOM13-043","DOI":"10.2481\/dsj.OSOM13-043"},{"key":"2019071613381284000_097196v2.5","unstructured":"Data
|
76
|
+
Citation Synthesis Group. (2014). Data Citation Synthesis Group. (2014). Joint
|
77
|
+
Declaration of Data Citation Principles. Force11. https:\/\/doi.org\/10.25490\/a97f-egyk"},{"key":"2019071613381284000_097196v2.6","unstructured":"Data
|
78
|
+
Citations: A Primer. (2016). Retrieved December 22, 2016, from http:\/\/force11.github.io\/data-citation-primer\/"},{"key":"2019071613381284000_097196v2.7","unstructured":"DataCite
|
79
|
+
Metadata Working. (2016). DataCite Metadata Schema for the Publication and
|
80
|
+
Citation of Research Data v4.0. DataCite. Retrieved from http:\/\/search.datacite.org\/works\/10.5438\/0013"},{"key":"2019071613381284000_097196v2.8","unstructured":"DataCite
|
81
|
+
Search. (2016). Retrieved December 22, 2016, from https:\/\/search.datacite.org\/"},{"key":"2019071613381284000_097196v2.9","unstructured":"DataMed
|
82
|
+
| bioCADDIE DDI. (2016). Retrieved December 22, 2016, from https:\/\/datamed.org\/"},{"key":"2019071613381284000_097196v2.10","unstructured":"Dataset
|
83
|
+
- schema.org. (2016). Retrieved December 12, 2016, from https:\/\/schema.org\/Dataset"},{"key":"2019071613381284000_097196v2.11","unstructured":"Dublin
|
84
|
+
Core Metadata Element Set, Version 1.1. (2012). Retrieved December 22, 2016,
|
85
|
+
from http:\/\/dublincore.org\/documents\/2012\/06\/14\/dces\/"},{"key":"2019071613381284000_097196v2.12","unstructured":"ELIXIR
|
86
|
+
Data for life. (2016). Retrieved December 22, 2016, from https:\/\/www.elixir-europe.org\/"},{"key":"2019071613381284000_097196v2.13","unstructured":"Hammond,
|
87
|
+
T. , Hannay, T. , & Lund, B. (2004). RDF Site Summary 1.0 Modules: PRISM."},{"key":"2019071613381284000_097196v2.14","unstructured":"Publishing
|
88
|
+
Requirements for Industry Standard Metadata (PRISM). Retrieved from http:\/\/purl.org\/rss\/1.0\/modules\/prism\/"},{"key":"2019071613381284000_097196v2.15","doi-asserted-by":"crossref","unstructured":"Honor,
|
89
|
+
L. B. , Haselgrove, C. , Frazier, J. A. , & Kennedy, D. N. (2016). Data Citation
|
90
|
+
in Neuroimaging: Proposed Best Practices for Data Identification and Attribution.
|
91
|
+
Frontiers in Neuroinformatics, 10. https:\/\/doi.org\/10.3389\/fninf.2016.00034","DOI":"10.3389\/fninf.2016.00034"},{"key":"2019071613381284000_097196v2.16","unstructured":"King,
|
92
|
+
Gary , & Altman, Micah . (2007). A Proposed Standard for the Scholarly Citation
|
93
|
+
of Quantitative Data. https:\/\/doi.org\/10.1045\/march2007-altman"},{"key":"2019071613381284000_097196v2.17","doi-asserted-by":"publisher","DOI":"10.15252\/msb.20156658"},{"key":"2019071613381284000_097196v2.18","unstructured":"Prefix
|
94
|
+
Commons. (2016). Retrieved December 22, 2016, from https:\/\/github.com\/prefixcommons\/prefixes"},{"key":"2019071613381284000_097196v2.19","unstructured":"RFC
|
95
|
+
3986 - Uniform Resource Identifier (URI): Generic Syntax. (2005). Retrieved
|
96
|
+
December 22, 2016, from http:\/\/www.rfc-base.org\/rfc-3986.html"},{"key":"2019071613381284000_097196v2.20","doi-asserted-by":"crossref","unstructured":"Sansone,
|
97
|
+
A. , Gonzalez-Beltran, A. , & Rocca-Serra, P. (2016). DATS, the data tag suite
|
98
|
+
to enable discoverability of datasets. Scientific Data 4, Article number:
|
99
|
+
170059 (2017) https:\/\/doi.org\/10.1038\/sdata.2017.59","DOI":"10.1038\/sdata.2017.59"},{"key":"2019071613381284000_097196v2.21","doi-asserted-by":"crossref","first-page":"e86","DOI":"10.7717\/peerj-cs.86","article-title":"Software
|
100
|
+
citation principles","volume":"2","year":"2016","journal-title":"PeerJ Computer
|
101
|
+
Science"},{"key":"2019071613381284000_097196v2.22","doi-asserted-by":"crossref","first-page":"e1","DOI":"10.7717\/peerj-cs.1","article-title":"Achieving
|
102
|
+
human and machine accessibility of cited data in scholarly publications","volume":"1","year":"2015","journal-title":"PeerJ
|
103
|
+
Computer Science"},{"key":"2019071613381284000_097196v2.23","doi-asserted-by":"publisher","DOI":"10.1126\/science.aah6168"},{"key":"2019071613381284000_097196v2.24","unstructured":"Treloar,
|
104
|
+
A. (2011). Den Haag Persistent Object Identifier \u2013 Linked Open Data Manifesto.
|
105
|
+
Zenodo. https:\/\/doi.org\/10.5281\/zenodo.55666"},{"key":"2019071613381284000_097196v2.25","unstructured":"Uhlir,
|
106
|
+
P. E. (Ed.). (2012). For Attribution: Developing Data Attribution and Citation
|
107
|
+
Practices and Standards: Summary of an International Workshop. Retrieved from
|
108
|
+
https:\/\/www.nap.edu\/catalog\/13564\/for-attribution-developing-data-attribution-and-citation-practices-and-standards"},{"key":"2019071613381284000_097196v2.26","doi-asserted-by":"crossref","unstructured":"Van
|
109
|
+
de Sompel, H. , & Nelson, M. L. (2015). Reminiscing About 15 Years of Interoperability
|
110
|
+
Efforts. D-Lib Magazine, 21(11\/12). https:\/\/doi.org\/10.1045\/november2015-vandesompel","DOI":"10.1045\/november2015-vandesompel"}],"container-title":[],"original-title":[],"link":[{"URL":"https:\/\/syndication.highwire.org\/content\/doi\/10.1101\/097196","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2020,1,18]],"date-time":"2020-01-18T02:53:57Z","timestamp":1579316037000},"score":1,"resource":{"primary":{"URL":"http:\/\/biorxiv.org\/lookup\/doi\/10.1101\/097196"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2016,12,28]]},"references-count":26,"URL":"http:\/\/dx.doi.org\/10.1101\/097196","relation":{"is-preprint-of":[{"id-type":"doi","id":"10.1038\/s41597-019-0031-8","asserted-by":"subject"}]},"published":{"date-parts":[[2016,12,28]]},"subtype":"preprint"}}'
|
111
|
+
recorded_at: Tue, 04 Apr 2023 19:19:28 GMT
|
112
|
+
- request:
|
113
|
+
method: get
|
114
|
+
uri: https://api.crossref.org/members/246
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: ''
|
118
|
+
headers:
|
119
|
+
Connection:
|
120
|
+
- close
|
121
|
+
Host:
|
122
|
+
- api.crossref.org
|
123
|
+
User-Agent:
|
124
|
+
- http.rb/5.1.1
|
125
|
+
response:
|
126
|
+
status:
|
127
|
+
code: 200
|
128
|
+
message: OK
|
129
|
+
headers:
|
130
|
+
Date:
|
131
|
+
- Tue, 04 Apr 2023 19:19:29 GMT
|
132
|
+
Content-Type:
|
133
|
+
- application/json
|
134
|
+
Transfer-Encoding:
|
135
|
+
- chunked
|
136
|
+
Access-Control-Expose-Headers:
|
137
|
+
- Link
|
138
|
+
Access-Control-Allow-Headers:
|
139
|
+
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
140
|
+
Accept-Ranges, Cache-Control
|
141
|
+
Access-Control-Allow-Origin:
|
142
|
+
- "*"
|
143
|
+
Server:
|
144
|
+
- Jetty(9.4.40.v20210413)
|
145
|
+
X-Ratelimit-Limit:
|
146
|
+
- '50'
|
147
|
+
X-Ratelimit-Interval:
|
148
|
+
- 1s
|
149
|
+
X-Api-Pool:
|
150
|
+
- public
|
151
|
+
X-Rate-Limit-Limit:
|
152
|
+
- '50'
|
153
|
+
X-Rate-Limit-Interval:
|
154
|
+
- 1s
|
155
|
+
Permissions-Policy:
|
156
|
+
- interest-cohort=()
|
157
|
+
Connection:
|
158
|
+
- close
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: '{"status":"ok","message-type":"member","message-version":"1.0.0","message":{"last-status-check-time":1680564846126,"primary-name":"Cold
|
162
|
+
Spring Harbor Laboratory","counts":{"current-dois":109685,"backfile-dois":160223,"total-dois":269908},"breakdowns":{"dois-by-issued-year":[[2020,53638],[2021,50444],[2022,46898],[2019,31261],[2018,22041],[2017,12746],[2023,12343],[2016,6114],[2006,3590],[2015,3299],[2014,2295],[2009,1926],[2007,1796],[2010,1753],[2008,1646],[2013,1450],[2011,1418],[2012,1356],[2004,949],[2003,872],[2005,861],[2001,801],[2002,781],[2000,774],[1999,714],[1998,707],[1997,515],[1996,504],[1995,448],[1994,441],[1993,389],[1992,364],[1991,336],[1990,304],[1989,304],[1988,283],[1974,235],[1983,228],[1987,227],[1979,154],[1980,143],[1986,129],[1978,122],[1981,117],[1985,107],[1970,101],[1977,98],[1968,97],[1984,95],[1982,95],[1969,94],[1966,94],[1973,84],[1963,79],[1972,74],[1967,72],[1950,63],[1976,62],[1965,60],[1960,53],[1964,50],[1962,49],[1961,48],[1937,43],[1953,42],[1957,39],[1958,38],[1951,37],[1938,37],[1935,37],[1936,36],[1955,34],[1941,34],[1939,34],[1934,32],[1956,31],[1954,29],[1946,29],[1933,29],[1959,28],[1952,28],[1940,28],[1948,27],[1947,27],[1942,18]]},"prefixes":["10.1261","10.1110","10.1101","10.14224"],"coverage":{"affiliations-current":0.0,"similarity-checking-current":1.0,"descriptions-current":0.0,"ror-ids-current":0.0,"funders-backfile":0.02186327805620916,"licenses-backfile":6.86543130511849E-5,"funders-current":0.007785932442904682,"affiliations-backfile":6.241301186471356E-6,"resource-links-backfile":6.241301186471356E-6,"orcids-backfile":0.5046279248297685,"update-policies-current":0.0,"ror-ids-backfile":0.0,"orcids-current":0.7916305784747231,"similarity-checking-backfile":0.9900451246075782,"references-backfile":0.8710859239934342,"descriptions-backfile":0.0,"award-numbers-backfile":0.02004081810975952,"update-policies-backfile":0.0,"licenses-current":0.0,"award-numbers-current":0.007184209326708301,"abstracts-backfile":0.8899783426848829,"resource-links-current":0.0,"abstracts-current":0.995605597848384,"references-current":0.9831973378310617},"prefix":[{"name":"Cold
|
163
|
+
Spring Harbor Laboratory","value":"10.1261"},{"name":"","value":"10.1110"},{"name":"Cold
|
164
|
+
Spring Harbor Laboratory","value":"10.1101"},{"name":"Cold Spring Harbor Laboratory
|
165
|
+
- CSHL Library & Archives","value":"10.14224"}],"id":246,"tokens":["cold","spring","harbor","laboratory"],"counts-type":{"all":{"report":20,"journal-article":39453,"journal":8,"posted-content":230433,"journal-issue":2},"backfile":{"report":20,"journal-article":37729,"posted-content":122472,"journal-issue":2},"current":{"journal-article":1724,"posted-content":107961}},"coverage-type":{"all":{"report":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.35,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.1,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1680564846126,"affiliations":2.534661495957215E-5,"abstracts":0.5465997516031734,"orcids":0.05890553316604567,"licenses":2.788127645552936E-4,"references":0.6122474843484653,"funders":0.1104352013788559,"similarity-checking":0.9600790814386739,"award-numbers":0.101361113223329,"ror-ids":0.0,"update-policies":0.0,"resource-links":2.534661495957215E-5,"descriptions":0.0},"journal":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.999132068757513,"orcids":0.7175708340385275,"licenses":0.0,"references":0.9688499477071426,"funders":0.0,"similarity-checking":1.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-issue":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}},"backfile":{"report":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.35,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.1,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1680564846126,"affiliations":2.65048106231281E-5,"abstracts":0.538392218187601,"orcids":0.03750430703172626,"licenses":2.915529168544091E-4,"references":0.6052373505791301,"funders":0.09284635161281773,"similarity-checking":0.9582549232685732,"award-numbers":0.08510694691086432,"ror-ids":0.0,"update-policies":0.0,"resource-links":2.65048106231281E-5,"descriptions":0.0},"posted-content":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.998448624991835,"orcids":0.6485645698608662,"licenses":0.0,"references":0.9531403096217911,"funders":0.0,"similarity-checking":1.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-issue":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}},"current":{"journal-article":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.7262180974477958,"orcids":0.527262180974478,"licenses":0.0,"references":0.765661252900232,"funders":0.4953596287703016,"similarity-checking":1.0,"award-numbers":0.45707656612529,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.9999073739591149,"orcids":0.7958522058891637,"licenses":0.0,"references":0.9866711127166292,"funders":0.0,"similarity-checking":1.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}}},"flags":{"deposits-abstracts-current":true,"deposits-orcids-current":true,"deposits":true,"deposits-affiliations-backfile":true,"deposits-update-policies-backfile":false,"deposits-similarity-checking-backfile":true,"deposits-award-numbers-current":true,"deposits-resource-links-current":false,"deposits-ror-ids-current":false,"deposits-articles":true,"deposits-affiliations-current":false,"deposits-funders-current":true,"deposits-references-backfile":true,"deposits-ror-ids-backfile":false,"deposits-abstracts-backfile":true,"deposits-licenses-backfile":true,"deposits-award-numbers-backfile":true,"deposits-descriptions-current":false,"deposits-references-current":true,"deposits-resource-links-backfile":true,"deposits-descriptions-backfile":false,"deposits-orcids-backfile":true,"deposits-funders-backfile":true,"deposits-update-policies-current":false,"deposits-similarity-checking-current":true,"deposits-licenses-current":false},"location":"Woodbury,
|
166
|
+
NY, United States","names":["Cold Spring Harbor Laboratory","","Cold Spring
|
167
|
+
Harbor Laboratory - CSHL Library & Archives"]}}'
|
168
|
+
recorded_at: Tue, 04 Apr 2023 19:19:29 GMT
|
169
|
+
- request:
|
170
|
+
method: get
|
171
|
+
uri: https://doi.org/ra/10.1101
|
172
|
+
body:
|
173
|
+
encoding: UTF-8
|
174
|
+
string: ''
|
175
|
+
headers:
|
176
|
+
Connection:
|
177
|
+
- close
|
178
|
+
Host:
|
179
|
+
- doi.org
|
180
|
+
User-Agent:
|
181
|
+
- http.rb/5.1.1
|
182
|
+
response:
|
183
|
+
status:
|
184
|
+
code: 200
|
185
|
+
message: OK
|
186
|
+
headers:
|
187
|
+
Date:
|
188
|
+
- Tue, 04 Apr 2023 19:19:29 GMT
|
189
|
+
Content-Type:
|
190
|
+
- application/json;charset=UTF-8
|
191
|
+
Transfer-Encoding:
|
192
|
+
- chunked
|
193
|
+
Connection:
|
194
|
+
- close
|
195
|
+
Permissions-Policy:
|
196
|
+
- interest-cohort=(),browsing-topics=()
|
197
|
+
Cf-Cache-Status:
|
198
|
+
- DYNAMIC
|
199
|
+
Report-To:
|
200
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=RKtZkzKNZf6E4LGEeVpF6YLfa2kejBhvQpoM7ikotfbqexOxvdIuBuugrTzwNAwpcaTfvJAip4xmzLf43N8l%2FYxvXHJ4eF2JywLQ5SLeswNXC14Heie%2FXdVP11erInsWKmpbIy0%3D"}],"group":"cf-nel","max_age":604800}'
|
201
|
+
Nel:
|
202
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
203
|
+
Strict-Transport-Security:
|
204
|
+
- max-age=31536000; includeSubDomains; preload
|
205
|
+
Server:
|
206
|
+
- cloudflare
|
207
|
+
Cf-Ray:
|
208
|
+
- 7b2be73b3974b7a8-AMS
|
209
|
+
Alt-Svc:
|
210
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
|
211
|
+
body:
|
212
|
+
encoding: UTF-8
|
213
|
+
string: |-
|
214
|
+
[
|
215
|
+
{
|
216
|
+
"DOI": "10.1101",
|
217
|
+
"RA": "Crossref"
|
218
|
+
}
|
219
|
+
]
|
220
|
+
recorded_at: Tue, 04 Apr 2023 19:19:29 GMT
|
221
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,221 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.crossref.org/works/10.1101/097196
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Connection:
|
11
|
+
- close
|
12
|
+
Host:
|
13
|
+
- api.crossref.org
|
14
|
+
User-Agent:
|
15
|
+
- http.rb/5.1.1
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Tue, 04 Apr 2023 19:19:24 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Access-Control-Expose-Headers:
|
28
|
+
- Link
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
31
|
+
Accept-Ranges, Cache-Control
|
32
|
+
Access-Control-Allow-Origin:
|
33
|
+
- "*"
|
34
|
+
Server:
|
35
|
+
- Jetty(9.4.40.v20210413)
|
36
|
+
X-Ratelimit-Limit:
|
37
|
+
- '50'
|
38
|
+
X-Ratelimit-Interval:
|
39
|
+
- 1s
|
40
|
+
X-Api-Pool:
|
41
|
+
- public
|
42
|
+
X-Rate-Limit-Limit:
|
43
|
+
- '50'
|
44
|
+
X-Rate-Limit-Interval:
|
45
|
+
- 1s
|
46
|
+
Permissions-Policy:
|
47
|
+
- interest-cohort=()
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"institution":[{"name":"bioRxiv"}],"indexed":{"date-parts":[[2023,1,13]],"date-time":"2023-01-13T05:44:11Z","timestamp":1673588651470},"posted":{"date-parts":[[2016,12,28]]},"group-title":"Scientific
|
53
|
+
Communication and Education","reference-count":26,"publisher":"Cold Spring
|
54
|
+
Harbor Laboratory","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2017,10,9]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>This
|
55
|
+
article presents a practical roadmap for scholarly data repositories to implement
|
56
|
+
data citation in accordance with the Joint Declaration of Data Citation Principles,
|
57
|
+
a synopsis and harmonization of the recommendations of major science policy
|
58
|
+
bodies. The roadmap was developed by the Repositories Expert Group, as part
|
59
|
+
of the Data Citation Implementation Pilot (DCIP) project, an initiative of
|
60
|
+
FORCE11.org and the NIH BioCADDIE (<jats:ext-link xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"
|
61
|
+
ext-link-type=\"uri\" xlink:href=\"https:\/\/biocaddie.org\">https:\/\/biocaddie.org<\/jats:ext-link>)
|
62
|
+
program. The roadmap makes 11 specific recommendations, grouped into three
|
63
|
+
phases of implementation: a) required steps needed to support the Joint Declaration
|
64
|
+
of Data Citation Principles, b) recommended steps that facilitate article\/data
|
65
|
+
publication workflows, and c) optional steps that further improve data citation
|
66
|
+
support provided by data repositories.<\/jats:p>","DOI":"10.1101\/097196","type":"posted-content","created":{"date-parts":[[2016,12,29]],"date-time":"2016-12-29T06:10:15Z","timestamp":1482991815000},"source":"Crossref","is-referenced-by-count":15,"title":["A
|
67
|
+
Data Citation Roadmap for Scholarly Data Repositories"],"prefix":"10.1101","author":[{"ORCID":"http:\/\/orcid.org\/0000-0003-1419-2405","authenticated-orcid":false,"given":"Martin","family":"Fenner","sequence":"first","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0003-1304-1939","authenticated-orcid":false,"given":"Merc\u00e8","family":"Crosas","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-5212-7052","authenticated-orcid":false,"given":"Jeffrey","family":"Grethe","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-9377-0797","authenticated-orcid":false,"given":"David","family":"Kennedy","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-8479-0262","authenticated-orcid":false,"given":"Henning","family":"Hermjakob","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-9853-5668","authenticated-orcid":false,"given":"Philippe","family":"Rocca-Serra","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-2188-2570","authenticated-orcid":false,"given":"Gustavo","family":"Durand","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-1731-5346","authenticated-orcid":false,"given":"Robin","family":"Berjon","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0001-8249-7388","authenticated-orcid":false,"given":"Sebastian","family":"Karcher","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0002-8406-3871","authenticated-orcid":false,"given":"Maryann","family":"Martone","sequence":"additional","affiliation":[]},{"ORCID":"http:\/\/orcid.org\/0000-0003-4060-7360","authenticated-orcid":false,"given":"Timothy","family":"Clark","sequence":"additional","affiliation":[]}],"member":"246","reference":[{"issue":"3","key":"2019071613381284000_097196v2.1","first-page":"43","article-title":"An
|
68
|
+
introduction to the joint principles for data citation","volume":"41","year":"2015","journal-title":"Bulletin
|
69
|
+
of the American \\ldots"},{"key":"2019071613381284000_097196v2.2","unstructured":"Altman,
|
70
|
+
M. , & Crosas, M. (2013). The Evolution of Data Citation: From Principles
|
71
|
+
to Implementation. IASSIST Quarterly. Retrieved from http:\/\/scholar.harvard.edu\/mercecrosas\/publications\/evolution-data-citation-principles-implementation"},{"key":"2019071613381284000_097196v2.3","unstructured":"BioSchemas.
|
72
|
+
(2016). Retrieved December 22, 2016, from http:\/\/bioschemas.org\/"},{"key":"2019071613381284000_097196v2.4","doi-asserted-by":"crossref","unstructured":"CODATA-ICSTI
|
73
|
+
Task Group on Data Citation Standards and Practice. (2013). Out of Cite, Out
|
74
|
+
of Mind: The Current State of Practice, Policy, and Technology for the Citation
|
75
|
+
of Data. Data Science Journal, 12(0). https:\/\/doi.org\/10.2481\/dsj.OSOM13-043","DOI":"10.2481\/dsj.OSOM13-043"},{"key":"2019071613381284000_097196v2.5","unstructured":"Data
|
76
|
+
Citation Synthesis Group. (2014). Data Citation Synthesis Group. (2014). Joint
|
77
|
+
Declaration of Data Citation Principles. Force11. https:\/\/doi.org\/10.25490\/a97f-egyk"},{"key":"2019071613381284000_097196v2.6","unstructured":"Data
|
78
|
+
Citations: A Primer. (2016). Retrieved December 22, 2016, from http:\/\/force11.github.io\/data-citation-primer\/"},{"key":"2019071613381284000_097196v2.7","unstructured":"DataCite
|
79
|
+
Metadata Working. (2016). DataCite Metadata Schema for the Publication and
|
80
|
+
Citation of Research Data v4.0. DataCite. Retrieved from http:\/\/search.datacite.org\/works\/10.5438\/0013"},{"key":"2019071613381284000_097196v2.8","unstructured":"DataCite
|
81
|
+
Search. (2016). Retrieved December 22, 2016, from https:\/\/search.datacite.org\/"},{"key":"2019071613381284000_097196v2.9","unstructured":"DataMed
|
82
|
+
| bioCADDIE DDI. (2016). Retrieved December 22, 2016, from https:\/\/datamed.org\/"},{"key":"2019071613381284000_097196v2.10","unstructured":"Dataset
|
83
|
+
- schema.org. (2016). Retrieved December 12, 2016, from https:\/\/schema.org\/Dataset"},{"key":"2019071613381284000_097196v2.11","unstructured":"Dublin
|
84
|
+
Core Metadata Element Set, Version 1.1. (2012). Retrieved December 22, 2016,
|
85
|
+
from http:\/\/dublincore.org\/documents\/2012\/06\/14\/dces\/"},{"key":"2019071613381284000_097196v2.12","unstructured":"ELIXIR
|
86
|
+
Data for life. (2016). Retrieved December 22, 2016, from https:\/\/www.elixir-europe.org\/"},{"key":"2019071613381284000_097196v2.13","unstructured":"Hammond,
|
87
|
+
T. , Hannay, T. , & Lund, B. (2004). RDF Site Summary 1.0 Modules: PRISM."},{"key":"2019071613381284000_097196v2.14","unstructured":"Publishing
|
88
|
+
Requirements for Industry Standard Metadata (PRISM). Retrieved from http:\/\/purl.org\/rss\/1.0\/modules\/prism\/"},{"key":"2019071613381284000_097196v2.15","doi-asserted-by":"crossref","unstructured":"Honor,
|
89
|
+
L. B. , Haselgrove, C. , Frazier, J. A. , & Kennedy, D. N. (2016). Data Citation
|
90
|
+
in Neuroimaging: Proposed Best Practices for Data Identification and Attribution.
|
91
|
+
Frontiers in Neuroinformatics, 10. https:\/\/doi.org\/10.3389\/fninf.2016.00034","DOI":"10.3389\/fninf.2016.00034"},{"key":"2019071613381284000_097196v2.16","unstructured":"King,
|
92
|
+
Gary , & Altman, Micah . (2007). A Proposed Standard for the Scholarly Citation
|
93
|
+
of Quantitative Data. https:\/\/doi.org\/10.1045\/march2007-altman"},{"key":"2019071613381284000_097196v2.17","doi-asserted-by":"publisher","DOI":"10.15252\/msb.20156658"},{"key":"2019071613381284000_097196v2.18","unstructured":"Prefix
|
94
|
+
Commons. (2016). Retrieved December 22, 2016, from https:\/\/github.com\/prefixcommons\/prefixes"},{"key":"2019071613381284000_097196v2.19","unstructured":"RFC
|
95
|
+
3986 - Uniform Resource Identifier (URI): Generic Syntax. (2005). Retrieved
|
96
|
+
December 22, 2016, from http:\/\/www.rfc-base.org\/rfc-3986.html"},{"key":"2019071613381284000_097196v2.20","doi-asserted-by":"crossref","unstructured":"Sansone,
|
97
|
+
A. , Gonzalez-Beltran, A. , & Rocca-Serra, P. (2016). DATS, the data tag suite
|
98
|
+
to enable discoverability of datasets. Scientific Data 4, Article number:
|
99
|
+
170059 (2017) https:\/\/doi.org\/10.1038\/sdata.2017.59","DOI":"10.1038\/sdata.2017.59"},{"key":"2019071613381284000_097196v2.21","doi-asserted-by":"crossref","first-page":"e86","DOI":"10.7717\/peerj-cs.86","article-title":"Software
|
100
|
+
citation principles","volume":"2","year":"2016","journal-title":"PeerJ Computer
|
101
|
+
Science"},{"key":"2019071613381284000_097196v2.22","doi-asserted-by":"crossref","first-page":"e1","DOI":"10.7717\/peerj-cs.1","article-title":"Achieving
|
102
|
+
human and machine accessibility of cited data in scholarly publications","volume":"1","year":"2015","journal-title":"PeerJ
|
103
|
+
Computer Science"},{"key":"2019071613381284000_097196v2.23","doi-asserted-by":"publisher","DOI":"10.1126\/science.aah6168"},{"key":"2019071613381284000_097196v2.24","unstructured":"Treloar,
|
104
|
+
A. (2011). Den Haag Persistent Object Identifier \u2013 Linked Open Data Manifesto.
|
105
|
+
Zenodo. https:\/\/doi.org\/10.5281\/zenodo.55666"},{"key":"2019071613381284000_097196v2.25","unstructured":"Uhlir,
|
106
|
+
P. E. (Ed.). (2012). For Attribution: Developing Data Attribution and Citation
|
107
|
+
Practices and Standards: Summary of an International Workshop. Retrieved from
|
108
|
+
https:\/\/www.nap.edu\/catalog\/13564\/for-attribution-developing-data-attribution-and-citation-practices-and-standards"},{"key":"2019071613381284000_097196v2.26","doi-asserted-by":"crossref","unstructured":"Van
|
109
|
+
de Sompel, H. , & Nelson, M. L. (2015). Reminiscing About 15 Years of Interoperability
|
110
|
+
Efforts. D-Lib Magazine, 21(11\/12). https:\/\/doi.org\/10.1045\/november2015-vandesompel","DOI":"10.1045\/november2015-vandesompel"}],"container-title":[],"original-title":[],"link":[{"URL":"https:\/\/syndication.highwire.org\/content\/doi\/10.1101\/097196","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2020,1,18]],"date-time":"2020-01-18T02:53:57Z","timestamp":1579316037000},"score":1,"resource":{"primary":{"URL":"http:\/\/biorxiv.org\/lookup\/doi\/10.1101\/097196"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2016,12,28]]},"references-count":26,"URL":"http:\/\/dx.doi.org\/10.1101\/097196","relation":{"is-preprint-of":[{"id-type":"doi","id":"10.1038\/s41597-019-0031-8","asserted-by":"subject"}]},"published":{"date-parts":[[2016,12,28]]},"subtype":"preprint"}}'
|
111
|
+
recorded_at: Tue, 04 Apr 2023 19:19:24 GMT
|
112
|
+
- request:
|
113
|
+
method: get
|
114
|
+
uri: https://api.crossref.org/members/246
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: ''
|
118
|
+
headers:
|
119
|
+
Connection:
|
120
|
+
- close
|
121
|
+
Host:
|
122
|
+
- api.crossref.org
|
123
|
+
User-Agent:
|
124
|
+
- http.rb/5.1.1
|
125
|
+
response:
|
126
|
+
status:
|
127
|
+
code: 200
|
128
|
+
message: OK
|
129
|
+
headers:
|
130
|
+
Date:
|
131
|
+
- Tue, 04 Apr 2023 19:19:25 GMT
|
132
|
+
Content-Type:
|
133
|
+
- application/json
|
134
|
+
Transfer-Encoding:
|
135
|
+
- chunked
|
136
|
+
Access-Control-Expose-Headers:
|
137
|
+
- Link
|
138
|
+
Access-Control-Allow-Headers:
|
139
|
+
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
|
140
|
+
Accept-Ranges, Cache-Control
|
141
|
+
Access-Control-Allow-Origin:
|
142
|
+
- "*"
|
143
|
+
Server:
|
144
|
+
- Jetty(9.4.40.v20210413)
|
145
|
+
X-Ratelimit-Limit:
|
146
|
+
- '50'
|
147
|
+
X-Ratelimit-Interval:
|
148
|
+
- 1s
|
149
|
+
X-Api-Pool:
|
150
|
+
- public
|
151
|
+
X-Rate-Limit-Limit:
|
152
|
+
- '50'
|
153
|
+
X-Rate-Limit-Interval:
|
154
|
+
- 1s
|
155
|
+
Permissions-Policy:
|
156
|
+
- interest-cohort=()
|
157
|
+
Connection:
|
158
|
+
- close
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: '{"status":"ok","message-type":"member","message-version":"1.0.0","message":{"last-status-check-time":1680564846126,"primary-name":"Cold
|
162
|
+
Spring Harbor Laboratory","counts":{"current-dois":109685,"backfile-dois":160223,"total-dois":269908},"breakdowns":{"dois-by-issued-year":[[2020,53638],[2021,50444],[2022,46898],[2019,31261],[2018,22041],[2017,12746],[2023,12343],[2016,6114],[2006,3590],[2015,3299],[2014,2295],[2009,1926],[2007,1796],[2010,1753],[2008,1646],[2013,1450],[2011,1418],[2012,1356],[2004,949],[2003,872],[2005,861],[2001,801],[2002,781],[2000,774],[1999,714],[1998,707],[1997,515],[1996,504],[1995,448],[1994,441],[1993,389],[1992,364],[1991,336],[1990,304],[1989,304],[1988,283],[1974,235],[1983,228],[1987,227],[1979,154],[1980,143],[1986,129],[1978,122],[1981,117],[1985,107],[1970,101],[1977,98],[1968,97],[1984,95],[1982,95],[1969,94],[1966,94],[1973,84],[1963,79],[1972,74],[1967,72],[1950,63],[1976,62],[1965,60],[1960,53],[1964,50],[1962,49],[1961,48],[1937,43],[1953,42],[1957,39],[1958,38],[1951,37],[1938,37],[1935,37],[1936,36],[1955,34],[1941,34],[1939,34],[1934,32],[1956,31],[1954,29],[1946,29],[1933,29],[1959,28],[1952,28],[1940,28],[1948,27],[1947,27],[1942,18]]},"prefixes":["10.1261","10.1110","10.1101","10.14224"],"coverage":{"affiliations-current":0.0,"similarity-checking-current":1.0,"descriptions-current":0.0,"ror-ids-current":0.0,"funders-backfile":0.02186327805620916,"licenses-backfile":6.86543130511849E-5,"funders-current":0.007785932442904682,"affiliations-backfile":6.241301186471356E-6,"resource-links-backfile":6.241301186471356E-6,"orcids-backfile":0.5046279248297685,"update-policies-current":0.0,"ror-ids-backfile":0.0,"orcids-current":0.7916305784747231,"similarity-checking-backfile":0.9900451246075782,"references-backfile":0.8710859239934342,"descriptions-backfile":0.0,"award-numbers-backfile":0.02004081810975952,"update-policies-backfile":0.0,"licenses-current":0.0,"award-numbers-current":0.007184209326708301,"abstracts-backfile":0.8899783426848829,"resource-links-current":0.0,"abstracts-current":0.995605597848384,"references-current":0.9831973378310617},"prefix":[{"name":"Cold
|
163
|
+
Spring Harbor Laboratory","value":"10.1261"},{"name":"","value":"10.1110"},{"name":"Cold
|
164
|
+
Spring Harbor Laboratory","value":"10.1101"},{"name":"Cold Spring Harbor Laboratory
|
165
|
+
- CSHL Library & Archives","value":"10.14224"}],"id":246,"tokens":["cold","spring","harbor","laboratory"],"counts-type":{"all":{"report":20,"journal-article":39453,"journal":8,"posted-content":230433,"journal-issue":2},"backfile":{"report":20,"journal-article":37729,"posted-content":122472,"journal-issue":2},"current":{"journal-article":1724,"posted-content":107961}},"coverage-type":{"all":{"report":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.35,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.1,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1680564846126,"affiliations":2.534661495957215E-5,"abstracts":0.5465997516031734,"orcids":0.05890553316604567,"licenses":2.788127645552936E-4,"references":0.6122474843484653,"funders":0.1104352013788559,"similarity-checking":0.9600790814386739,"award-numbers":0.101361113223329,"ror-ids":0.0,"update-policies":0.0,"resource-links":2.534661495957215E-5,"descriptions":0.0},"journal":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.999132068757513,"orcids":0.7175708340385275,"licenses":0.0,"references":0.9688499477071426,"funders":0.0,"similarity-checking":1.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-issue":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}},"backfile":{"report":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.35,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.1,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-article":{"last-status-check-time":1680564846126,"affiliations":2.65048106231281E-5,"abstracts":0.538392218187601,"orcids":0.03750430703172626,"licenses":2.915529168544091E-4,"references":0.6052373505791301,"funders":0.09284635161281773,"similarity-checking":0.9582549232685732,"award-numbers":0.08510694691086432,"ror-ids":0.0,"update-policies":0.0,"resource-links":2.65048106231281E-5,"descriptions":0.0},"posted-content":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.998448624991835,"orcids":0.6485645698608662,"licenses":0.0,"references":0.9531403096217911,"funders":0.0,"similarity-checking":1.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"journal-issue":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.0,"orcids":0.0,"licenses":0.0,"references":0.0,"funders":0.0,"similarity-checking":0.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}},"current":{"journal-article":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.7262180974477958,"orcids":0.527262180974478,"licenses":0.0,"references":0.765661252900232,"funders":0.4953596287703016,"similarity-checking":1.0,"award-numbers":0.45707656612529,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0},"posted-content":{"last-status-check-time":1680564846126,"affiliations":0.0,"abstracts":0.9999073739591149,"orcids":0.7958522058891637,"licenses":0.0,"references":0.9866711127166292,"funders":0.0,"similarity-checking":1.0,"award-numbers":0.0,"ror-ids":0.0,"update-policies":0.0,"resource-links":0.0,"descriptions":0.0}}},"flags":{"deposits-abstracts-current":true,"deposits-orcids-current":true,"deposits":true,"deposits-affiliations-backfile":true,"deposits-update-policies-backfile":false,"deposits-similarity-checking-backfile":true,"deposits-award-numbers-current":true,"deposits-resource-links-current":false,"deposits-ror-ids-current":false,"deposits-articles":true,"deposits-affiliations-current":false,"deposits-funders-current":true,"deposits-references-backfile":true,"deposits-ror-ids-backfile":false,"deposits-abstracts-backfile":true,"deposits-licenses-backfile":true,"deposits-award-numbers-backfile":true,"deposits-descriptions-current":false,"deposits-references-current":true,"deposits-resource-links-backfile":true,"deposits-descriptions-backfile":false,"deposits-orcids-backfile":true,"deposits-funders-backfile":true,"deposits-update-policies-current":false,"deposits-similarity-checking-current":true,"deposits-licenses-current":false},"location":"Woodbury,
|
166
|
+
NY, United States","names":["Cold Spring Harbor Laboratory","","Cold Spring
|
167
|
+
Harbor Laboratory - CSHL Library & Archives"]}}'
|
168
|
+
recorded_at: Tue, 04 Apr 2023 19:19:25 GMT
|
169
|
+
- request:
|
170
|
+
method: get
|
171
|
+
uri: https://doi.org/ra/10.1101
|
172
|
+
body:
|
173
|
+
encoding: UTF-8
|
174
|
+
string: ''
|
175
|
+
headers:
|
176
|
+
Connection:
|
177
|
+
- close
|
178
|
+
Host:
|
179
|
+
- doi.org
|
180
|
+
User-Agent:
|
181
|
+
- http.rb/5.1.1
|
182
|
+
response:
|
183
|
+
status:
|
184
|
+
code: 200
|
185
|
+
message: OK
|
186
|
+
headers:
|
187
|
+
Date:
|
188
|
+
- Tue, 04 Apr 2023 19:19:26 GMT
|
189
|
+
Content-Type:
|
190
|
+
- application/json;charset=UTF-8
|
191
|
+
Transfer-Encoding:
|
192
|
+
- chunked
|
193
|
+
Connection:
|
194
|
+
- close
|
195
|
+
Permissions-Policy:
|
196
|
+
- interest-cohort=(),browsing-topics=()
|
197
|
+
Cf-Cache-Status:
|
198
|
+
- DYNAMIC
|
199
|
+
Report-To:
|
200
|
+
- '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=eT%2Fn2IzjPlVn4VG%2BTvBG01ZqD%2F4pbOX1OHMoxFHBhFO9x8aGfqXeg9QiNaY8YYvM1NIIsjd8yCpWQtS01WZ9WFDU5mg31YSf21%2FV3RkCk5SZCJfr8Dq5UftybviF3zPGO9qE52o%3D"}],"group":"cf-nel","max_age":604800}'
|
201
|
+
Nel:
|
202
|
+
- '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}'
|
203
|
+
Strict-Transport-Security:
|
204
|
+
- max-age=31536000; includeSubDomains; preload
|
205
|
+
Server:
|
206
|
+
- cloudflare
|
207
|
+
Cf-Ray:
|
208
|
+
- 7b2be7235a4fb8d0-AMS
|
209
|
+
Alt-Svc:
|
210
|
+
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
|
211
|
+
body:
|
212
|
+
encoding: UTF-8
|
213
|
+
string: |-
|
214
|
+
[
|
215
|
+
{
|
216
|
+
"DOI": "10.1101",
|
217
|
+
"RA": "Crossref"
|
218
|
+
}
|
219
|
+
]
|
220
|
+
recorded_at: Tue, 04 Apr 2023 19:19:26 GMT
|
221
|
+
recorded_with: VCR 6.1.0
|
data/spec/utils_spec.rb
CHANGED
@@ -622,10 +622,30 @@ describe Commonmeta::Metadata, vcr: true do
|
|
622
622
|
expect(response).to eq(30_286_005_717_401_267_192_153_432_991)
|
623
623
|
end
|
624
624
|
|
625
|
-
it 'decode
|
625
|
+
it 'decode another doi' do
|
626
626
|
doi = 'https://doi.org/10.53731/rckvde5-tzg61kj-7zvc1'
|
627
627
|
response = subject.decode_doi(doi)
|
628
628
|
expect(response).to eq(30_198_793_950_250_854_133_601_922_433)
|
629
629
|
end
|
630
630
|
end
|
631
|
+
|
632
|
+
context 'random id' do
|
633
|
+
it 'encode id' do
|
634
|
+
response = subject.encode_container_id
|
635
|
+
expect(response).to match(%r{[a-z0-9]+})
|
636
|
+
expect(response.length).to eq(7)
|
637
|
+
end
|
638
|
+
|
639
|
+
it 'decode id' do
|
640
|
+
id= '4425y27'
|
641
|
+
response = subject.decode_container_id(id)
|
642
|
+
expect(response).to eq(4_431_476_807)
|
643
|
+
end
|
644
|
+
|
645
|
+
it 'decode another id' do
|
646
|
+
id = 'gr1by89'
|
647
|
+
response = subject.decode_container_id(id)
|
648
|
+
expect(response).to eq(17_986_615_561)
|
649
|
+
end
|
650
|
+
end
|
631
651
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonmeta-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,6 +30,26 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '8.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: addressable
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 2.8.1
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.8.2
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.8.1
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.8.2
|
33
53
|
- !ruby/object:Gem::Dependency
|
34
54
|
name: base32-url
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1198,8 +1218,12 @@ files:
|
|
1198
1218
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/parse_attributes/nil.yml
|
1199
1219
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/parse_attributes/string.yml
|
1200
1220
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_doi/decode_anothe_doi.yml
|
1221
|
+
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_doi/decode_another_doi.yml
|
1201
1222
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_doi/decode_doi.yml
|
1202
1223
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_doi/encode_doi.yml
|
1224
|
+
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_id/decode_another_id.yml
|
1225
|
+
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_id/decode_id.yml
|
1226
|
+
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/random_id/encode_id.yml
|
1203
1227
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/sanitize/onlies_keep_specific_tags.yml
|
1204
1228
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/sanitize/removes_a_tags.yml
|
1205
1229
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/spdx/hsh_to_spdx_id.yml
|
@@ -1371,7 +1395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1371
1395
|
- !ruby/object:Gem::Version
|
1372
1396
|
version: '0'
|
1373
1397
|
requirements: []
|
1374
|
-
rubygems_version: 3.4.
|
1398
|
+
rubygems_version: 3.4.10
|
1375
1399
|
signing_key:
|
1376
1400
|
specification_version: 4
|
1377
1401
|
summary: Ruby client library for conversion of scholarly metadata
|