@twin.org/standards-w3c-dcat 0.0.3-next.6 → 0.0.3-next.7
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.
- package/dist/es/dataTypes/dcatDataTypes.js +9 -9
- package/dist/es/dataTypes/dcatDataTypes.js.map +1 -1
- package/dist/es/index.js +9 -9
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IDcatCatalog.js +2 -0
- package/dist/es/models/IDcatCatalog.js.map +1 -0
- package/dist/es/models/IDcatCatalogRecord.js +2 -0
- package/dist/es/models/IDcatCatalogRecord.js.map +1 -0
- package/dist/es/models/IDcatDataService.js +2 -0
- package/dist/es/models/IDcatDataService.js.map +1 -0
- package/dist/es/models/IDcatDataset.js +2 -0
- package/dist/es/models/IDcatDataset.js.map +1 -0
- package/dist/es/models/IDcatDatasetSeries.js +2 -0
- package/dist/es/models/IDcatDatasetSeries.js.map +1 -0
- package/dist/es/models/IDcatDistribution.js +2 -0
- package/dist/es/models/IDcatDistribution.js.map +1 -0
- package/dist/es/models/IDcatRelationship.js +2 -0
- package/dist/es/models/IDcatRelationship.js.map +1 -0
- package/dist/es/models/IDcatResource.js +2 -0
- package/dist/es/models/IDcatResource.js.map +1 -0
- package/dist/es/models/IDcatRole.js +2 -0
- package/dist/es/models/IDcatRole.js.map +1 -0
- package/dist/es/models/types/dcatPropertyTypes.js.map +1 -1
- package/dist/es/schemas/{Catalog.json → DcatCatalog.json} +27 -27
- package/dist/es/schemas/{CatalogRecord.json → DcatCatalogRecord.json} +6 -6
- package/dist/es/schemas/{DataService.json → DcatDataService.json} +10 -10
- package/dist/es/schemas/{Dataset.json → DcatDataset.json} +15 -15
- package/dist/es/schemas/{DatasetSeries.json → DcatDatasetSeries.json} +15 -15
- package/dist/es/schemas/{Distribution.json → DcatDistribution.json} +8 -8
- package/dist/es/schemas/{Relationship.json → DcatRelationship.json} +2 -2
- package/dist/es/schemas/{Resource.json → DcatResource.json} +10 -10
- package/dist/es/schemas/{Role.json → DcatRole.json} +2 -2
- package/dist/types/index.d.ts +9 -9
- package/dist/types/models/{ICatalog.d.ts → IDcatCatalog.d.ts} +11 -11
- package/dist/types/models/{ICatalogRecord.d.ts → IDcatCatalogRecord.d.ts} +8 -8
- package/dist/types/models/{IDataService.d.ts → IDcatDataService.d.ts} +2 -2
- package/dist/types/models/{IDataset.d.ts → IDcatDataset.d.ts} +9 -9
- package/dist/types/models/{IDatasetSeries.d.ts → IDcatDatasetSeries.d.ts} +2 -2
- package/dist/types/models/{IDistribution.d.ts → IDcatDistribution.d.ts} +9 -9
- package/dist/types/models/{IRelationship.d.ts → IDcatRelationship.d.ts} +3 -3
- package/dist/types/models/{IResource.d.ts → IDcatResource.d.ts} +13 -13
- package/dist/types/models/{IRole.d.ts → IDcatRole.d.ts} +3 -3
- package/dist/types/models/types/dcatPropertyTypes.d.ts +6 -6
- package/docs/changelog.md +17 -0
- package/docs/reference/index.md +15 -15
- package/docs/reference/interfaces/{ICatalog.md → IDcatCatalog.md} +46 -46
- package/docs/reference/interfaces/{ICatalogRecord.md → IDcatCatalogRecord.md} +4 -4
- package/docs/reference/interfaces/{IDataService.md → IDcatDataService.md} +30 -30
- package/docs/reference/interfaces/{IDataset.md → IDcatDataset.md} +34 -34
- package/docs/reference/interfaces/{IDatasetSeries.md → IDcatDatasetSeries.md} +40 -40
- package/docs/reference/interfaces/{IDistribution.md → IDcatDistribution.md} +3 -3
- package/docs/reference/interfaces/{IRelationship.md → IDcatRelationship.md} +2 -2
- package/docs/reference/interfaces/{IResource.md → IDcatResource.md} +10 -10
- package/docs/reference/interfaces/{IRole.md → IDcatRole.md} +2 -2
- package/docs/reference/type-aliases/{DateTimeType.md → DcatDateTimeType.md} +2 -2
- package/docs/reference/type-aliases/DcatDecimalType.md +5 -0
- package/docs/reference/type-aliases/DcatDurationType.md +5 -0
- package/docs/reference/type-aliases/DcatIriType.md +5 -0
- package/docs/reference/type-aliases/{LiteralType.md → DcatLiteralType.md} +2 -2
- package/docs/reference/type-aliases/DcatNonNegativeIntegerType.md +5 -0
- package/package.json +5 -5
- package/dist/es/models/ICatalog.js +0 -2
- package/dist/es/models/ICatalog.js.map +0 -1
- package/dist/es/models/ICatalogRecord.js +0 -2
- package/dist/es/models/ICatalogRecord.js.map +0 -1
- package/dist/es/models/IDataService.js +0 -2
- package/dist/es/models/IDataService.js.map +0 -1
- package/dist/es/models/IDataset.js +0 -2
- package/dist/es/models/IDataset.js.map +0 -1
- package/dist/es/models/IDatasetSeries.js +0 -2
- package/dist/es/models/IDatasetSeries.js.map +0 -1
- package/dist/es/models/IDistribution.js +0 -2
- package/dist/es/models/IDistribution.js.map +0 -1
- package/dist/es/models/IRelationship.js +0 -2
- package/dist/es/models/IRelationship.js.map +0 -1
- package/dist/es/models/IResource.js +0 -2
- package/dist/es/models/IResource.js.map +0 -1
- package/dist/es/models/IRole.js +0 -2
- package/dist/es/models/IRole.js.map +0 -1
- package/docs/reference/type-aliases/DecimalType.md +0 -5
- package/docs/reference/type-aliases/DurationType.md +0 -5
- package/docs/reference/type-aliases/IriType.md +0 -5
- 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/
|
|
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": {
|
|
@@ -151,23 +151,23 @@
|
|
|
151
151
|
"type": "string"
|
|
152
152
|
},
|
|
153
153
|
"dcterms:title": {
|
|
154
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
154
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
155
155
|
"description": "A name given to the resource."
|
|
156
156
|
},
|
|
157
157
|
"dcterms:description": {
|
|
158
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
158
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
159
159
|
"description": "A free-text account of the resource."
|
|
160
160
|
},
|
|
161
161
|
"dcterms:identifier": {
|
|
162
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
162
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
163
163
|
"description": "A unique identifier of the resource."
|
|
164
164
|
},
|
|
165
165
|
"dcterms:issued": {
|
|
166
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
166
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
167
167
|
"description": "Date of formal issuance (publication) of the resource."
|
|
168
168
|
},
|
|
169
169
|
"dcterms:modified": {
|
|
170
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
170
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
171
171
|
"description": "Most recent date on which the resource was changed, updated or modified."
|
|
172
172
|
},
|
|
173
173
|
"dcterms:language": {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"dcterms:publisher": {
|
|
188
188
|
"anyOf": [
|
|
189
189
|
{
|
|
190
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
190
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"type": "string"
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"description": "An entity responsible for making the resource available."
|
|
197
197
|
},
|
|
198
198
|
"dcterms:creator": {
|
|
199
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
199
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent",
|
|
200
200
|
"description": "An entity responsible for producing the resource."
|
|
201
201
|
},
|
|
202
202
|
"dcterms:accessRights": {
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
"description": "Relevant contact information for the catalogued resource."
|
|
263
263
|
},
|
|
264
264
|
"dcat:keyword": {
|
|
265
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
265
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
266
266
|
"description": "A keyword or tag describing the resource."
|
|
267
267
|
},
|
|
268
268
|
"dcat:theme": {
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
"dcat:qualifiedRelation": {
|
|
297
297
|
"anyOf": [
|
|
298
298
|
{
|
|
299
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
299
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatRelationship"
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"type": "string"
|
|
@@ -312,12 +312,12 @@
|
|
|
312
312
|
"description": "Object or array data type",
|
|
313
313
|
"anyOf": [
|
|
314
314
|
{
|
|
315
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
315
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDistribution"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"type": "array",
|
|
319
319
|
"items": {
|
|
320
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
320
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDistribution"
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
]
|
|
@@ -353,15 +353,15 @@
|
|
|
353
353
|
"description": "The geographical area covered by the dataset."
|
|
354
354
|
},
|
|
355
355
|
"dcat:spatialResolutionInMeters": {
|
|
356
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
356
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDecimalType",
|
|
357
357
|
"description": "Minimum spatial separation resolvable in a dataset, measured in meters."
|
|
358
358
|
},
|
|
359
359
|
"dcterms:temporal": {
|
|
360
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
360
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DublinCorePeriodOfTime",
|
|
361
361
|
"description": "The temporal period that the dataset covers."
|
|
362
362
|
},
|
|
363
363
|
"dcat:temporalResolution": {
|
|
364
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
364
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDurationType",
|
|
365
365
|
"description": "Minimum time period resolvable in the dataset."
|
|
366
366
|
},
|
|
367
367
|
"prov:wasGeneratedBy": {
|
|
@@ -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/
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-dcat/DcatDatasetSeries",
|
|
4
4
|
"description": "Interface for DCAT Dataset Series. A collection of datasets that are published separately, but share some common characteristics that enable them to be grouped together.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -147,23 +147,23 @@
|
|
|
147
147
|
"type": "string"
|
|
148
148
|
},
|
|
149
149
|
"dcterms:title": {
|
|
150
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
150
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
151
151
|
"description": "A name given to the resource."
|
|
152
152
|
},
|
|
153
153
|
"dcterms:description": {
|
|
154
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
154
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
155
155
|
"description": "A free-text account of the resource."
|
|
156
156
|
},
|
|
157
157
|
"dcterms:identifier": {
|
|
158
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
158
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
159
159
|
"description": "A unique identifier of the resource."
|
|
160
160
|
},
|
|
161
161
|
"dcterms:issued": {
|
|
162
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
162
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
163
163
|
"description": "Date of formal issuance (publication) of the resource."
|
|
164
164
|
},
|
|
165
165
|
"dcterms:modified": {
|
|
166
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
166
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
167
167
|
"description": "Most recent date on which the resource was changed, updated or modified."
|
|
168
168
|
},
|
|
169
169
|
"dcterms:language": {
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"dcterms:publisher": {
|
|
184
184
|
"anyOf": [
|
|
185
185
|
{
|
|
186
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
186
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"type": "string"
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"description": "An entity responsible for making the resource available."
|
|
193
193
|
},
|
|
194
194
|
"dcterms:creator": {
|
|
195
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
195
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent",
|
|
196
196
|
"description": "An entity responsible for producing the resource."
|
|
197
197
|
},
|
|
198
198
|
"dcterms:accessRights": {
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"description": "Relevant contact information for the catalogued resource."
|
|
259
259
|
},
|
|
260
260
|
"dcat:keyword": {
|
|
261
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
261
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
262
262
|
"description": "A keyword or tag describing the resource."
|
|
263
263
|
},
|
|
264
264
|
"dcat:theme": {
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"dcat:qualifiedRelation": {
|
|
293
293
|
"anyOf": [
|
|
294
294
|
{
|
|
295
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
295
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatRelationship"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"type": "string"
|
|
@@ -308,12 +308,12 @@
|
|
|
308
308
|
"description": "Object or array data type",
|
|
309
309
|
"anyOf": [
|
|
310
310
|
{
|
|
311
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
311
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDistribution"
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"type": "array",
|
|
315
315
|
"items": {
|
|
316
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
316
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDistribution"
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
]
|
|
@@ -349,15 +349,15 @@
|
|
|
349
349
|
"description": "The geographical area covered by the dataset."
|
|
350
350
|
},
|
|
351
351
|
"dcat:spatialResolutionInMeters": {
|
|
352
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
352
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDecimalType",
|
|
353
353
|
"description": "Minimum spatial separation resolvable in a dataset, measured in meters."
|
|
354
354
|
},
|
|
355
355
|
"dcterms:temporal": {
|
|
356
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
356
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DublinCorePeriodOfTime",
|
|
357
357
|
"description": "The temporal period that the dataset covers."
|
|
358
358
|
},
|
|
359
359
|
"dcat:temporalResolution": {
|
|
360
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
360
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDurationType",
|
|
361
361
|
"description": "Minimum time period resolvable in the dataset."
|
|
362
362
|
},
|
|
363
363
|
"prov:wasGeneratedBy": {
|
|
@@ -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/
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-dcat/DcatDistribution",
|
|
4
4
|
"description": "Interface for DCAT Distribution. A specific representation of a dataset. A dataset might be available in multiple serializations that may differ in various ways.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -147,19 +147,19 @@
|
|
|
147
147
|
"type": "string"
|
|
148
148
|
},
|
|
149
149
|
"dcterms:title": {
|
|
150
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
150
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
151
151
|
"description": "A name given to the distribution."
|
|
152
152
|
},
|
|
153
153
|
"dcterms:description": {
|
|
154
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
154
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
155
155
|
"description": "A free-text account of the distribution."
|
|
156
156
|
},
|
|
157
157
|
"dcterms:issued": {
|
|
158
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
158
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
159
159
|
"description": "Date of formal issuance of the distribution."
|
|
160
160
|
},
|
|
161
161
|
"dcterms:modified": {
|
|
162
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
162
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
163
163
|
"description": "Most recent date on which the distribution was changed, updated or modified."
|
|
164
164
|
},
|
|
165
165
|
"dcterms:license": {
|
|
@@ -187,15 +187,15 @@
|
|
|
187
187
|
"description": "The URL of the downloadable file in a given format."
|
|
188
188
|
},
|
|
189
189
|
"dcat:byteSize": {
|
|
190
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
190
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatNonNegativeIntegerType",
|
|
191
191
|
"description": "The size of the distribution in bytes."
|
|
192
192
|
},
|
|
193
193
|
"dcat:spatialResolutionInMeters": {
|
|
194
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
194
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDecimalType",
|
|
195
195
|
"description": "The minimum spatial separation resolvable in a distribution, measured in meters."
|
|
196
196
|
},
|
|
197
197
|
"dcat:temporalResolution": {
|
|
198
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
198
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDurationType",
|
|
199
199
|
"description": "Minimum time period resolvable in the distribution."
|
|
200
200
|
},
|
|
201
201
|
"dcterms:conformsTo": {
|
|
@@ -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/
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-dcat/DcatRelationship",
|
|
4
4
|
"description": "Interface for DCAT Relationship. An association class for attaching additional information to a relationship between DCAT Resources.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"description": "The link to a related resource."
|
|
152
152
|
},
|
|
153
153
|
"dcat:hadRole": {
|
|
154
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
154
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatRole",
|
|
155
155
|
"description": "The function of an entity or agent with respect to another resource."
|
|
156
156
|
}
|
|
157
157
|
},
|
|
@@ -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/
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-dcat/DcatResource",
|
|
4
4
|
"description": "Base interface for DCAT catalogued resources. This is the parent class of dcat:Dataset, dcat:DataService, and dcat:Catalog.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -153,23 +153,23 @@
|
|
|
153
153
|
"type": "string"
|
|
154
154
|
},
|
|
155
155
|
"dcterms:title": {
|
|
156
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
156
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
157
157
|
"description": "A name given to the resource."
|
|
158
158
|
},
|
|
159
159
|
"dcterms:description": {
|
|
160
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
160
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
161
161
|
"description": "A free-text account of the resource."
|
|
162
162
|
},
|
|
163
163
|
"dcterms:identifier": {
|
|
164
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
164
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
165
165
|
"description": "A unique identifier of the resource."
|
|
166
166
|
},
|
|
167
167
|
"dcterms:issued": {
|
|
168
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
168
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
169
169
|
"description": "Date of formal issuance (publication) of the resource."
|
|
170
170
|
},
|
|
171
171
|
"dcterms:modified": {
|
|
172
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
172
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
|
|
173
173
|
"description": "Most recent date on which the resource was changed, updated or modified."
|
|
174
174
|
},
|
|
175
175
|
"dcterms:language": {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"dcterms:publisher": {
|
|
190
190
|
"anyOf": [
|
|
191
191
|
{
|
|
192
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
192
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent"
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
"type": "string"
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"description": "An entity responsible for making the resource available."
|
|
199
199
|
},
|
|
200
200
|
"dcterms:creator": {
|
|
201
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
201
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/FoafAgent",
|
|
202
202
|
"description": "An entity responsible for producing the resource."
|
|
203
203
|
},
|
|
204
204
|
"dcterms:accessRights": {
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"description": "Relevant contact information for the catalogued resource."
|
|
265
265
|
},
|
|
266
266
|
"dcat:keyword": {
|
|
267
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
267
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
268
268
|
"description": "A keyword or tag describing the resource."
|
|
269
269
|
},
|
|
270
270
|
"dcat:theme": {
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"dcat:qualifiedRelation": {
|
|
299
299
|
"anyOf": [
|
|
300
300
|
{
|
|
301
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
301
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatRelationship"
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
"type": "string"
|
|
@@ -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/
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-dcat/DcatRole",
|
|
4
4
|
"description": "Interface for DCAT Role. A role is the function of a resource or agent with respect to another resource, in the context of resource attribution or resource relationships.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"type": "string"
|
|
148
148
|
},
|
|
149
149
|
"dcterms:title": {
|
|
150
|
-
"$ref": "https://schema.twindev.org/w3c-dcat/
|
|
150
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
|
|
151
151
|
"description": "A name given to the distribution."
|
|
152
152
|
}
|
|
153
153
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ export * from "./models/dcatClasses.js";
|
|
|
3
3
|
export * from "./models/dcatContexts.js";
|
|
4
4
|
export * from "./models/dcatContextType.js";
|
|
5
5
|
export * from "./models/dcatRelationshipTypes.js";
|
|
6
|
-
export * from "./models/
|
|
7
|
-
export * from "./models/
|
|
8
|
-
export * from "./models/
|
|
9
|
-
export * from "./models/
|
|
10
|
-
export * from "./models/
|
|
11
|
-
export * from "./models/
|
|
12
|
-
export * from "./models/
|
|
13
|
-
export * from "./models/
|
|
14
|
-
export * from "./models/
|
|
6
|
+
export * from "./models/IDcatCatalog.js";
|
|
7
|
+
export * from "./models/IDcatCatalogRecord.js";
|
|
8
|
+
export * from "./models/IDcatDataService.js";
|
|
9
|
+
export * from "./models/IDcatDataset.js";
|
|
10
|
+
export * from "./models/IDcatDatasetSeries.js";
|
|
11
|
+
export * from "./models/IDcatDistribution.js";
|
|
12
|
+
export * from "./models/IDcatRelationship.js";
|
|
13
|
+
export * from "./models/IDcatResource.js";
|
|
14
|
+
export * from "./models/IDcatRole.js";
|
|
15
15
|
export * from "./models/types/dcatPropertyTypes.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
2
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
3
|
+
import type { IDcatCatalogRecord } from "./IDcatCatalogRecord.js";
|
|
4
|
+
import type { IDcatDataService } from "./IDcatDataService.js";
|
|
5
|
+
import type { IDcatDataset } from "./IDcatDataset.js";
|
|
6
|
+
import type { IDcatResource } from "./IDcatResource.js";
|
|
7
7
|
/**
|
|
8
8
|
* Interface for DCAT Catalog.
|
|
9
9
|
* A curated collection of metadata about resources (datasets and data services).
|
|
10
10
|
* Note: dcat:Catalog is a sub-class of dcat:Dataset per the W3C spec.
|
|
11
11
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface IDcatCatalog extends IDcatDataset {
|
|
14
14
|
/**
|
|
15
15
|
* The type identifier, typically "Catalog".
|
|
16
16
|
*/
|
|
@@ -24,30 +24,30 @@ export interface ICatalog extends IDataset {
|
|
|
24
24
|
* A knowledge organization system (KOS) used to classify the resources in the catalog.
|
|
25
25
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_themes
|
|
26
26
|
*/
|
|
27
|
-
"dcat:themeTaxonomy"?: ObjectOrArray<
|
|
27
|
+
"dcat:themeTaxonomy"?: ObjectOrArray<IDcatResource>;
|
|
28
28
|
/**
|
|
29
29
|
* A resource that is listed in the catalog.
|
|
30
30
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_resource
|
|
31
31
|
*/
|
|
32
|
-
"dcat:resource"?: ObjectOrArray<
|
|
32
|
+
"dcat:resource"?: ObjectOrArray<IDcatResource>;
|
|
33
33
|
/**
|
|
34
34
|
* A dataset that is listed in the catalog.
|
|
35
35
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_dataset
|
|
36
36
|
*/
|
|
37
|
-
"dcat:dataset"?: ObjectOrArray<
|
|
37
|
+
"dcat:dataset"?: ObjectOrArray<IDcatDataset>;
|
|
38
38
|
/**
|
|
39
39
|
* A data service that is listed in the catalog.
|
|
40
40
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_service
|
|
41
41
|
*/
|
|
42
|
-
"dcat:service"?: ObjectOrArray<
|
|
42
|
+
"dcat:service"?: ObjectOrArray<IDcatDataService>;
|
|
43
43
|
/**
|
|
44
44
|
* A catalog that is listed in the catalog.
|
|
45
45
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_catalog
|
|
46
46
|
*/
|
|
47
|
-
"dcat:catalog"?: ObjectOrArray<
|
|
47
|
+
"dcat:catalog"?: ObjectOrArray<IDcatCatalog>;
|
|
48
48
|
/**
|
|
49
49
|
* A record describing the registration of a single resource in the catalog.
|
|
50
50
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_catalog_record
|
|
51
51
|
*/
|
|
52
|
-
"dcat:record"?: ObjectOrArray<
|
|
52
|
+
"dcat:record"?: ObjectOrArray<IDcatCatalogRecord>;
|
|
53
53
|
}
|
|
@@ -2,15 +2,15 @@ import type { ObjectOrArray } from "@twin.org/core";
|
|
|
2
2
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
3
3
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
4
4
|
import type { DcatContextType } from "./dcatContextType.js";
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
5
|
+
import type { IDcatResource } from "./IDcatResource.js";
|
|
6
|
+
import type { DcatDateTimeType, DcatLiteralType } from "./types/dcatPropertyTypes.js";
|
|
7
7
|
/**
|
|
8
8
|
* Interface for DCAT Catalog Record.
|
|
9
9
|
* A record in a catalog, describing the registration of a single dataset or data
|
|
10
10
|
* service.
|
|
11
11
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog_Record
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface IDcatCatalogRecord extends IJsonLdNodeObject {
|
|
14
14
|
/**
|
|
15
15
|
* The JSON-LD context for the resource.
|
|
16
16
|
*/
|
|
@@ -23,22 +23,22 @@ export interface ICatalogRecord extends IJsonLdNodeObject {
|
|
|
23
23
|
* A name given to the catalog record.
|
|
24
24
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_title
|
|
25
25
|
*/
|
|
26
|
-
"dcterms:title"?:
|
|
26
|
+
"dcterms:title"?: DcatLiteralType;
|
|
27
27
|
/**
|
|
28
28
|
* A free-text account of the catalog record.
|
|
29
29
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_description
|
|
30
30
|
*/
|
|
31
|
-
"dcterms:description"?:
|
|
31
|
+
"dcterms:description"?: DcatLiteralType;
|
|
32
32
|
/**
|
|
33
33
|
* The date of listing of the catalog record in the catalog.
|
|
34
34
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_listing_date
|
|
35
35
|
*/
|
|
36
|
-
"dcterms:issued"?:
|
|
36
|
+
"dcterms:issued"?: DcatDateTimeType;
|
|
37
37
|
/**
|
|
38
38
|
* Most recent date on which the catalog record entry was changed or modified.
|
|
39
39
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_update_date
|
|
40
40
|
*/
|
|
41
|
-
"dcterms:modified"?:
|
|
41
|
+
"dcterms:modified"?: DcatDateTimeType;
|
|
42
42
|
/**
|
|
43
43
|
* An established standard to which the catalog record conforms.
|
|
44
44
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_conforms_to
|
|
@@ -48,5 +48,5 @@ export interface ICatalogRecord extends IJsonLdNodeObject {
|
|
|
48
48
|
* The dataset or data service described in the catalog record.
|
|
49
49
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_primary_topic
|
|
50
50
|
*/
|
|
51
|
-
"foaf:primaryTopic"?:
|
|
51
|
+
"foaf:primaryTopic"?: IDcatResource;
|
|
52
52
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
2
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { IDcatResource } from "./IDcatResource.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for DCAT Data Service.
|
|
6
6
|
* A collection of operations that provides access to one or more datasets or data
|
|
7
7
|
* processing functions.
|
|
8
8
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Data_Service
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface IDcatDataService extends IDcatResource {
|
|
11
11
|
/**
|
|
12
12
|
* The type identifier, typically "DataService".
|
|
13
13
|
*/
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
2
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
3
|
-
import type {
|
|
3
|
+
import type { IDublinCorePeriodOfTime } from "@twin.org/standards-dublin-core";
|
|
4
4
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
5
|
+
import type { IDcatDistribution } from "./IDcatDistribution.js";
|
|
6
|
+
import type { IDcatResource } from "./IDcatResource.js";
|
|
7
|
+
import type { DcatDecimalType, DcatDurationType } from "./types/dcatPropertyTypes.js";
|
|
8
8
|
/**
|
|
9
9
|
* Interface for DCAT Dataset.
|
|
10
10
|
* A collection of data, published or curated by a single agent, and available
|
|
11
11
|
* for access or download in one or more representations.
|
|
12
12
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
14
|
+
export interface IDcatDataset extends IDcatResource {
|
|
15
15
|
/**
|
|
16
16
|
* The type identifier, typically "Dataset".
|
|
17
17
|
* Can also be "Catalog" or "DatasetSeries" for subclasses.
|
|
@@ -21,7 +21,7 @@ export interface IDataset extends IResource {
|
|
|
21
21
|
* An available distribution of the dataset.
|
|
22
22
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_distribution
|
|
23
23
|
*/
|
|
24
|
-
"dcat:distribution"?: ObjectOrArray<
|
|
24
|
+
"dcat:distribution"?: ObjectOrArray<IDcatDistribution>;
|
|
25
25
|
/**
|
|
26
26
|
* The frequency at which the dataset is published.
|
|
27
27
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_frequency
|
|
@@ -41,17 +41,17 @@ export interface IDataset extends IResource {
|
|
|
41
41
|
* Minimum spatial separation resolvable in a dataset, measured in meters.
|
|
42
42
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_spatial_resolution
|
|
43
43
|
*/
|
|
44
|
-
"dcat:spatialResolutionInMeters"?:
|
|
44
|
+
"dcat:spatialResolutionInMeters"?: DcatDecimalType;
|
|
45
45
|
/**
|
|
46
46
|
* The temporal period that the dataset covers.
|
|
47
47
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_temporal
|
|
48
48
|
*/
|
|
49
|
-
"dcterms:temporal"?:
|
|
49
|
+
"dcterms:temporal"?: IDublinCorePeriodOfTime;
|
|
50
50
|
/**
|
|
51
51
|
* Minimum time period resolvable in the dataset.
|
|
52
52
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_temporal_resolution
|
|
53
53
|
*/
|
|
54
|
-
"dcat:temporalResolution"?:
|
|
54
|
+
"dcat:temporalResolution"?: DcatDurationType;
|
|
55
55
|
/**
|
|
56
56
|
* An activity that generated, or provides the business context for, the creation of the dataset.
|
|
57
57
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_was_generated_by
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
2
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { IDcatDataset } from "./IDcatDataset.js";
|
|
4
4
|
/**
|
|
5
5
|
* Interface for DCAT Dataset Series.
|
|
6
6
|
* A collection of datasets that are published separately, but share some common
|
|
7
7
|
* characteristics that enable them to be grouped together.
|
|
8
8
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset_Series
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface IDcatDatasetSeries extends IDcatDataset {
|
|
11
11
|
/**
|
|
12
12
|
* The type identifier, typically "DatasetSeries".
|
|
13
13
|
*/
|