@twin.org/standards-w3c-dcat 0.0.3-next.10

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 (95) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/es/dataTypes/dcatDataTypes.js +77 -0
  4. package/dist/es/dataTypes/dcatDataTypes.js.map +1 -0
  5. package/dist/es/index.js +19 -0
  6. package/dist/es/index.js.map +1 -0
  7. package/dist/es/models/IDcatCatalog.js +2 -0
  8. package/dist/es/models/IDcatCatalog.js.map +1 -0
  9. package/dist/es/models/IDcatCatalogRecord.js +2 -0
  10. package/dist/es/models/IDcatCatalogRecord.js.map +1 -0
  11. package/dist/es/models/IDcatDataService.js +2 -0
  12. package/dist/es/models/IDcatDataService.js.map +1 -0
  13. package/dist/es/models/IDcatDataset.js +2 -0
  14. package/dist/es/models/IDcatDataset.js.map +1 -0
  15. package/dist/es/models/IDcatDatasetSeries.js +2 -0
  16. package/dist/es/models/IDcatDatasetSeries.js.map +1 -0
  17. package/dist/es/models/IDcatDistribution.js +2 -0
  18. package/dist/es/models/IDcatDistribution.js.map +1 -0
  19. package/dist/es/models/IDcatRelationship.js +2 -0
  20. package/dist/es/models/IDcatRelationship.js.map +1 -0
  21. package/dist/es/models/IDcatResource.js +2 -0
  22. package/dist/es/models/IDcatResource.js.map +1 -0
  23. package/dist/es/models/IDcatRole.js +2 -0
  24. package/dist/es/models/IDcatRole.js.map +1 -0
  25. package/dist/es/models/dcatClasses.js +56 -0
  26. package/dist/es/models/dcatClasses.js.map +1 -0
  27. package/dist/es/models/dcatContextType.js +2 -0
  28. package/dist/es/models/dcatContextType.js.map +1 -0
  29. package/dist/es/models/dcatContexts.js +42 -0
  30. package/dist/es/models/dcatContexts.js.map +1 -0
  31. package/dist/es/models/dcatRelationshipTypes.js +57 -0
  32. package/dist/es/models/dcatRelationshipTypes.js.map +1 -0
  33. package/dist/es/models/types/dcatContextFreeTypes.js +4 -0
  34. package/dist/es/models/types/dcatContextFreeTypes.js.map +1 -0
  35. package/dist/es/models/types/dcatPropertyTypes.js +4 -0
  36. package/dist/es/models/types/dcatPropertyTypes.js.map +1 -0
  37. package/dist/es/schemas/DcatCatalog.json +500 -0
  38. package/dist/es/schemas/DcatCatalogRecord.json +221 -0
  39. package/dist/es/schemas/DcatDataService.json +367 -0
  40. package/dist/es/schemas/DcatDataset.json +416 -0
  41. package/dist/es/schemas/DcatDatasetSeries.json +434 -0
  42. package/dist/es/schemas/DcatDistribution.json +277 -0
  43. package/dist/es/schemas/DcatRelationship.json +195 -0
  44. package/dist/es/schemas/DcatResource.json +351 -0
  45. package/dist/es/schemas/DcatRole.json +191 -0
  46. package/dist/types/dataTypes/dcatDataTypes.d.ts +14 -0
  47. package/dist/types/index.d.ts +16 -0
  48. package/dist/types/models/IDcatCatalog.d.ts +52 -0
  49. package/dist/types/models/IDcatCatalogRecord.d.ts +52 -0
  50. package/dist/types/models/IDcatDataService.d.ts +31 -0
  51. package/dist/types/models/IDcatDataset.d.ts +60 -0
  52. package/dist/types/models/IDcatDatasetSeries.d.ts +30 -0
  53. package/dist/types/models/IDcatDistribution.d.ts +122 -0
  54. package/dist/types/models/IDcatRelationship.d.ts +30 -0
  55. package/dist/types/models/IDcatResource.d.ts +119 -0
  56. package/dist/types/models/IDcatRole.d.ts +25 -0
  57. package/dist/types/models/dcatClasses.d.ts +56 -0
  58. package/dist/types/models/dcatContextType.d.ts +15 -0
  59. package/dist/types/models/dcatContexts.d.ts +42 -0
  60. package/dist/types/models/dcatRelationshipTypes.d.ts +57 -0
  61. package/dist/types/models/types/dcatContextFreeTypes.d.ts +40 -0
  62. package/dist/types/models/types/dcatPropertyTypes.d.ts +29 -0
  63. package/docs/changelog.md +146 -0
  64. package/docs/examples.md +1 -0
  65. package/docs/reference/classes/DcatDataTypes.md +38 -0
  66. package/docs/reference/index.md +41 -0
  67. package/docs/reference/interfaces/IDcatCatalog.md +557 -0
  68. package/docs/reference/interfaces/IDcatCatalogRecord.md +113 -0
  69. package/docs/reference/interfaces/IDcatDataService.md +382 -0
  70. package/docs/reference/interfaces/IDcatDataset.md +447 -0
  71. package/docs/reference/interfaces/IDcatDatasetSeries.md +509 -0
  72. package/docs/reference/interfaces/IDcatDistribution.md +281 -0
  73. package/docs/reference/interfaces/IDcatRelationship.md +65 -0
  74. package/docs/reference/interfaces/IDcatResource.md +274 -0
  75. package/docs/reference/interfaces/IDcatRole.md +53 -0
  76. package/docs/reference/type-aliases/CatalogOptionalContext.md +11 -0
  77. package/docs/reference/type-aliases/CatalogRecordOptionalContext.md +11 -0
  78. package/docs/reference/type-aliases/DataServiceOptionalContext.md +11 -0
  79. package/docs/reference/type-aliases/DatasetOptionalContext.md +11 -0
  80. package/docs/reference/type-aliases/DcatClasses.md +5 -0
  81. package/docs/reference/type-aliases/DcatContextType.md +24 -0
  82. package/docs/reference/type-aliases/DcatContexts.md +5 -0
  83. package/docs/reference/type-aliases/DcatDateTimeType.md +6 -0
  84. package/docs/reference/type-aliases/DcatDecimalType.md +5 -0
  85. package/docs/reference/type-aliases/DcatDurationType.md +5 -0
  86. package/docs/reference/type-aliases/DcatIriType.md +5 -0
  87. package/docs/reference/type-aliases/DcatLiteralType.md +5 -0
  88. package/docs/reference/type-aliases/DcatNonNegativeIntegerType.md +5 -0
  89. package/docs/reference/type-aliases/DcatRelationshipType.md +5 -0
  90. package/docs/reference/type-aliases/DistributionOptionalContext.md +11 -0
  91. package/docs/reference/variables/DcatClasses.md +102 -0
  92. package/docs/reference/variables/DcatContexts.md +69 -0
  93. package/docs/reference/variables/DcatRelationshipType.md +103 -0
  94. package/locales/en.json +1 -0
  95. package/package.json +57 -0
@@ -0,0 +1,277 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/w3c-dcat/DcatDistribution",
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
+ "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
+ "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/"
94
+ }
95
+ },
96
+ "required": [
97
+ "dcat",
98
+ "dcterms"
99
+ ]
100
+ },
101
+ "@id": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ }
111
+ }
112
+ ]
113
+ },
114
+ "@included": {
115
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
116
+ },
117
+ "@graph": {
118
+ "anyOf": [
119
+ {
120
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
121
+ },
122
+ {
123
+ "type": "array",
124
+ "items": {
125
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ "@nest": {
131
+ "anyOf": [
132
+ {
133
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
134
+ },
135
+ {
136
+ "type": "array",
137
+ "items": {
138
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ "@type": {
144
+ "type": "string",
145
+ "const": "dcat:Distribution",
146
+ "description": "The type identifier, typically \"Distribution\"."
147
+ },
148
+ "@reverse": {
149
+ "type": "object",
150
+ "additionalProperties": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ "@index": {
155
+ "type": "string"
156
+ },
157
+ "dcterms:title": {
158
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
159
+ "description": "A name given to the distribution."
160
+ },
161
+ "dcterms:description": {
162
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatLiteralType",
163
+ "description": "A free-text account of the distribution."
164
+ },
165
+ "dcterms:issued": {
166
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
167
+ "description": "Date of formal issuance of the distribution."
168
+ },
169
+ "dcterms:modified": {
170
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDateTimeType",
171
+ "description": "Most recent date on which the distribution was changed, updated or modified."
172
+ },
173
+ "dcterms:license": {
174
+ "type": "string",
175
+ "description": "A legal document under which the distribution is made available."
176
+ },
177
+ "dcterms:accessRights": {
178
+ "type": "string",
179
+ "description": "Information about who can access the distribution."
180
+ },
181
+ "dcterms:rights": {
182
+ "type": "string",
183
+ "description": "Information about rights held in and over the distribution."
184
+ },
185
+ "dcat:accessURL": {
186
+ "type": "string",
187
+ "description": "A URL of the resource that gives access to a distribution of the dataset."
188
+ },
189
+ "dcat:accessService": {
190
+ "type": "string",
191
+ "description": "A data service that gives access to the distribution."
192
+ },
193
+ "dcat:downloadURL": {
194
+ "type": "string",
195
+ "description": "The URL of the downloadable file in a given format."
196
+ },
197
+ "dcat:byteSize": {
198
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatNonNegativeIntegerType",
199
+ "description": "The size of the distribution in bytes."
200
+ },
201
+ "dcat:spatialResolutionInMeters": {
202
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDecimalType",
203
+ "description": "The minimum spatial separation resolvable in a distribution, measured in meters."
204
+ },
205
+ "dcat:temporalResolution": {
206
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatDurationType",
207
+ "description": "Minimum time period resolvable in the distribution."
208
+ },
209
+ "dcterms:conformsTo": {
210
+ "description": "Object or array data type",
211
+ "anyOf": [
212
+ {
213
+ "type": "string"
214
+ },
215
+ {
216
+ "type": "array",
217
+ "items": {
218
+ "type": "string"
219
+ }
220
+ }
221
+ ]
222
+ },
223
+ "dcat:mediaType": {
224
+ "type": "string",
225
+ "description": "The media type of the distribution as defined by IANA."
226
+ },
227
+ "dcterms:format": {
228
+ "type": "string",
229
+ "description": "The file format of the distribution."
230
+ },
231
+ "dcat:compressFormat": {
232
+ "type": "string",
233
+ "description": "The compression format of the distribution."
234
+ },
235
+ "dcat:packageFormat": {
236
+ "type": "string",
237
+ "description": "The package format of the distribution."
238
+ },
239
+ "spdx:checksum": {
240
+ "type": "string",
241
+ "description": "The checksum property provides a mechanism to verify the data integrity."
242
+ },
243
+ "odrl:hasPolicy": {
244
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicy",
245
+ "description": "An ODRL conformant policy expressing the rights associated with the distribution."
246
+ }
247
+ },
248
+ "required": [
249
+ "@context",
250
+ "@type"
251
+ ],
252
+ "additionalProperties": {
253
+ "anyOf": [
254
+ {
255
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
256
+ },
257
+ {
258
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
259
+ },
260
+ {
261
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
262
+ },
263
+ {
264
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
265
+ },
266
+ {
267
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
268
+ },
269
+ {
270
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
271
+ },
272
+ {
273
+ "type": "array"
274
+ }
275
+ ]
276
+ }
277
+ }
@@ -0,0 +1,195 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/w3c-dcat/DcatRelationship",
4
+ "description": "Interface for DCAT Relationship. An association class for attaching additional information to a relationship between DCAT Resources.",
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
+ "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/"
94
+ }
95
+ },
96
+ "required": [
97
+ "dcat",
98
+ "dcterms"
99
+ ]
100
+ },
101
+ "@id": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "string"
110
+ }
111
+ }
112
+ ]
113
+ },
114
+ "@included": {
115
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
116
+ },
117
+ "@graph": {
118
+ "anyOf": [
119
+ {
120
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
121
+ },
122
+ {
123
+ "type": "array",
124
+ "items": {
125
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ "@nest": {
131
+ "anyOf": [
132
+ {
133
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
134
+ },
135
+ {
136
+ "type": "array",
137
+ "items": {
138
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ "@type": {
144
+ "type": "string",
145
+ "const": "dcat:Relationship",
146
+ "description": "The type identifier, typically \"Relationship\"."
147
+ },
148
+ "@reverse": {
149
+ "type": "object",
150
+ "additionalProperties": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ "@index": {
155
+ "type": "string"
156
+ },
157
+ "dcterms:relation": {
158
+ "type": "string",
159
+ "description": "The link to a related resource."
160
+ },
161
+ "dcat:hadRole": {
162
+ "$ref": "https://schema.twindev.org/w3c-dcat/DcatRole",
163
+ "description": "The function of an entity or agent with respect to another resource."
164
+ }
165
+ },
166
+ "required": [
167
+ "@context",
168
+ "@type"
169
+ ],
170
+ "additionalProperties": {
171
+ "anyOf": [
172
+ {
173
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
174
+ },
175
+ {
176
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
177
+ },
178
+ {
179
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
180
+ },
181
+ {
182
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
183
+ },
184
+ {
185
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
186
+ },
187
+ {
188
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
189
+ },
190
+ {
191
+ "type": "array"
192
+ }
193
+ ]
194
+ }
195
+ }