@twin.org/standards-w3c-dcat 0.0.3-next.20 → 0.0.3-next.22
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.
|
@@ -67,7 +67,7 @@ export class DcatDataTypes {
|
|
|
67
67
|
schema: RoleSchema
|
|
68
68
|
}
|
|
69
69
|
];
|
|
70
|
-
DataTypeHelper.registerTypes(DcatContexts.Namespace, DcatContexts.
|
|
70
|
+
DataTypeHelper.registerTypes(DcatContexts.Namespace, DcatContexts.JsonLdContext, types);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
//# sourceMappingURL=dcatDataTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dcatDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dcatDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,aAAa,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9E,OAAO,mBAAmB,MAAM,mCAAmC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1F,OAAO,iBAAiB,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtF,OAAO,aAAa,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9E,OAAO,mBAAmB,MAAM,mCAAmC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1F,OAAO,kBAAkB,MAAM,kCAAkC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACxF,OAAO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AC1B,iDAAiD,EACjD,YAAY,CAAC,gBAAgB,CAC7B,CAAC;IACH,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,MAAM,KAAK,GAAG;YACb;gBACC,IAAI,EAAE,WAAW,CAAC,QAAQ;gBAC1B,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,OAAO;gBACzB,MAAM,EAAE,aAAa;aACrB;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,aAAa;gBAC/B,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,OAAO;gBACzB,MAAM,EAAE,aAAa;aACrB;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,YAAY;gBAC9B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,WAAW;gBAC7B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,aAAa;gBAC/B,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,YAAY;gBAC9B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,MAAM,EAAE,UAAU;aAClB;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IACzF,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { DcatClasses } from \"../models/dcatClasses.js\";\nimport { DcatContexts } from \"../models/dcatContexts.js\";\nimport CatalogSchema from \"../schemas/DcatCatalog.json\" with { type: \"json\" };\nimport CatalogRecordSchema from \"../schemas/DcatCatalogRecord.json\" with { type: \"json\" };\nimport DataServiceSchema from \"../schemas/DcatDataService.json\" with { type: \"json\" };\nimport DatasetSchema from \"../schemas/DcatDataset.json\" with { type: \"json\" };\nimport DatasetSeriesSchema from \"../schemas/DcatDatasetSeries.json\" with { type: \"json\" };\nimport DistributionSchema from \"../schemas/DcatDistribution.json\" with { type: \"json\" };\nimport RelationshipSchema from \"../schemas/DcatRelationship.json\" with { type: \"json\" };\nimport ResourceSchema from \"../schemas/DcatResource.json\" with { type: \"json\" };\nimport RoleSchema from \"../schemas/DcatRole.json\" with { type: \"json\" };\n\n/**\n * Class providing DCAT data type utilities and JSON-LD redirect registration.\n */\nexport class DcatDataTypes {\n\t/**\n\t * Register redirects for DCAT namespace to enable offline JSON-LD processing.\n\t * This maps the W3C DCAT namespace to a local redirect URL for faster resolution.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(/https?:\\/\\/www\\.w3\\.org\\/ns\\/dcat#?/, DcatContexts.JsonLdContext);\n\n\t\tJsonLdProcessor.addRedirect(\n\t\t\t/https?:\\/\\/www\\.w3\\.org\\/2000\\/01\\/rdf-schema#?/,\n\t\t\tDcatContexts.JsonLdContextRdf\n\t\t);\n\t}\n\n\t/**\n\t * Register all the DCAT data types with their JSON schemas.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DcatClasses.Resource,\n\t\t\t\tschema: ResourceSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.Catalog,\n\t\t\t\tschema: CatalogSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.CatalogRecord,\n\t\t\t\tschema: CatalogRecordSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.Dataset,\n\t\t\t\tschema: DatasetSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.Distribution,\n\t\t\t\tschema: DistributionSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.DataService,\n\t\t\t\tschema: DataServiceSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.DatasetSeries,\n\t\t\t\tschema: DatasetSeriesSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.Relationship,\n\t\t\t\tschema: RelationshipSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DcatClasses.Role,\n\t\t\t\tschema: RoleSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(DcatContexts.Namespace, DcatContexts.JsonLdContext, types);\n\t}\n}\n"]}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-dcat - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.22](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.21...standards-w3c-dcat-v0.0.3-next.22) (2026-01-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-w3c-dcat:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
16
|
+
* @twin.org/standards-foaf bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
17
|
+
* @twin.org/standards-w3c-odrl bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
18
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
19
|
+
|
|
20
|
+
## [0.0.3-next.21](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.20...standards-w3c-dcat-v0.0.3-next.21) (2026-01-23)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* update registrations ([dd3c92f](https://github.com/twinfoundation/standards/commit/dd3c92f52ff44679f61ff2a84b9fbc98bdc574d5))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* The following workspace dependencies were updated
|
|
31
|
+
* dependencies
|
|
32
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
33
|
+
* @twin.org/standards-foaf bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
34
|
+
* @twin.org/standards-w3c-odrl bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
35
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
36
|
+
|
|
3
37
|
## [0.0.3-next.20](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.19...standards-w3c-dcat-v0.0.3-next.20) (2026-01-21)
|
|
4
38
|
|
|
5
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-w3c-dcat",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.22",
|
|
4
4
|
"description": "Models which define the structure of W3C DCAT Standard",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/data-json-ld": "next",
|
|
18
|
-
"@twin.org/standards-dublin-core": "0.0.3-next.
|
|
19
|
-
"@twin.org/standards-foaf": "0.0.3-next.
|
|
20
|
-
"@twin.org/standards-w3c-odrl": "0.0.3-next.
|
|
21
|
-
"@twin.org/standards-w3c-vcard": "0.0.3-next.
|
|
18
|
+
"@twin.org/standards-dublin-core": "0.0.3-next.22",
|
|
19
|
+
"@twin.org/standards-foaf": "0.0.3-next.22",
|
|
20
|
+
"@twin.org/standards-w3c-odrl": "0.0.3-next.22",
|
|
21
|
+
"@twin.org/standards-w3c-vcard": "0.0.3-next.22",
|
|
22
22
|
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/es/index.js",
|