commonmeta-py 0.23__py3-none-any.whl → 0.24__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. commonmeta/__init__.py +96 -0
  2. commonmeta/api_utils.py +77 -0
  3. commonmeta/author_utils.py +260 -0
  4. commonmeta/base_utils.py +121 -0
  5. commonmeta/cli.py +200 -0
  6. commonmeta/constants.py +587 -0
  7. commonmeta/crossref_utils.py +575 -0
  8. commonmeta/date_utils.py +193 -0
  9. commonmeta/doi_utils.py +273 -0
  10. commonmeta/metadata.py +320 -0
  11. commonmeta/readers/__init__.py +1 -0
  12. commonmeta/readers/cff_reader.py +199 -0
  13. commonmeta/readers/codemeta_reader.py +112 -0
  14. commonmeta/readers/commonmeta_reader.py +13 -0
  15. commonmeta/readers/crossref_reader.py +409 -0
  16. commonmeta/readers/crossref_xml_reader.py +505 -0
  17. commonmeta/readers/csl_reader.py +98 -0
  18. commonmeta/readers/datacite_reader.py +390 -0
  19. commonmeta/readers/datacite_xml_reader.py +359 -0
  20. commonmeta/readers/inveniordm_reader.py +218 -0
  21. commonmeta/readers/json_feed_reader.py +420 -0
  22. commonmeta/readers/kbase_reader.py +205 -0
  23. commonmeta/readers/ris_reader.py +103 -0
  24. commonmeta/readers/schema_org_reader.py +506 -0
  25. commonmeta/resources/cff_v1.2.0.json +1827 -0
  26. commonmeta/resources/commonmeta_v0.12.json +601 -0
  27. commonmeta/resources/commonmeta_v0.13.json +559 -0
  28. commonmeta/resources/commonmeta_v0.14.json +573 -0
  29. commonmeta/resources/crossref/AccessIndicators.xsd +47 -0
  30. commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3-elements.xsd +10130 -0
  31. commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3.xsd +48 -0
  32. commonmeta/resources/crossref/JATS-journalpublishing1-elements.xsd +8705 -0
  33. commonmeta/resources/crossref/JATS-journalpublishing1-mathml3-elements.xsd +8608 -0
  34. commonmeta/resources/crossref/JATS-journalpublishing1-mathml3.xsd +49 -0
  35. commonmeta/resources/crossref/JATS-journalpublishing1.xsd +6176 -0
  36. commonmeta/resources/crossref/clinicaltrials.xsd +61 -0
  37. commonmeta/resources/crossref/common5.3.1.xsd +1538 -0
  38. commonmeta/resources/crossref/crossref5.3.1.xsd +1949 -0
  39. commonmeta/resources/crossref/crossref_query_output3.0.xsd +1097 -0
  40. commonmeta/resources/crossref/fundref.xsd +49 -0
  41. commonmeta/resources/crossref/module-ali.xsd +39 -0
  42. commonmeta/resources/crossref/relations.xsd +444 -0
  43. commonmeta/resources/crossref-v0.2.json +60 -0
  44. commonmeta/resources/csl-data.json +538 -0
  45. commonmeta/resources/datacite-v4.5.json +829 -0
  46. commonmeta/resources/datacite-v4.5pr.json +608 -0
  47. commonmeta/resources/ietf-bcp-47.json +3025 -0
  48. commonmeta/resources/iso-8601.json +3182 -0
  49. commonmeta/resources/spdx/licenses.json +4851 -0
  50. commonmeta/resources/spdx-schema..json +903 -0
  51. commonmeta/resources/styles/apa.csl +1697 -0
  52. commonmeta/resources/styles/chicago-author-date.csl +684 -0
  53. commonmeta/resources/styles/harvard-cite-them-right.csl +321 -0
  54. commonmeta/resources/styles/ieee.csl +468 -0
  55. commonmeta/resources/styles/modern-language-association.csl +341 -0
  56. commonmeta/resources/styles/vancouver.csl +376 -0
  57. commonmeta/schema_utils.py +27 -0
  58. commonmeta/translators.py +47 -0
  59. commonmeta/utils.py +1108 -0
  60. commonmeta/writers/__init__.py +1 -0
  61. commonmeta/writers/bibtex_writer.py +149 -0
  62. commonmeta/writers/citation_writer.py +70 -0
  63. commonmeta/writers/commonmeta_writer.py +68 -0
  64. commonmeta/writers/crossref_xml_writer.py +17 -0
  65. commonmeta/writers/csl_writer.py +79 -0
  66. commonmeta/writers/datacite_writer.py +193 -0
  67. commonmeta/writers/inveniordm_writer.py +94 -0
  68. commonmeta/writers/ris_writer.py +58 -0
  69. commonmeta/writers/schema_org_writer.py +146 -0
  70. {commonmeta_py-0.23.dist-info → commonmeta_py-0.24.dist-info}/METADATA +56 -45
  71. commonmeta_py-0.24.dist-info/RECORD +75 -0
  72. {commonmeta_py-0.23.dist-info → commonmeta_py-0.24.dist-info}/WHEEL +1 -1
  73. commonmeta_py-0.24.dist-info/entry_points.txt +3 -0
  74. commonmeta_py-0.23.dist-info/RECORD +0 -5
  75. /commonmeta_py/__init__.py → /commonmeta/readers/bibtex_reader.py +0 -0
  76. {commonmeta_py-0.23.dist-info/licenses → commonmeta_py-0.24.dist-info}/LICENSE +0 -0
@@ -0,0 +1,573 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://commonmeta.org/commonmeta_v0.14.json",
4
+ "title": "Commonmeta v0.14",
5
+ "description": "JSON representation of the Commonmeta schema.",
6
+ "commonmeta": {
7
+ "anyOf": [
8
+ { "$ref": "#/definitions/commonmeta"
9
+ },
10
+ {
11
+ "type": "array",
12
+ "description": "An array of commonmeta objects.",
13
+ "items": { "$ref": "#/definitions/commonmeta" }
14
+ }
15
+ ]
16
+ },
17
+ "definitions": {
18
+ "affiliations": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "object",
22
+ "properties": {
23
+ "organization": { "$ref": "#/definitions/organization" }
24
+ }
25
+ }
26
+ },
27
+ "commonmeta": {
28
+ "description": "A commonmeta object.",
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "properties": {
32
+ "id": { "$ref": "#/definitions/id" },
33
+ "type": { "$ref": "#/definitions/type" },
34
+ "additionalType": {
35
+ "description": "The additional type of the resource.",
36
+ "type": "string"
37
+ },
38
+ "archiveLocations": {
39
+ "description": "The location where content is archived.",
40
+ "type": "array",
41
+ "items": {
42
+ "type": "string",
43
+ "enum": [
44
+ "CLOCKSS",
45
+ "LOCKSS",
46
+ "Portico",
47
+ "KB",
48
+ "Internet Archive",
49
+ "DWT"
50
+ ]
51
+ }
52
+ },
53
+ "container": {
54
+ "description": "The container of the resource.",
55
+ "type": "object",
56
+ "properties": {
57
+ "identifier": {
58
+ "description": "The identifier for the container.",
59
+ "type": "string"
60
+ },
61
+ "identifierType": {
62
+ "description": "The identifierType for the container.",
63
+ "type": "string"
64
+ },
65
+ "type": {
66
+ "description": "The type of the container.",
67
+ "type": "string",
68
+ "enum": [
69
+ "Book",
70
+ "BookSeries",
71
+ "Journal",
72
+ "Proceedings",
73
+ "ProceedingsSeries",
74
+ "Repository",
75
+ "DataRepository",
76
+ "Periodical",
77
+ "Series"
78
+ ]
79
+ },
80
+ "title": {
81
+ "description": "The title of the container.",
82
+ "type": "string"
83
+ },
84
+ "firstPage": {
85
+ "description": "The first page of the resource.",
86
+ "type": "string"
87
+ },
88
+ "lastPage": {
89
+ "description": "The last page of the resource.",
90
+ "type": "string"
91
+ },
92
+ "volume": {
93
+ "description": "The volume of the resource.",
94
+ "type": "string"
95
+ },
96
+ "issue": {
97
+ "description": "The issue of the resource.",
98
+ "type": "string"
99
+ }
100
+ }
101
+ },
102
+ "contributors": {
103
+ "description": "The contributors to the resource.",
104
+ "type": "array",
105
+ "items": {
106
+ "type": "object",
107
+ "properties": {
108
+ "organization": { "$ref": "#/definitions/organization" },
109
+ "person": { "$ref": "#/definitions/person" },
110
+ "contributorRoles": {
111
+ "description": "List of roles assumed by the contributor when working on the resource.",
112
+ "items": {
113
+ "$ref": "#/definitions/contributorRole"
114
+ },
115
+ "type": "array"
116
+ }
117
+ }
118
+ },
119
+ "minItems": 1
120
+ },
121
+ "date": {
122
+ "description": "The dates for the resource.",
123
+ "$comment": "The date fields are not required. Dates should be formatted as ISO 8601 dates.",
124
+ "type": "object",
125
+ "properties": {
126
+ "created": {
127
+ "description": "The date the resource was created.",
128
+ "type": "string"
129
+ },
130
+ "submitted": {
131
+ "description": "The date the resource was submitted.",
132
+ "type": "string"
133
+ },
134
+ "accepted": {
135
+ "description": "The date the resource was accepted.",
136
+ "type": "string"
137
+ },
138
+ "published": {
139
+ "description": "The date the resource was published.",
140
+ "type": "string"
141
+ },
142
+ "updated": {
143
+ "description": "The date the resource was updated.",
144
+ "type": "string"
145
+ },
146
+ "accessed": {
147
+ "description": "The date the resource was accessed.",
148
+ "type": "string"
149
+ },
150
+ "available": {
151
+ "description": "The date the resource was made available.",
152
+ "type": "string"
153
+ },
154
+ "withdrawn": {
155
+ "description": "The date the resource was withdrawn.",
156
+ "type": "string"
157
+ }
158
+ }
159
+ },
160
+ "descriptions": {
161
+ "description": "The descriptions of the resource.",
162
+ "type": "array",
163
+ "items": {
164
+ "type": "object",
165
+ "properties": {
166
+ "description": {
167
+ "description": "The description of the resource.",
168
+ "type": "string"
169
+ },
170
+ "type": {
171
+ "description": "The type of the description.",
172
+ "type": "string",
173
+ "enum": ["Abstract", "Summary", "Methods", "TechnicalInfo", "Other"]
174
+ },
175
+ "language": {
176
+ "description": "The language of the title. Use one of the language codes from the IETF BCP 47 standard.",
177
+ "type": "string"
178
+ }
179
+ },
180
+ "required": ["description"]
181
+ }
182
+ },
183
+ "files": {
184
+ "description": "The downloadable files for the resource.",
185
+ "type": "array",
186
+ "items": {
187
+ "type": "object",
188
+ "properties": {
189
+ "bucket": { "type": "string" },
190
+ "key": { "type": "string" },
191
+ "checksum": { "type": "string" },
192
+ "url": { "type": "string", "format": "uri" },
193
+ "size": { "type": "integer" },
194
+ "mimeType": { "type": "string" }
195
+ },
196
+ "required": ["url"]
197
+ },
198
+ "minItems": 1
199
+ },
200
+ "fundingReferences": {
201
+ "description": "The funding references for the resource.",
202
+ "type": "array",
203
+ "items": {
204
+ "type": "object",
205
+ "properties": {
206
+ "funderIdentifier": { "type": "string" },
207
+ "funderIdentifierType": {
208
+ "type": "string",
209
+ "enum": [
210
+ "Crossref Funder ID",
211
+ "ROR",
212
+ "GRID",
213
+ "ISNI",
214
+ "Ringgold",
215
+ "Other"
216
+ ]
217
+ },
218
+ "funderName": { "type": "string" },
219
+ "awardNumber": { "type": "string" },
220
+ "awardUri": { "type": "string", "format": "uri" }
221
+ },
222
+ "required": ["funderName"]
223
+ }
224
+ },
225
+ "geoLocations": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "object",
229
+ "properties": {
230
+ "geoLocationPlace": { "type": "string" },
231
+ "geoLocationPoint": { "$ref": "#/definitions/geoLocationPoint" },
232
+ "geoLocationBox": { "$ref": "#/definitions/geoLocationBox" },
233
+ "geoLocationPolygons": {
234
+ "type": "array",
235
+ "items": {
236
+ "type": "object",
237
+ "properties": {
238
+ "polygonPoints": {
239
+ "type": "array",
240
+ "items": { "$ref": "#/definitions/geoLocationPoint" },
241
+ "minItems": 4
242
+ },
243
+ "inPolygonPoint": { "$ref": "#/definitions/geoLocationPoint" }
244
+ },
245
+ "required": ["polygonPoints"]
246
+ },
247
+ "uniqueItems": true
248
+ }
249
+ }
250
+ },
251
+ "uniqueItems": true
252
+ },
253
+ "identifiers": {
254
+ "description": "Identifiers for the resource, including the id.",
255
+ "type": "array",
256
+ "items": {
257
+ "type": "object",
258
+ "properties": {
259
+ "identifier": { "type": "string" },
260
+ "identifierType": {
261
+ "type": "string",
262
+ "enum": [
263
+ "ARK",
264
+ "arXiv",
265
+ "Bibcode",
266
+ "DOI",
267
+ "Handle",
268
+ "ISBN",
269
+ "ISSN",
270
+ "PMID",
271
+ "PMCID",
272
+ "PURL",
273
+ "URL",
274
+ "URN",
275
+ "UUID",
276
+ "Other"
277
+ ]
278
+ }
279
+ },
280
+ "required": ["identifier", "identifierType"]
281
+ }
282
+ },
283
+ "language": {
284
+ "description": "The language of the resource. Use one of the language codes from the IETF BCP 47 standard.",
285
+ "type": "string"
286
+ },
287
+ "license": {
288
+ "description": "The license for the resource. Use one of the SPDX license identifiers.",
289
+ "type": "object",
290
+ "properties": {
291
+ "id": { "type": "string" },
292
+ "url": { "type": "string", "format": "uri" }
293
+ }
294
+ },
295
+ "provider": {
296
+ "description": "The provider of the resource. This can be a DOI registration agency or a repository.",
297
+ "type": "string",
298
+ "enum": ["Crossref", "DataCite", "GitHub", "JaLC", "KISTI", "mEDRA", "OP"]
299
+ },
300
+ "publisher": {
301
+ "description": "The publisher of the resource.",
302
+ "type": "object",
303
+ "properties": {
304
+ "organization": { "$ref": "#/definitions/organization" }
305
+ }
306
+ },
307
+ "relations": {
308
+ "description": "Other resolvable persistent unique IDs related to the resource.",
309
+ "type": "array",
310
+ "items": {
311
+ "type": "object",
312
+ "properties": {
313
+ "id": {
314
+ "type": "string",
315
+ "format": "uri"
316
+ },
317
+ "type": {
318
+ "type": "string",
319
+ "enum": [
320
+ "IsNewVersionOf",
321
+ "IsPreviousVersionOf",
322
+ "IsVersionOf",
323
+ "HasVersion",
324
+ "IsPartOf",
325
+ "HasPart",
326
+ "IsVariantFormOf",
327
+ "IsOriginalFormOf",
328
+ "IsIdenticalTo",
329
+ "IsTranslationOf",
330
+ "HasTranslation",
331
+ "IsReviewedBy",
332
+ "Reviews",
333
+ "HasReview",
334
+ "IsPreprintOf",
335
+ "HasPreprint",
336
+ "IsSupplementTo",
337
+ "IsSupplementedBy"
338
+ ]
339
+ }
340
+ },
341
+ "required": ["id", "type"]
342
+ },
343
+ "minItems": 1
344
+ },
345
+ "references": {
346
+ "type": "array",
347
+ "items": {
348
+ "type": "object",
349
+ "properties": {
350
+ "id": { "$ref": "#/definitions/id" },
351
+ "type": { "$ref": "#/definitions/type" },
352
+ "key": { "type": "string" },
353
+ "contributor": { "type": "string" },
354
+ "title": { "type": "string" },
355
+ "publisher": { "type": "string" },
356
+ "publicationYear": { "type": "string" },
357
+ "volume": { "type": "string" },
358
+ "issue": { "type": "string" },
359
+ "firstPage": { "type": "string" },
360
+ "lastPage": { "type": "string" },
361
+ "containerTitle": { "type": "string" },
362
+ "edition": { "type": "string" },
363
+ "unstructured": { "type": "string" }
364
+ },
365
+ "required": ["key"]
366
+ }
367
+ },
368
+ "subjects": {
369
+ "type": "array",
370
+ "items": {
371
+ "type": "object",
372
+ "properties": {
373
+ "subject": { "type": "string" },
374
+ "language": {
375
+ "description": "The language of the subject. Use one of the language codes from the IETF BCP 47 standard.",
376
+ "type": "string"
377
+ }
378
+ },
379
+ "required": ["subject"]
380
+ }
381
+ },
382
+ "titles": {
383
+ "description": "The titles of the resource.",
384
+ "type": "array",
385
+ "items": {
386
+ "type": "object",
387
+ "properties": {
388
+ "title": {
389
+ "description": "The title of the resource.",
390
+ "type": "string"
391
+ },
392
+ "type": {
393
+ "description": "The type of the title.",
394
+ "type": "string",
395
+ "enum": ["AlternativeTitle", "Subtitle", "TranslatedTitle"]
396
+ },
397
+ "language": {
398
+ "description": "The language of the title. Use one of the language codes from the IETF BCP 47 standard.",
399
+ "type": "string"
400
+ }
401
+ },
402
+ "required": ["title"]
403
+ }
404
+ },
405
+ "url": {
406
+ "description": "The URL of the resource.",
407
+ "type": "string",
408
+ "format": "uri"
409
+ },
410
+ "version": {
411
+ "description": "The version of the resource.",
412
+ "type": "string"
413
+ }
414
+ },
415
+ "required": ["id", "type"]
416
+ },
417
+ "contributorRole": {
418
+ "description": "The type of contribution made by a contributor",
419
+ "enum": [
420
+ "Author",
421
+ "Editor",
422
+ "Chair",
423
+ "Reviewer",
424
+ "ReviewAssistant",
425
+ "StatsReviewer",
426
+ "ReviewerExternal",
427
+ "Reader",
428
+ "Translator",
429
+ "ContactPerson",
430
+ "DataCollector",
431
+ "DataManager",
432
+ "Distributor",
433
+ "HostingInstitution",
434
+ "Producer",
435
+ "ProjectLeader",
436
+ "ProjectManager",
437
+ "ProjectMember",
438
+ "RegistrationAgency",
439
+ "RegistrationAuthority",
440
+ "RelatedPerson",
441
+ "ResearchGroup",
442
+ "RightsHolder",
443
+ "Researcher",
444
+ "Sponsor",
445
+ "WorkPackageLeader",
446
+ "Conceptualization",
447
+ "DataCuration",
448
+ "FormalAnalysis",
449
+ "FundingAcquisition",
450
+ "Investigation",
451
+ "Methodology",
452
+ "ProjectAdministration",
453
+ "Resources",
454
+ "Software",
455
+ "Supervision",
456
+ "Validation",
457
+ "Visualization",
458
+ "WritingOriginalDraft",
459
+ "WritingReviewEditing",
460
+ "Maintainer",
461
+ "Other"
462
+ ],
463
+ "type": "string"
464
+ },
465
+ "geoLocationBox": {
466
+ "type": "object",
467
+ "properties": {
468
+ "westBoundLongitude": { "$ref": "#/definitions/longitude" },
469
+ "eastBoundLongitude": { "$ref": "#/definitions/longitude" },
470
+ "southBoundLatitude": { "$ref": "#/definitions/latitude" },
471
+ "northBoundLatitude": { "$ref": "#/definitions/latitude" }
472
+ }
473
+ },
474
+ "geoLocationPoint": {
475
+ "type": "object",
476
+ "properties": {
477
+ "pointLongitude": { "$ref": "#/definitions/longitude" },
478
+ "pointLatitude": { "$ref": "#/definitions/latitude" }
479
+ }
480
+ },
481
+ "id": {
482
+ "description": "The unique identifier for the resource.",
483
+ "type": "string",
484
+ "format": "uri"
485
+ },
486
+ "latitude": {
487
+ "type": "number",
488
+ "minimum": -90,
489
+ "maximum": 90
490
+ },
491
+ "longitude": {
492
+ "type": "number",
493
+ "minimum": -180,
494
+ "maximum": 180
495
+ },
496
+ "organization": {
497
+ "type": "object",
498
+ "properties": {
499
+ "id": {
500
+ "description": "The unique identifier for the organization.",
501
+ "type": "string",
502
+ "format": "uri"
503
+ },
504
+ "type": { "type": "string", "const": "Organization" },
505
+ "name": {
506
+ "description": "The name of the organization.",
507
+ "type": "string"
508
+ }
509
+ },
510
+ "required": ["name", "type"]
511
+ },
512
+ "person": {
513
+ "type": "object",
514
+ "properties": {
515
+ "id": { "type": "string", "format": "uri" },
516
+ "type": { "type": "string", "const": "Person" },
517
+ "givenName": {
518
+ "description": "The given name of the person.",
519
+ "type": "string"
520
+ },
521
+ "familyName": {
522
+ "description": "The family name of the person.",
523
+ "type": "string"
524
+ },
525
+ "affiliation": { "$ref": "#/definitions/affiliations" }
526
+ },
527
+ "required": ["familyName", "type"]
528
+ },
529
+ "type": {
530
+ "type": "string",
531
+ "enum": [
532
+ "Article",
533
+ "Audiovisual",
534
+ "BookChapter",
535
+ "BookPart",
536
+ "BookSection",
537
+ "BookSeries",
538
+ "BookSet",
539
+ "Book",
540
+ "Collection",
541
+ "Component",
542
+ "Database",
543
+ "Dataset",
544
+ "Dissertation",
545
+ "Document",
546
+ "Entry",
547
+ "Event",
548
+ "Grant",
549
+ "Image",
550
+ "Instrument",
551
+ "InteractiveResource",
552
+ "JournalArticle",
553
+ "JournalIssue",
554
+ "JournalVolume",
555
+ "Journal",
556
+ "PeerReview",
557
+ "PhysicalObject",
558
+ "Presentation",
559
+ "ProceedingsArticle",
560
+ "ProceedingsSeries",
561
+ "Proceedings",
562
+ "ReportComponent",
563
+ "ReportSeries",
564
+ "Report",
565
+ "Software",
566
+ "Standard",
567
+ "StudyRegistration",
568
+ "WebPage",
569
+ "Other"
570
+ ]
571
+ }
572
+ }
573
+ }
@@ -0,0 +1,47 @@
1
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.crossref.org/AccessIndicators.xsd" targetNamespace="http://www.crossref.org/AccessIndicators.xsd">
2
+ <xsd:annotation>
3
+ <xsd:documentation> Version: 1.1 This is CrossRef&apos;s schema for defining the applicable licenses for a given item. This schema was available and in use prior to the completion of the NISO working group Access and License Indicators (http://www.niso.org/publications/rp/rp-22-2015). That effort produced a schema (http://www.niso.org/schemas/ali/1.0/ali.xsd) that extended the CrossRef definition but at the same time omitted necessary CrossRef features. This schema will continue as the basis for CrossRef metadata deposits, but will incorporate the NISO work where possible. Change history: 2/23/15 CSK added Niso free_to_read element 4/21/15 CSK added start and end attributes to the free-to-read element as in the Niso ALI schema but will make both attributes optional. </xsd:documentation>
4
+ </xsd:annotation>
5
+ <xsd:element name="program">
6
+ <xsd:annotation>
7
+ <xsd:documentation>Accommodates deposit of license metadata. The license_ref value will be a URL. Values for the &quot;applies_to&quot; attribute are vor (version of record),am (accepted manuscript), and tdm (text and data mining).</xsd:documentation>
8
+ </xsd:annotation>
9
+ <xsd:complexType>
10
+ <xsd:sequence>
11
+ <xsd:element ref="free_to_read" minOccurs="0"/>
12
+ <xsd:element ref="license_ref" minOccurs="0" maxOccurs="unbounded"/>
13
+ </xsd:sequence>
14
+ <xsd:attribute name="name" type="xsd:string" fixed="AccessIndicators"/>
15
+ </xsd:complexType>
16
+ </xsd:element>
17
+ <xsd:element name="license_ref">
18
+ <xsd:complexType>
19
+ <xsd:simpleContent>
20
+ <xsd:extension base="license_ref_t">
21
+ <xsd:attribute name="start_date" type="xsd:date" use="optional"/>
22
+ <xsd:attribute name="applies_to" use="optional">
23
+ <xsd:simpleType>
24
+ <xsd:restriction base="xsd:NMTOKEN">
25
+ <xsd:enumeration value="vor"/>
26
+ <xsd:enumeration value="am"/>
27
+ <xsd:enumeration value="tdm"/>
28
+ </xsd:restriction>
29
+ </xsd:simpleType>
30
+ </xsd:attribute>
31
+ </xsd:extension>
32
+ </xsd:simpleContent>
33
+ </xsd:complexType>
34
+ </xsd:element>
35
+ <xsd:simpleType name="license_ref_t">
36
+ <xsd:restriction base="xsd:anyURI">
37
+ <xsd:minLength value="10"/>
38
+ <xsd:pattern value="([hH][tT][tT][pP]|[hH][tT][tT][pP][sS]|[fF][tT][pP])://.*"/>
39
+ </xsd:restriction>
40
+ </xsd:simpleType>
41
+ <xsd:element name="free_to_read">
42
+ <xsd:complexType>
43
+ <xsd:attribute name="end_date" use="optional" type="xsd:date"/>
44
+ <xsd:attribute name="start_date" use="optional" type="xsd:date"/>
45
+ </xsd:complexType>
46
+ </xsd:element>
47
+ </xsd:schema>