@twin.org/standards-w3c-dcat 0.0.3-next.3 → 0.0.3-next.30

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 (102) hide show
  1. package/dist/es/dataTypes/dcatDataTypes.js +54 -57
  2. package/dist/es/dataTypes/dcatDataTypes.js.map +1 -1
  3. package/dist/es/index.js +10 -9
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/IDcatCatalog.js +2 -0
  6. package/dist/es/models/IDcatCatalog.js.map +1 -0
  7. package/dist/es/models/IDcatCatalogRecord.js +2 -0
  8. package/dist/es/models/IDcatCatalogRecord.js.map +1 -0
  9. package/dist/es/models/IDcatDataService.js +2 -0
  10. package/dist/es/models/IDcatDataService.js.map +1 -0
  11. package/dist/es/models/IDcatDataset.js +2 -0
  12. package/dist/es/models/IDcatDataset.js.map +1 -0
  13. package/dist/es/models/IDcatDatasetSeries.js +2 -0
  14. package/dist/es/models/IDcatDatasetSeries.js.map +1 -0
  15. package/dist/es/models/IDcatDistribution.js +2 -0
  16. package/dist/es/models/IDcatDistribution.js.map +1 -0
  17. package/dist/es/models/IDcatRelationship.js +2 -0
  18. package/dist/es/models/IDcatRelationship.js.map +1 -0
  19. package/dist/es/models/IDcatResource.js +2 -0
  20. package/dist/es/models/IDcatResource.js.map +1 -0
  21. package/dist/es/models/IDcatRole.js +2 -0
  22. package/dist/es/models/IDcatRole.js.map +1 -0
  23. package/dist/es/models/dcatClasses.js +9 -9
  24. package/dist/es/models/dcatClasses.js.map +1 -1
  25. package/dist/es/models/dcatContextType.js.map +1 -1
  26. package/dist/es/models/dcatContexts.js +16 -16
  27. package/dist/es/models/dcatContexts.js.map +1 -1
  28. package/dist/es/models/types/dcatContextFreeTypes.js +4 -0
  29. package/dist/es/models/types/dcatContextFreeTypes.js.map +1 -0
  30. package/dist/es/models/types/dcatPropertyTypes.js.map +1 -1
  31. package/dist/es/schemas/{Catalog.json → DcatCatalog.json} +37 -28
  32. package/dist/es/schemas/{CatalogRecord.json → DcatCatalogRecord.json} +16 -7
  33. package/dist/es/schemas/{DataService.json → DcatDataService.json} +20 -11
  34. package/dist/es/schemas/{Dataset.json → DcatDataset.json} +27 -18
  35. package/dist/es/schemas/{DatasetSeries.json → DcatDatasetSeries.json} +25 -16
  36. package/dist/es/schemas/{Distribution.json → DcatDistribution.json} +18 -9
  37. package/dist/es/schemas/{Relationship.json → DcatRelationship.json} +11 -3
  38. package/dist/es/schemas/{Resource.json → DcatResource.json} +24 -15
  39. package/dist/es/schemas/{Role.json → DcatRole.json} +12 -3
  40. package/dist/types/index.d.ts +10 -9
  41. package/dist/types/models/{ICatalog.d.ts → IDcatCatalog.d.ts} +10 -11
  42. package/dist/types/models/{ICatalogRecord.d.ts → IDcatCatalogRecord.d.ts} +9 -9
  43. package/dist/types/models/{IDataService.d.ts → IDcatDataService.d.ts} +2 -2
  44. package/dist/types/models/{IDataset.d.ts → IDcatDataset.d.ts} +9 -9
  45. package/dist/types/models/{IDatasetSeries.d.ts → IDcatDatasetSeries.d.ts} +2 -2
  46. package/dist/types/models/{IDistribution.d.ts → IDcatDistribution.d.ts} +10 -10
  47. package/dist/types/models/{IRelationship.d.ts → IDcatRelationship.d.ts} +3 -3
  48. package/dist/types/models/{IResource.d.ts → IDcatResource.d.ts} +14 -14
  49. package/dist/types/models/{IRole.d.ts → IDcatRole.d.ts} +4 -4
  50. package/dist/types/models/dcatClasses.d.ts +9 -9
  51. package/dist/types/models/dcatContextType.d.ts +6 -2
  52. package/dist/types/models/dcatContexts.d.ts +16 -16
  53. package/dist/types/models/types/dcatContextFreeTypes.d.ts +40 -0
  54. package/dist/types/models/types/dcatPropertyTypes.d.ts +6 -6
  55. package/docs/changelog.md +464 -0
  56. package/docs/reference/index.md +20 -15
  57. package/docs/reference/interfaces/{ICatalog.md → IDcatCatalog.md} +49 -49
  58. package/docs/reference/interfaces/{ICatalogRecord.md → IDcatCatalogRecord.md} +7 -7
  59. package/docs/reference/interfaces/{IDataService.md → IDcatDataService.md} +33 -33
  60. package/docs/reference/interfaces/{IDataset.md → IDcatDataset.md} +37 -37
  61. package/docs/reference/interfaces/{IDatasetSeries.md → IDcatDatasetSeries.md} +43 -43
  62. package/docs/reference/interfaces/{IDistribution.md → IDcatDistribution.md} +6 -6
  63. package/docs/reference/interfaces/{IRelationship.md → IDcatRelationship.md} +3 -3
  64. package/docs/reference/interfaces/{IResource.md → IDcatResource.md} +13 -13
  65. package/docs/reference/interfaces/{IRole.md → IDcatRole.md} +5 -5
  66. package/docs/reference/type-aliases/CatalogOptionalContext.md +11 -0
  67. package/docs/reference/type-aliases/CatalogRecordOptionalContext.md +11 -0
  68. package/docs/reference/type-aliases/DataServiceOptionalContext.md +11 -0
  69. package/docs/reference/type-aliases/DatasetOptionalContext.md +11 -0
  70. package/docs/reference/type-aliases/DcatContextType.md +10 -2
  71. package/docs/reference/type-aliases/{DateTimeType.md → DcatDateTimeType.md} +2 -2
  72. package/docs/reference/type-aliases/DcatDecimalType.md +5 -0
  73. package/docs/reference/type-aliases/DcatDurationType.md +5 -0
  74. package/docs/reference/type-aliases/DcatIriType.md +5 -0
  75. package/docs/reference/type-aliases/{LiteralType.md → DcatLiteralType.md} +2 -2
  76. package/docs/reference/type-aliases/DcatNonNegativeIntegerType.md +5 -0
  77. package/docs/reference/type-aliases/DistributionOptionalContext.md +11 -0
  78. package/docs/reference/variables/DcatClasses.md +9 -9
  79. package/docs/reference/variables/DcatContexts.md +22 -28
  80. package/package.json +5 -5
  81. package/dist/es/models/ICatalog.js +0 -2
  82. package/dist/es/models/ICatalog.js.map +0 -1
  83. package/dist/es/models/ICatalogRecord.js +0 -2
  84. package/dist/es/models/ICatalogRecord.js.map +0 -1
  85. package/dist/es/models/IDataService.js +0 -2
  86. package/dist/es/models/IDataService.js.map +0 -1
  87. package/dist/es/models/IDataset.js +0 -2
  88. package/dist/es/models/IDataset.js.map +0 -1
  89. package/dist/es/models/IDatasetSeries.js +0 -2
  90. package/dist/es/models/IDatasetSeries.js.map +0 -1
  91. package/dist/es/models/IDistribution.js +0 -2
  92. package/dist/es/models/IDistribution.js.map +0 -1
  93. package/dist/es/models/IRelationship.js +0 -2
  94. package/dist/es/models/IRelationship.js.map +0 -1
  95. package/dist/es/models/IResource.js +0 -2
  96. package/dist/es/models/IResource.js.map +0 -1
  97. package/dist/es/models/IRole.js +0 -2
  98. package/dist/es/models/IRole.js.map +0 -1
  99. package/docs/reference/type-aliases/DecimalType.md +0 -5
  100. package/docs/reference/type-aliases/DurationType.md +0 -5
  101. package/docs/reference/type-aliases/IriType.md +0 -5
  102. package/docs/reference/type-aliases/NonNegativeIntegerType.md +0 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schema.twindev.org/w3c-dcat/Catalog",
3
+ "$id": "https://schema.twindev.org/w3c-dcat/DcatCatalog",
4
4
  "description": "Interface for DCAT Catalog. A curated collection of metadata about resources (datasets and data services). Note: dcat:Catalog is a sub-class of dcat:Dataset per the W3C spec.",
5
5
  "type": "object",
6
6
  "properties": {
@@ -83,6 +83,14 @@
83
83
  "dcterms": {
84
84
  "type": "string",
85
85
  "const": "http://purl.org/dc/terms/"
86
+ },
87
+ "odrl": {
88
+ "type": "string",
89
+ "const": "http://www.w3.org/ns/odrl/2/"
90
+ },
91
+ "foaf": {
92
+ "type": "string",
93
+ "const": "https://xmlns.com/foaf/0.1/"
86
94
  }
87
95
  },
88
96
  "required": [
@@ -134,7 +142,7 @@
134
142
  },
135
143
  "@type": {
136
144
  "type": "string",
137
- "const": "Catalog",
145
+ "const": "dcat:Catalog",
138
146
  "description": "The type identifier, typically \"Catalog\"."
139
147
  },
140
148
  "@reverse": {
@@ -147,23 +155,23 @@
147
155
  "type": "string"
148
156
  },
149
157
  "dcterms:title": {
150
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
158
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
151
159
  "description": "A name given to the resource."
152
160
  },
153
161
  "dcterms:description": {
154
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
162
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
155
163
  "description": "A free-text account of the resource."
156
164
  },
157
165
  "dcterms:identifier": {
158
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
166
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
159
167
  "description": "A unique identifier of the resource."
160
168
  },
161
169
  "dcterms:issued": {
162
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
170
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
163
171
  "description": "Date of formal issuance (publication) of the resource."
164
172
  },
165
173
  "dcterms:modified": {
166
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
174
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
167
175
  "description": "Most recent date on which the resource was changed, updated or modified."
168
176
  },
169
177
  "dcterms:language": {
@@ -183,7 +191,7 @@
183
191
  "dcterms:publisher": {
184
192
  "anyOf": [
185
193
  {
186
- "$ref": "https://schema.twindev.org/w3c-dcat/Agent"
194
+ "$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent"
187
195
  },
188
196
  {
189
197
  "type": "string"
@@ -192,7 +200,7 @@
192
200
  "description": "An entity responsible for making the resource available."
193
201
  },
194
202
  "dcterms:creator": {
195
- "$ref": "https://schema.twindev.org/w3c-dcat/Agent",
203
+ "$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent",
196
204
  "description": "An entity responsible for producing the resource."
197
205
  },
198
206
  "dcterms:accessRights": {
@@ -258,7 +266,7 @@
258
266
  "description": "Relevant contact information for the catalogued resource."
259
267
  },
260
268
  "dcat:keyword": {
261
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
269
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
262
270
  "description": "A keyword or tag describing the resource."
263
271
  },
264
272
  "dcat:theme": {
@@ -292,7 +300,7 @@
292
300
  "dcat:qualifiedRelation": {
293
301
  "anyOf": [
294
302
  {
295
- "$ref": "https://schema.twindev.org/w3c-dcat/Relationship"
303
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatRelationship"
296
304
  },
297
305
  {
298
306
  "type": "string"
@@ -308,12 +316,12 @@
308
316
  "description": "Object or array data type",
309
317
  "anyOf": [
310
318
  {
311
- "$ref": "https://schema.twindev.org/w3c-dcat/Distribution"
319
+ "$ref": "https://schema.twindev.org/w3c-dcat/DistributionOptionalContext"
312
320
  },
313
321
  {
314
322
  "type": "array",
315
323
  "items": {
316
- "$ref": "https://schema.twindev.org/w3c-dcat/Distribution"
324
+ "$ref": "https://schema.twindev.org/w3c-dcat/DistributionOptionalContext"
317
325
  }
318
326
  }
319
327
  ]
@@ -349,15 +357,15 @@
349
357
  "description": "The geographical area covered by the dataset."
350
358
  },
351
359
  "dcat:spatialResolutionInMeters": {
352
- "$ref": "https://schema.twindev.org/w3c-dcat/DecimalType",
360
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDecimalType",
353
361
  "description": "Minimum spatial separation resolvable in a dataset, measured in meters."
354
362
  },
355
363
  "dcterms:temporal": {
356
- "$ref": "https://schema.twindev.org/w3c-dcat/PeriodOfTime",
364
+ "$ref": "https://schema.twindev.org/w3c-dcat/DublinCorePeriodOfTime",
357
365
  "description": "The temporal period that the dataset covers."
358
366
  },
359
367
  "dcat:temporalResolution": {
360
- "$ref": "https://schema.twindev.org/w3c-dcat/DurationType",
368
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDurationType",
361
369
  "description": "Minimum time period resolvable in the dataset."
362
370
  },
363
371
  "prov:wasGeneratedBy": {
@@ -379,12 +387,12 @@
379
387
  "description": "Object or array data type",
380
388
  "anyOf": [
381
389
  {
382
- "$ref": "https://schema.twindev.org/w3c-dcat/Resource"
390
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatResource"
383
391
  },
384
392
  {
385
393
  "type": "array",
386
394
  "items": {
387
- "$ref": "https://schema.twindev.org/w3c-dcat/Resource"
395
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatResource"
388
396
  }
389
397
  }
390
398
  ]
@@ -393,12 +401,12 @@
393
401
  "description": "Object or array data type",
394
402
  "anyOf": [
395
403
  {
396
- "$ref": "https://schema.twindev.org/w3c-dcat/Resource"
404
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatResource"
397
405
  },
398
406
  {
399
407
  "type": "array",
400
408
  "items": {
401
- "$ref": "https://schema.twindev.org/w3c-dcat/Resource"
409
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatResource"
402
410
  }
403
411
  }
404
412
  ]
@@ -407,12 +415,12 @@
407
415
  "description": "Object or array data type",
408
416
  "anyOf": [
409
417
  {
410
- "$ref": "https://schema.twindev.org/w3c-dcat/Dataset"
418
+ "$ref": "https://schema.twindev.org/w3c-dcat/DatasetOptionalContext"
411
419
  },
412
420
  {
413
421
  "type": "array",
414
422
  "items": {
415
- "$ref": "https://schema.twindev.org/w3c-dcat/Dataset"
423
+ "$ref": "https://schema.twindev.org/w3c-dcat/DatasetOptionalContext"
416
424
  }
417
425
  }
418
426
  ]
@@ -421,12 +429,12 @@
421
429
  "description": "Object or array data type",
422
430
  "anyOf": [
423
431
  {
424
- "$ref": "https://schema.twindev.org/w3c-dcat/DataService"
432
+ "$ref": "https://schema.twindev.org/w3c-dcat/DataServiceOptionalContext"
425
433
  },
426
434
  {
427
435
  "type": "array",
428
436
  "items": {
429
- "$ref": "https://schema.twindev.org/w3c-dcat/DataService"
437
+ "$ref": "https://schema.twindev.org/w3c-dcat/DataServiceOptionalContext"
430
438
  }
431
439
  }
432
440
  ]
@@ -435,12 +443,12 @@
435
443
  "description": "Object or array data type",
436
444
  "anyOf": [
437
445
  {
438
- "$ref": "https://schema.twindev.org/w3c-dcat/Catalog"
446
+ "$ref": "https://schema.twindev.org/w3c-dcat/CatalogOptionalContext"
439
447
  },
440
448
  {
441
449
  "type": "array",
442
450
  "items": {
443
- "$ref": "https://schema.twindev.org/w3c-dcat/Catalog"
451
+ "$ref": "https://schema.twindev.org/w3c-dcat/CatalogOptionalContext"
444
452
  }
445
453
  }
446
454
  ]
@@ -449,18 +457,19 @@
449
457
  "description": "Object or array data type",
450
458
  "anyOf": [
451
459
  {
452
- "$ref": "https://schema.twindev.org/w3c-dcat/CatalogRecord"
460
+ "$ref": "https://schema.twindev.org/w3c-dcat/CatalogRecordOptionalContext"
453
461
  },
454
462
  {
455
463
  "type": "array",
456
464
  "items": {
457
- "$ref": "https://schema.twindev.org/w3c-dcat/CatalogRecord"
465
+ "$ref": "https://schema.twindev.org/w3c-dcat/CatalogRecordOptionalContext"
458
466
  }
459
467
  }
460
468
  ]
461
469
  }
462
470
  },
463
471
  "required": [
472
+ "@context",
464
473
  "@type"
465
474
  ],
466
475
  "additionalProperties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schema.twindev.org/w3c-dcat/CatalogRecord",
3
+ "$id": "https://schema.twindev.org/w3c-dcat/DcatCatalogRecord",
4
4
  "description": "Interface for DCAT Catalog Record. A record in a catalog, describing the registration of a single dataset or data service.",
5
5
  "type": "object",
6
6
  "properties": {
@@ -83,6 +83,14 @@
83
83
  "dcterms": {
84
84
  "type": "string",
85
85
  "const": "http://purl.org/dc/terms/"
86
+ },
87
+ "odrl": {
88
+ "type": "string",
89
+ "const": "http://www.w3.org/ns/odrl/2/"
90
+ },
91
+ "foaf": {
92
+ "type": "string",
93
+ "const": "https://xmlns.com/foaf/0.1/"
86
94
  }
87
95
  },
88
96
  "required": [
@@ -134,7 +142,7 @@
134
142
  },
135
143
  "@type": {
136
144
  "type": "string",
137
- "const": "CatalogRecord",
145
+ "const": "dcat:CatalogRecord",
138
146
  "description": "The type identifier, typically \"CatalogRecord\"."
139
147
  },
140
148
  "@reverse": {
@@ -147,19 +155,19 @@
147
155
  "type": "string"
148
156
  },
149
157
  "dcterms:title": {
150
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
158
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
151
159
  "description": "A name given to the catalog record."
152
160
  },
153
161
  "dcterms:description": {
154
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
162
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
155
163
  "description": "A free-text account of the catalog record."
156
164
  },
157
165
  "dcterms:issued": {
158
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
166
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
159
167
  "description": "The date of listing of the catalog record in the catalog."
160
168
  },
161
169
  "dcterms:modified": {
162
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
170
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
163
171
  "description": "Most recent date on which the catalog record entry was changed or modified."
164
172
  },
165
173
  "dcterms:conformsTo": {
@@ -177,11 +185,12 @@
177
185
  ]
178
186
  },
179
187
  "foaf:primaryTopic": {
180
- "$ref": "https://schema.twindev.org/w3c-dcat/Resource",
188
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatResource",
181
189
  "description": "The dataset or data service described in the catalog record."
182
190
  }
183
191
  },
184
192
  "required": [
193
+ "@context",
185
194
  "@type"
186
195
  ],
187
196
  "additionalProperties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schema.twindev.org/w3c-dcat/DataService",
3
+ "$id": "https://schema.twindev.org/w3c-dcat/DcatDataService",
4
4
  "description": "Interface for DCAT Data Service. A collection of operations that provides access to one or more datasets or data processing functions.",
5
5
  "type": "object",
6
6
  "properties": {
@@ -83,6 +83,14 @@
83
83
  "dcterms": {
84
84
  "type": "string",
85
85
  "const": "http://purl.org/dc/terms/"
86
+ },
87
+ "odrl": {
88
+ "type": "string",
89
+ "const": "http://www.w3.org/ns/odrl/2/"
90
+ },
91
+ "foaf": {
92
+ "type": "string",
93
+ "const": "https://xmlns.com/foaf/0.1/"
86
94
  }
87
95
  },
88
96
  "required": [
@@ -134,7 +142,7 @@
134
142
  },
135
143
  "@type": {
136
144
  "type": "string",
137
- "const": "DataService",
145
+ "const": "dcat:DataService",
138
146
  "description": "The type identifier, typically \"DataService\"."
139
147
  },
140
148
  "@reverse": {
@@ -147,23 +155,23 @@
147
155
  "type": "string"
148
156
  },
149
157
  "dcterms:title": {
150
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
158
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
151
159
  "description": "A name given to the resource."
152
160
  },
153
161
  "dcterms:description": {
154
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
162
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
155
163
  "description": "A free-text account of the resource."
156
164
  },
157
165
  "dcterms:identifier": {
158
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
166
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
159
167
  "description": "A unique identifier of the resource."
160
168
  },
161
169
  "dcterms:issued": {
162
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
170
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
163
171
  "description": "Date of formal issuance (publication) of the resource."
164
172
  },
165
173
  "dcterms:modified": {
166
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
174
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
167
175
  "description": "Most recent date on which the resource was changed, updated or modified."
168
176
  },
169
177
  "dcterms:language": {
@@ -183,7 +191,7 @@
183
191
  "dcterms:publisher": {
184
192
  "anyOf": [
185
193
  {
186
- "$ref": "https://schema.twindev.org/w3c-dcat/Agent"
194
+ "$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent"
187
195
  },
188
196
  {
189
197
  "type": "string"
@@ -192,7 +200,7 @@
192
200
  "description": "An entity responsible for making the resource available."
193
201
  },
194
202
  "dcterms:creator": {
195
- "$ref": "https://schema.twindev.org/w3c-dcat/Agent",
203
+ "$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent",
196
204
  "description": "An entity responsible for producing the resource."
197
205
  },
198
206
  "dcterms:accessRights": {
@@ -258,7 +266,7 @@
258
266
  "description": "Relevant contact information for the catalogued resource."
259
267
  },
260
268
  "dcat:keyword": {
261
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
269
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
262
270
  "description": "A keyword or tag describing the resource."
263
271
  },
264
272
  "dcat:theme": {
@@ -292,7 +300,7 @@
292
300
  "dcat:qualifiedRelation": {
293
301
  "anyOf": [
294
302
  {
295
- "$ref": "https://schema.twindev.org/w3c-dcat/Relationship"
303
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatRelationship"
296
304
  },
297
305
  {
298
306
  "type": "string"
@@ -328,6 +336,7 @@
328
336
  }
329
337
  },
330
338
  "required": [
339
+ "@context",
331
340
  "@type"
332
341
  ],
333
342
  "additionalProperties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://schema.twindev.org/w3c-dcat/Dataset",
3
+ "$id": "https://schema.twindev.org/w3c-dcat/DcatDataset",
4
4
  "description": "Interface for DCAT Dataset. A collection of data, published or curated by a single agent, and available for access or download in one or more representations.",
5
5
  "type": "object",
6
6
  "properties": {
@@ -83,6 +83,14 @@
83
83
  "dcterms": {
84
84
  "type": "string",
85
85
  "const": "http://purl.org/dc/terms/"
86
+ },
87
+ "odrl": {
88
+ "type": "string",
89
+ "const": "http://www.w3.org/ns/odrl/2/"
90
+ },
91
+ "foaf": {
92
+ "type": "string",
93
+ "const": "https://xmlns.com/foaf/0.1/"
86
94
  }
87
95
  },
88
96
  "required": [
@@ -135,9 +143,9 @@
135
143
  "@type": {
136
144
  "type": "string",
137
145
  "enum": [
138
- "Dataset",
139
- "Catalog",
140
- "DatasetSeries"
146
+ "dcat:Dataset",
147
+ "dcat:Catalog",
148
+ "dcat:DatasetSeries"
141
149
  ],
142
150
  "description": "The type identifier, typically \"Dataset\". Can also be \"Catalog\" or \"DatasetSeries\" for subclasses."
143
151
  },
@@ -151,23 +159,23 @@
151
159
  "type": "string"
152
160
  },
153
161
  "dcterms:title": {
154
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
162
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
155
163
  "description": "A name given to the resource."
156
164
  },
157
165
  "dcterms:description": {
158
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
166
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
159
167
  "description": "A free-text account of the resource."
160
168
  },
161
169
  "dcterms:identifier": {
162
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
170
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
163
171
  "description": "A unique identifier of the resource."
164
172
  },
165
173
  "dcterms:issued": {
166
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
174
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
167
175
  "description": "Date of formal issuance (publication) of the resource."
168
176
  },
169
177
  "dcterms:modified": {
170
- "$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
178
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
171
179
  "description": "Most recent date on which the resource was changed, updated or modified."
172
180
  },
173
181
  "dcterms:language": {
@@ -187,7 +195,7 @@
187
195
  "dcterms:publisher": {
188
196
  "anyOf": [
189
197
  {
190
- "$ref": "https://schema.twindev.org/w3c-dcat/Agent"
198
+ "$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent"
191
199
  },
192
200
  {
193
201
  "type": "string"
@@ -196,7 +204,7 @@
196
204
  "description": "An entity responsible for making the resource available."
197
205
  },
198
206
  "dcterms:creator": {
199
- "$ref": "https://schema.twindev.org/w3c-dcat/Agent",
207
+ "$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent",
200
208
  "description": "An entity responsible for producing the resource."
201
209
  },
202
210
  "dcterms:accessRights": {
@@ -262,7 +270,7 @@
262
270
  "description": "Relevant contact information for the catalogued resource."
263
271
  },
264
272
  "dcat:keyword": {
265
- "$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
273
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
266
274
  "description": "A keyword or tag describing the resource."
267
275
  },
268
276
  "dcat:theme": {
@@ -296,7 +304,7 @@
296
304
  "dcat:qualifiedRelation": {
297
305
  "anyOf": [
298
306
  {
299
- "$ref": "https://schema.twindev.org/w3c-dcat/Relationship"
307
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatRelationship"
300
308
  },
301
309
  {
302
310
  "type": "string"
@@ -312,12 +320,12 @@
312
320
  "description": "Object or array data type",
313
321
  "anyOf": [
314
322
  {
315
- "$ref": "https://schema.twindev.org/w3c-dcat/Distribution"
323
+ "$ref": "https://schema.twindev.org/w3c-dcat/DistributionOptionalContext"
316
324
  },
317
325
  {
318
326
  "type": "array",
319
327
  "items": {
320
- "$ref": "https://schema.twindev.org/w3c-dcat/Distribution"
328
+ "$ref": "https://schema.twindev.org/w3c-dcat/DistributionOptionalContext"
321
329
  }
322
330
  }
323
331
  ]
@@ -353,15 +361,15 @@
353
361
  "description": "The geographical area covered by the dataset."
354
362
  },
355
363
  "dcat:spatialResolutionInMeters": {
356
- "$ref": "https://schema.twindev.org/w3c-dcat/DecimalType",
364
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDecimalType",
357
365
  "description": "Minimum spatial separation resolvable in a dataset, measured in meters."
358
366
  },
359
367
  "dcterms:temporal": {
360
- "$ref": "https://schema.twindev.org/w3c-dcat/PeriodOfTime",
368
+ "$ref": "https://schema.twindev.org/w3c-dcat/DublinCorePeriodOfTime",
361
369
  "description": "The temporal period that the dataset covers."
362
370
  },
363
371
  "dcat:temporalResolution": {
364
- "$ref": "https://schema.twindev.org/w3c-dcat/DurationType",
372
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDurationType",
365
373
  "description": "Minimum time period resolvable in the dataset."
366
374
  },
367
375
  "prov:wasGeneratedBy": {
@@ -377,6 +385,7 @@
377
385
  }
378
386
  },
379
387
  "required": [
388
+ "@context",
380
389
  "@type"
381
390
  ],
382
391
  "additionalProperties": {