@twin.org/standards-w3c-dcat 0.0.3-next.3
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/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/es/dataTypes/dcatDataTypes.js +77 -0
- package/dist/es/dataTypes/dcatDataTypes.js.map +1 -0
- package/dist/es/index.js +18 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/ICatalog.js +2 -0
- package/dist/es/models/ICatalog.js.map +1 -0
- package/dist/es/models/ICatalogRecord.js +2 -0
- package/dist/es/models/ICatalogRecord.js.map +1 -0
- package/dist/es/models/IDataService.js +2 -0
- package/dist/es/models/IDataService.js.map +1 -0
- package/dist/es/models/IDataset.js +2 -0
- package/dist/es/models/IDataset.js.map +1 -0
- package/dist/es/models/IDatasetSeries.js +2 -0
- package/dist/es/models/IDatasetSeries.js.map +1 -0
- package/dist/es/models/IDistribution.js +2 -0
- package/dist/es/models/IDistribution.js.map +1 -0
- package/dist/es/models/IRelationship.js +2 -0
- package/dist/es/models/IRelationship.js.map +1 -0
- package/dist/es/models/IResource.js +2 -0
- package/dist/es/models/IResource.js.map +1 -0
- package/dist/es/models/IRole.js +2 -0
- package/dist/es/models/IRole.js.map +1 -0
- package/dist/es/models/dcatClasses.js +56 -0
- package/dist/es/models/dcatClasses.js.map +1 -0
- package/dist/es/models/dcatContextType.js +2 -0
- package/dist/es/models/dcatContextType.js.map +1 -0
- package/dist/es/models/dcatContexts.js +38 -0
- package/dist/es/models/dcatContexts.js.map +1 -0
- package/dist/es/models/dcatRelationshipTypes.js +57 -0
- package/dist/es/models/dcatRelationshipTypes.js.map +1 -0
- package/dist/es/models/types/dcatPropertyTypes.js +4 -0
- package/dist/es/models/types/dcatPropertyTypes.js.map +1 -0
- package/dist/es/schemas/Catalog.json +491 -0
- package/dist/es/schemas/CatalogRecord.json +212 -0
- package/dist/es/schemas/DataService.json +358 -0
- package/dist/es/schemas/Dataset.json +407 -0
- package/dist/es/schemas/DatasetSeries.json +425 -0
- package/dist/es/schemas/Distribution.json +268 -0
- package/dist/es/schemas/Relationship.json +187 -0
- package/dist/es/schemas/Resource.json +342 -0
- package/dist/es/schemas/Role.json +182 -0
- package/dist/types/dataTypes/dcatDataTypes.d.ts +14 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/models/ICatalog.d.ts +53 -0
- package/dist/types/models/ICatalogRecord.d.ts +52 -0
- package/dist/types/models/IDataService.d.ts +31 -0
- package/dist/types/models/IDataset.d.ts +60 -0
- package/dist/types/models/IDatasetSeries.d.ts +30 -0
- package/dist/types/models/IDistribution.d.ts +122 -0
- package/dist/types/models/IRelationship.d.ts +30 -0
- package/dist/types/models/IResource.d.ts +119 -0
- package/dist/types/models/IRole.d.ts +25 -0
- package/dist/types/models/dcatClasses.d.ts +56 -0
- package/dist/types/models/dcatContextType.d.ts +11 -0
- package/dist/types/models/dcatContexts.d.ts +38 -0
- package/dist/types/models/dcatRelationshipTypes.d.ts +57 -0
- package/dist/types/models/types/dcatPropertyTypes.d.ts +29 -0
- package/docs/changelog.md +22 -0
- package/docs/examples.md +1 -0
- package/docs/reference/classes/DcatDataTypes.md +38 -0
- package/docs/reference/index.md +36 -0
- package/docs/reference/interfaces/ICatalog.md +557 -0
- package/docs/reference/interfaces/ICatalogRecord.md +113 -0
- package/docs/reference/interfaces/IDataService.md +382 -0
- package/docs/reference/interfaces/IDataset.md +447 -0
- package/docs/reference/interfaces/IDatasetSeries.md +509 -0
- package/docs/reference/interfaces/IDistribution.md +281 -0
- package/docs/reference/interfaces/IRelationship.md +65 -0
- package/docs/reference/interfaces/IResource.md +274 -0
- package/docs/reference/interfaces/IRole.md +53 -0
- package/docs/reference/type-aliases/DateTimeType.md +6 -0
- package/docs/reference/type-aliases/DcatClasses.md +5 -0
- package/docs/reference/type-aliases/DcatContextType.md +16 -0
- package/docs/reference/type-aliases/DcatContexts.md +5 -0
- package/docs/reference/type-aliases/DcatRelationshipType.md +5 -0
- package/docs/reference/type-aliases/DecimalType.md +5 -0
- package/docs/reference/type-aliases/DurationType.md +5 -0
- package/docs/reference/type-aliases/IriType.md +5 -0
- package/docs/reference/type-aliases/LiteralType.md +5 -0
- package/docs/reference/type-aliases/NonNegativeIntegerType.md +5 -0
- package/docs/reference/variables/DcatClasses.md +102 -0
- package/docs/reference/variables/DcatContexts.md +63 -0
- package/docs/reference/variables/DcatRelationshipType.md +103 -0
- package/locales/en.json +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-dcat/Dataset",
|
|
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
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"description": "The DCAT JSON-LD context type. Supports the DCAT context URL or arrays with additional context definitions.",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": {
|
|
11
|
+
"anyOf": [
|
|
12
|
+
{
|
|
13
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdExpandedTermDefinition"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": [
|
|
17
|
+
"null",
|
|
18
|
+
"string"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"properties": {
|
|
24
|
+
"@base": {
|
|
25
|
+
"type": [
|
|
26
|
+
"string",
|
|
27
|
+
"null"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"@direction": {
|
|
31
|
+
"type": [
|
|
32
|
+
"string",
|
|
33
|
+
"null"
|
|
34
|
+
],
|
|
35
|
+
"enum": [
|
|
36
|
+
"ltr",
|
|
37
|
+
"rtl",
|
|
38
|
+
null
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"@import": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"@language": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"@propagate": {
|
|
48
|
+
"type": "boolean"
|
|
49
|
+
},
|
|
50
|
+
"@protected": {
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"@type": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"@container": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "@set"
|
|
59
|
+
},
|
|
60
|
+
"@protected": {
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"@container"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
},
|
|
69
|
+
"@version": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"const": "1.1"
|
|
72
|
+
},
|
|
73
|
+
"@vocab": {
|
|
74
|
+
"type": [
|
|
75
|
+
"string",
|
|
76
|
+
"null"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"dcat": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"const": "http://www.w3.org/ns/dcat#"
|
|
82
|
+
},
|
|
83
|
+
"dcterms": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "http://purl.org/dc/terms/"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"dcat",
|
|
90
|
+
"dcterms"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"@id": {
|
|
94
|
+
"anyOf": [
|
|
95
|
+
{
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"@included": {
|
|
107
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
108
|
+
},
|
|
109
|
+
"@graph": {
|
|
110
|
+
"anyOf": [
|
|
111
|
+
{
|
|
112
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": {
|
|
117
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"@nest": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "array",
|
|
129
|
+
"items": {
|
|
130
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"@type": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"enum": [
|
|
138
|
+
"Dataset",
|
|
139
|
+
"Catalog",
|
|
140
|
+
"DatasetSeries"
|
|
141
|
+
],
|
|
142
|
+
"description": "The type identifier, typically \"Dataset\". Can also be \"Catalog\" or \"DatasetSeries\" for subclasses."
|
|
143
|
+
},
|
|
144
|
+
"@reverse": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"@index": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"dcterms:title": {
|
|
154
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
|
|
155
|
+
"description": "A name given to the resource."
|
|
156
|
+
},
|
|
157
|
+
"dcterms:description": {
|
|
158
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
|
|
159
|
+
"description": "A free-text account of the resource."
|
|
160
|
+
},
|
|
161
|
+
"dcterms:identifier": {
|
|
162
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
|
|
163
|
+
"description": "A unique identifier of the resource."
|
|
164
|
+
},
|
|
165
|
+
"dcterms:issued": {
|
|
166
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
|
|
167
|
+
"description": "Date of formal issuance (publication) of the resource."
|
|
168
|
+
},
|
|
169
|
+
"dcterms:modified": {
|
|
170
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DateTimeType",
|
|
171
|
+
"description": "Most recent date on which the resource was changed, updated or modified."
|
|
172
|
+
},
|
|
173
|
+
"dcterms:language": {
|
|
174
|
+
"description": "Object or array data type",
|
|
175
|
+
"anyOf": [
|
|
176
|
+
{
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "array",
|
|
181
|
+
"items": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"dcterms:publisher": {
|
|
188
|
+
"anyOf": [
|
|
189
|
+
{
|
|
190
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/Agent"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"description": "An entity responsible for making the resource available."
|
|
197
|
+
},
|
|
198
|
+
"dcterms:creator": {
|
|
199
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/Agent",
|
|
200
|
+
"description": "An entity responsible for producing the resource."
|
|
201
|
+
},
|
|
202
|
+
"dcterms:accessRights": {
|
|
203
|
+
"anyOf": [
|
|
204
|
+
{
|
|
205
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "string"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"description": "Information about who can access the resource or an indication of its security status."
|
|
212
|
+
},
|
|
213
|
+
"dcterms:license": {
|
|
214
|
+
"anyOf": [
|
|
215
|
+
{
|
|
216
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"type": "string"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"description": "A legal document under which the resource is made available."
|
|
223
|
+
},
|
|
224
|
+
"dcterms:rights": {
|
|
225
|
+
"anyOf": [
|
|
226
|
+
{
|
|
227
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "string"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"description": "Information about rights held in and over the resource."
|
|
234
|
+
},
|
|
235
|
+
"dcterms:conformsTo": {
|
|
236
|
+
"description": "Object or array data type",
|
|
237
|
+
"anyOf": [
|
|
238
|
+
{
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"dcterms:type": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "The nature or genre of the resource."
|
|
252
|
+
},
|
|
253
|
+
"dcat:contactPoint": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"description": "Relevant contact information for the catalogued resource."
|
|
263
|
+
},
|
|
264
|
+
"dcat:keyword": {
|
|
265
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/LiteralType",
|
|
266
|
+
"description": "A keyword or tag describing the resource."
|
|
267
|
+
},
|
|
268
|
+
"dcat:theme": {
|
|
269
|
+
"description": "Object or array data type",
|
|
270
|
+
"anyOf": [
|
|
271
|
+
{
|
|
272
|
+
"type": "string"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"type": "array",
|
|
276
|
+
"items": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"dcat:landingPage": {
|
|
283
|
+
"description": "Object or array data type",
|
|
284
|
+
"anyOf": [
|
|
285
|
+
{
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "array",
|
|
290
|
+
"items": {
|
|
291
|
+
"type": "string"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"dcat:qualifiedRelation": {
|
|
297
|
+
"anyOf": [
|
|
298
|
+
{
|
|
299
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/Relationship"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"type": "string"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"description": "Link to a description of a relationship with another resource."
|
|
306
|
+
},
|
|
307
|
+
"odrl:hasPolicy": {
|
|
308
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicy",
|
|
309
|
+
"description": "An ODRL conformant policy expressing the rights associated with the resource."
|
|
310
|
+
},
|
|
311
|
+
"dcat:distribution": {
|
|
312
|
+
"description": "Object or array data type",
|
|
313
|
+
"anyOf": [
|
|
314
|
+
{
|
|
315
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/Distribution"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"type": "array",
|
|
319
|
+
"items": {
|
|
320
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/Distribution"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"dcterms:accrualPeriodicity": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"description": "The frequency at which the dataset is published."
|
|
328
|
+
},
|
|
329
|
+
"dcat:inSeries": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "A dataset series of which the dataset is part."
|
|
332
|
+
},
|
|
333
|
+
"dcterms:spatial": {
|
|
334
|
+
"anyOf": [
|
|
335
|
+
{
|
|
336
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"anyOf": [
|
|
340
|
+
{
|
|
341
|
+
"type": "string"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"type": "array",
|
|
345
|
+
"items": {
|
|
346
|
+
"type": "string"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"description": "Object or array data type"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"description": "The geographical area covered by the dataset."
|
|
354
|
+
},
|
|
355
|
+
"dcat:spatialResolutionInMeters": {
|
|
356
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DecimalType",
|
|
357
|
+
"description": "Minimum spatial separation resolvable in a dataset, measured in meters."
|
|
358
|
+
},
|
|
359
|
+
"dcterms:temporal": {
|
|
360
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/PeriodOfTime",
|
|
361
|
+
"description": "The temporal period that the dataset covers."
|
|
362
|
+
},
|
|
363
|
+
"dcat:temporalResolution": {
|
|
364
|
+
"$ref": "https://schema.twindev.org/w3c-dcat/DurationType",
|
|
365
|
+
"description": "Minimum time period resolvable in the dataset."
|
|
366
|
+
},
|
|
367
|
+
"prov:wasGeneratedBy": {
|
|
368
|
+
"anyOf": [
|
|
369
|
+
{
|
|
370
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"type": "string"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"description": "An activity that generated, or provides the business context for, the creation of the dataset."
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"required": [
|
|
380
|
+
"@type"
|
|
381
|
+
],
|
|
382
|
+
"additionalProperties": {
|
|
383
|
+
"anyOf": [
|
|
384
|
+
{
|
|
385
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "array"
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
}
|