@twin.org/standards-w3c-dcat 0.0.3-next.16 → 0.0.3-next.18

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.JsonLdContext, types);
70
+ DataTypeHelper.registerTypes(DcatContexts.Namespace, DcatContexts.Context, 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,kBAAkB,MAAM,kCAAkC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC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AC;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"]}
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,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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,OAAO,EAAE,KAAK,CAAC,CAAC;IACnF,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.Context, types);\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dcatContextType.js","sourceRoot":"","sources":["../../../src/models/dcatContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinition } from \"@twin.org/data-json-ld\";\nimport type { DublinCoreContexts } from \"@twin.org/standards-dublin-core\";\nimport type { FoafContexts } from \"@twin.org/standards-foaf\";\nimport type { OdrlContexts } from \"@twin.org/standards-w3c-odrl\";\nimport type { DcatContexts } from \"./dcatContexts.js\";\n\n/**\n * The DCAT JSON-LD context type.\n * Supports the DCAT context URL or arrays with additional context definitions.\n */\nexport type DcatContextType = {\n\tdcat: typeof DcatContexts.Namespace;\n\tdcterms: typeof DublinCoreContexts.NamespaceTerms;\n\todrl?: typeof OdrlContexts.Namespace;\n\tfoaf?: typeof FoafContexts.Namespace;\n} & IJsonLdContextDefinition;\n"]}
1
+ {"version":3,"file":"dcatContextType.js","sourceRoot":"","sources":["../../../src/models/dcatContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinition } from \"@twin.org/data-json-ld\";\nimport type { DublinCoreContexts } from \"@twin.org/standards-dublin-core\";\nimport type { FoafContexts } from \"@twin.org/standards-foaf\";\nimport type { OdrlContexts } from \"@twin.org/standards-w3c-odrl\";\nimport type { DcatContexts } from \"./dcatContexts.js\";\n\n/**\n * The DCAT JSON-LD context type.\n * Supports the DCAT context URL or arrays with additional context definitions.\n */\nexport type DcatContextType = {\n\tdcat: typeof DcatContexts.Context;\n\tdcterms: typeof DublinCoreContexts.ContextTerms;\n\todrl?: typeof OdrlContexts.JsonLdContext;\n\tfoaf?: typeof FoafContexts.JsonLdContext;\n} & IJsonLdContextDefinition;\n"]}
@@ -7,9 +7,15 @@
7
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
8
  export const DcatContexts = {
9
9
  /**
10
- * The namespace for DCAT terms
10
+ * The canonical RDF namespace URI.
11
11
  */
12
12
  Namespace: "http://www.w3.org/ns/dcat#",
13
+ /**
14
+ * The value to use in @context.
15
+ * Note: Context matches Namespace (both include trailing hash) as per DCAT 3.0 specification.
16
+ * The DCAT JSON-LD context URL format includes a trailing hash.
17
+ */
18
+ Context: "http://www.w3.org/ns/dcat#",
13
19
  /**
14
20
  * The JSON-LD Context URL.
15
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dcatContexts.js","sourceRoot":"","sources":["../../../src/models/dcatContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,4BAA4B;IAEvC;;OAEG;IACH,aAAa,EAAE,mCAAmC;IAElD;;;OAGG;IACH,YAAY,EAAE,uCAAuC;IAErD;;;OAGG;IACH,gBAAgB,EAAE,iDAAiD;CAC1D,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * DCAT (Data Catalog Vocabulary) namespace contexts.\n * @see https://www.w3.org/TR/vocab-dcat-3/\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DcatContexts = {\n\t/**\n\t * The namespace for DCAT terms\n\t */\n\tNamespace: \"http://www.w3.org/ns/dcat#\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"https://www.w3.org/ns/dcat.jsonld\",\n\n\t/**\n\t * The namespace for RDF vocabulary.\n\t * @see https://www.w3.org/TR/rdf-schema/\n\t */\n\tNamespaceRdf: \"http://www.w3.org/2000/01/rdf-schema#\",\n\n\t/**\n\t * The context for RDF vocabulary Json-LD.\n\t * @see https://www.w3.org/TR/rdf-schema/\n\t */\n\tJsonLdContextRdf: \"https://schema.twindev.org/w3c-rdf/types.jsonld\"\n} as const;\n\n/**\n * The contexts for DCAT.\n */\nexport type DcatContexts = (typeof DcatContexts)[keyof typeof DcatContexts];\n"]}
1
+ {"version":3,"file":"dcatContexts.js","sourceRoot":"","sources":["../../../src/models/dcatContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,4BAA4B;IAEvC;;;;OAIG;IACH,OAAO,EAAE,4BAA4B;IAErC;;OAEG;IACH,aAAa,EAAE,mCAAmC;IAElD;;;OAGG;IACH,YAAY,EAAE,uCAAuC;IAErD;;;OAGG;IACH,gBAAgB,EAAE,iDAAiD;CAC1D,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * DCAT (Data Catalog Vocabulary) namespace contexts.\n * @see https://www.w3.org/TR/vocab-dcat-3/\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DcatContexts = {\n\t/**\n\t * The canonical RDF namespace URI.\n\t */\n\tNamespace: \"http://www.w3.org/ns/dcat#\",\n\n\t/**\n\t * The value to use in @context.\n\t * Note: Context matches Namespace (both include trailing hash) as per DCAT 3.0 specification.\n\t * The DCAT JSON-LD context URL format includes a trailing hash.\n\t */\n\tContext: \"http://www.w3.org/ns/dcat#\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"https://www.w3.org/ns/dcat.jsonld\",\n\n\t/**\n\t * The namespace for RDF vocabulary.\n\t * @see https://www.w3.org/TR/rdf-schema/\n\t */\n\tNamespaceRdf: \"http://www.w3.org/2000/01/rdf-schema#\",\n\n\t/**\n\t * The context for RDF vocabulary Json-LD.\n\t * @see https://www.w3.org/TR/rdf-schema/\n\t */\n\tJsonLdContextRdf: \"https://schema.twindev.org/w3c-rdf/types.jsonld\"\n} as const;\n\n/**\n * The contexts for DCAT.\n */\nexport type DcatContexts = (typeof DcatContexts)[keyof typeof DcatContexts];\n"]}
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "odrl": {
88
88
  "type": "string",
89
- "const": "http://www.w3.org/ns/odrl/2/"
89
+ "const": "http://www.w3.org/ns/odrl.jsonld"
90
90
  },
91
91
  "foaf": {
92
92
  "type": "string",
93
- "const": "https://xmlns.com/foaf/0.1/"
93
+ "const": "https://schema.twindev.org/foaf/types.jsonld"
94
94
  }
95
95
  },
96
96
  "required": [
@@ -8,8 +8,8 @@ import type { DcatContexts } from "./dcatContexts.js";
8
8
  * Supports the DCAT context URL or arrays with additional context definitions.
9
9
  */
10
10
  export type DcatContextType = {
11
- dcat: typeof DcatContexts.Namespace;
12
- dcterms: typeof DublinCoreContexts.NamespaceTerms;
13
- odrl?: typeof OdrlContexts.Namespace;
14
- foaf?: typeof FoafContexts.Namespace;
11
+ dcat: typeof DcatContexts.Context;
12
+ dcterms: typeof DublinCoreContexts.ContextTerms;
13
+ odrl?: typeof OdrlContexts.JsonLdContext;
14
+ foaf?: typeof FoafContexts.JsonLdContext;
15
15
  } & IJsonLdContextDefinition;
@@ -4,9 +4,15 @@
4
4
  */
5
5
  export declare const DcatContexts: {
6
6
  /**
7
- * The namespace for DCAT terms
7
+ * The canonical RDF namespace URI.
8
8
  */
9
9
  readonly Namespace: "http://www.w3.org/ns/dcat#";
10
+ /**
11
+ * The value to use in @context.
12
+ * Note: Context matches Namespace (both include trailing hash) as per DCAT 3.0 specification.
13
+ * The DCAT JSON-LD context URL format includes a trailing hash.
14
+ */
15
+ readonly Context: "http://www.w3.org/ns/dcat#";
10
16
  /**
11
17
  * The JSON-LD Context URL.
12
18
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @twin.org/standards-w3c-dcat - Changelog
2
2
 
3
+ ## [0.0.3-next.18](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.17...standards-w3c-dcat-v0.0.3-next.18) (2026-01-21)
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.17 to 0.0.3-next.18
16
+ * @twin.org/standards-foaf bumped from 0.0.3-next.17 to 0.0.3-next.18
17
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.17 to 0.0.3-next.18
18
+ * @twin.org/standards-w3c-vcard bumped from 0.0.3-next.17 to 0.0.3-next.18
19
+
20
+ ## [0.0.3-next.17](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.16...standards-w3c-dcat-v0.0.3-next.17) (2026-01-21)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * updating the missing packages ([#114](https://github.com/twinfoundation/standards/issues/114)) ([90b03f8](https://github.com/twinfoundation/standards/commit/90b03f8bdcd81506284d74a445840386c2da2d35))
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.16 to 0.0.3-next.17
33
+ * @twin.org/standards-foaf bumped from 0.0.3-next.16 to 0.0.3-next.17
34
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.16 to 0.0.3-next.17
35
+ * @twin.org/standards-w3c-vcard bumped from 0.0.3-next.16 to 0.0.3-next.17
36
+
3
37
  ## [0.0.3-next.16](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.15...standards-w3c-dcat-v0.0.3-next.16) (2026-01-19)
4
38
 
5
39
 
@@ -9,16 +9,16 @@ Supports the DCAT context URL or arrays with additional context definitions.
9
9
 
10
10
  ### dcat
11
11
 
12
- > **dcat**: *typeof* [`Namespace`](../variables/DcatContexts.md#namespace)
12
+ > **dcat**: *typeof* [`Context`](../variables/DcatContexts.md#context)
13
13
 
14
14
  ### dcterms
15
15
 
16
- > **dcterms**: *typeof* `DublinCoreContexts.NamespaceTerms`
16
+ > **dcterms**: *typeof* `DublinCoreContexts.ContextTerms`
17
17
 
18
18
  ### odrl?
19
19
 
20
- > `optional` **odrl**: *typeof* `OdrlContexts.Namespace`
20
+ > `optional` **odrl**: *typeof* `OdrlContexts.JsonLdContext`
21
21
 
22
22
  ### foaf?
23
23
 
24
- > `optional` **foaf**: *typeof* `FoafContexts.Namespace`
24
+ > `optional` **foaf**: *typeof* `FoafContexts.JsonLdContext`
@@ -10,7 +10,15 @@ DCAT (Data Catalog Vocabulary) namespace contexts.
10
10
 
11
11
  > `readonly` **Namespace**: `"http://www.w3.org/ns/dcat#"` = `"http://www.w3.org/ns/dcat#"`
12
12
 
13
- The namespace for DCAT terms
13
+ The canonical RDF namespace URI.
14
+
15
+ ### Context
16
+
17
+ > `readonly` **Context**: `"http://www.w3.org/ns/dcat#"` = `"http://www.w3.org/ns/dcat#"`
18
+
19
+ The value to use in @context.
20
+ Note: Context matches Namespace (both include trailing hash) as per DCAT 3.0 specification.
21
+ The DCAT JSON-LD context URL format includes a trailing hash.
14
22
 
15
23
  ### JsonLdContext
16
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-w3c-dcat",
3
- "version": "0.0.3-next.16",
3
+ "version": "0.0.3-next.18",
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.16",
19
- "@twin.org/standards-foaf": "0.0.3-next.16",
20
- "@twin.org/standards-w3c-odrl": "0.0.3-next.16",
21
- "@twin.org/standards-w3c-vcard": "0.0.3-next.16",
18
+ "@twin.org/standards-dublin-core": "0.0.3-next.18",
19
+ "@twin.org/standards-foaf": "0.0.3-next.18",
20
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.18",
21
+ "@twin.org/standards-w3c-vcard": "0.0.3-next.18",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/es/index.js",