@twin.org/standards-w3c-dcat 0.0.3-next.3 → 0.0.3-next.31

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 (102) hide show
  1. package/dist/es/dataTypes/dcatDataTypes.js +54 -57
  2. package/dist/es/dataTypes/dcatDataTypes.js.map +1 -1
  3. package/dist/es/index.js +10 -9
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/IDcatCatalog.js +2 -0
  6. package/dist/es/models/IDcatCatalog.js.map +1 -0
  7. package/dist/es/models/IDcatCatalogRecord.js +2 -0
  8. package/dist/es/models/IDcatCatalogRecord.js.map +1 -0
  9. package/dist/es/models/IDcatDataService.js +2 -0
  10. package/dist/es/models/IDcatDataService.js.map +1 -0
  11. package/dist/es/models/IDcatDataset.js +2 -0
  12. package/dist/es/models/IDcatDataset.js.map +1 -0
  13. package/dist/es/models/IDcatDatasetSeries.js +2 -0
  14. package/dist/es/models/IDcatDatasetSeries.js.map +1 -0
  15. package/dist/es/models/IDcatDistribution.js +2 -0
  16. package/dist/es/models/IDcatDistribution.js.map +1 -0
  17. package/dist/es/models/IDcatRelationship.js +2 -0
  18. package/dist/es/models/IDcatRelationship.js.map +1 -0
  19. package/dist/es/models/IDcatResource.js +2 -0
  20. package/dist/es/models/IDcatResource.js.map +1 -0
  21. package/dist/es/models/IDcatRole.js +2 -0
  22. package/dist/es/models/IDcatRole.js.map +1 -0
  23. package/dist/es/models/dcatClasses.js +9 -9
  24. package/dist/es/models/dcatClasses.js.map +1 -1
  25. package/dist/es/models/dcatContextType.js.map +1 -1
  26. package/dist/es/models/dcatContexts.js +16 -16
  27. package/dist/es/models/dcatContexts.js.map +1 -1
  28. package/dist/es/models/types/dcatContextFreeTypes.js +4 -0
  29. package/dist/es/models/types/dcatContextFreeTypes.js.map +1 -0
  30. package/dist/es/models/types/dcatPropertyTypes.js.map +1 -1
  31. package/dist/es/schemas/{Catalog.json → DcatCatalog.json} +37 -28
  32. package/dist/es/schemas/{CatalogRecord.json → DcatCatalogRecord.json} +16 -7
  33. package/dist/es/schemas/{DataService.json → DcatDataService.json} +20 -11
  34. package/dist/es/schemas/{Dataset.json → DcatDataset.json} +27 -18
  35. package/dist/es/schemas/{DatasetSeries.json → DcatDatasetSeries.json} +25 -16
  36. package/dist/es/schemas/{Distribution.json → DcatDistribution.json} +18 -9
  37. package/dist/es/schemas/{Relationship.json → DcatRelationship.json} +11 -3
  38. package/dist/es/schemas/{Resource.json → DcatResource.json} +24 -15
  39. package/dist/es/schemas/{Role.json → DcatRole.json} +12 -3
  40. package/dist/types/index.d.ts +10 -9
  41. package/dist/types/models/{ICatalog.d.ts → IDcatCatalog.d.ts} +10 -11
  42. package/dist/types/models/{ICatalogRecord.d.ts → IDcatCatalogRecord.d.ts} +9 -9
  43. package/dist/types/models/{IDataService.d.ts → IDcatDataService.d.ts} +2 -2
  44. package/dist/types/models/{IDataset.d.ts → IDcatDataset.d.ts} +9 -9
  45. package/dist/types/models/{IDatasetSeries.d.ts → IDcatDatasetSeries.d.ts} +2 -2
  46. package/dist/types/models/{IDistribution.d.ts → IDcatDistribution.d.ts} +10 -10
  47. package/dist/types/models/{IRelationship.d.ts → IDcatRelationship.d.ts} +3 -3
  48. package/dist/types/models/{IResource.d.ts → IDcatResource.d.ts} +14 -14
  49. package/dist/types/models/{IRole.d.ts → IDcatRole.d.ts} +4 -4
  50. package/dist/types/models/dcatClasses.d.ts +9 -9
  51. package/dist/types/models/dcatContextType.d.ts +6 -2
  52. package/dist/types/models/dcatContexts.d.ts +16 -16
  53. package/dist/types/models/types/dcatContextFreeTypes.d.ts +40 -0
  54. package/dist/types/models/types/dcatPropertyTypes.d.ts +6 -6
  55. package/docs/changelog.md +481 -0
  56. package/docs/reference/index.md +20 -15
  57. package/docs/reference/interfaces/{ICatalog.md → IDcatCatalog.md} +49 -49
  58. package/docs/reference/interfaces/{ICatalogRecord.md → IDcatCatalogRecord.md} +7 -7
  59. package/docs/reference/interfaces/{IDataService.md → IDcatDataService.md} +33 -33
  60. package/docs/reference/interfaces/{IDataset.md → IDcatDataset.md} +37 -37
  61. package/docs/reference/interfaces/{IDatasetSeries.md → IDcatDatasetSeries.md} +43 -43
  62. package/docs/reference/interfaces/{IDistribution.md → IDcatDistribution.md} +6 -6
  63. package/docs/reference/interfaces/{IRelationship.md → IDcatRelationship.md} +3 -3
  64. package/docs/reference/interfaces/{IResource.md → IDcatResource.md} +13 -13
  65. package/docs/reference/interfaces/{IRole.md → IDcatRole.md} +5 -5
  66. package/docs/reference/type-aliases/CatalogOptionalContext.md +11 -0
  67. package/docs/reference/type-aliases/CatalogRecordOptionalContext.md +11 -0
  68. package/docs/reference/type-aliases/DataServiceOptionalContext.md +11 -0
  69. package/docs/reference/type-aliases/DatasetOptionalContext.md +11 -0
  70. package/docs/reference/type-aliases/DcatContextType.md +10 -2
  71. package/docs/reference/type-aliases/{DateTimeType.md → DcatDateTimeType.md} +2 -2
  72. package/docs/reference/type-aliases/DcatDecimalType.md +5 -0
  73. package/docs/reference/type-aliases/DcatDurationType.md +5 -0
  74. package/docs/reference/type-aliases/DcatIriType.md +5 -0
  75. package/docs/reference/type-aliases/{LiteralType.md → DcatLiteralType.md} +2 -2
  76. package/docs/reference/type-aliases/DcatNonNegativeIntegerType.md +5 -0
  77. package/docs/reference/type-aliases/DistributionOptionalContext.md +11 -0
  78. package/docs/reference/variables/DcatClasses.md +9 -9
  79. package/docs/reference/variables/DcatContexts.md +22 -28
  80. package/package.json +5 -5
  81. package/dist/es/models/ICatalog.js +0 -2
  82. package/dist/es/models/ICatalog.js.map +0 -1
  83. package/dist/es/models/ICatalogRecord.js +0 -2
  84. package/dist/es/models/ICatalogRecord.js.map +0 -1
  85. package/dist/es/models/IDataService.js +0 -2
  86. package/dist/es/models/IDataService.js.map +0 -1
  87. package/dist/es/models/IDataset.js +0 -2
  88. package/dist/es/models/IDataset.js.map +0 -1
  89. package/dist/es/models/IDatasetSeries.js +0 -2
  90. package/dist/es/models/IDatasetSeries.js.map +0 -1
  91. package/dist/es/models/IDistribution.js +0 -2
  92. package/dist/es/models/IDistribution.js.map +0 -1
  93. package/dist/es/models/IRelationship.js +0 -2
  94. package/dist/es/models/IRelationship.js.map +0 -1
  95. package/dist/es/models/IResource.js +0 -2
  96. package/dist/es/models/IResource.js.map +0 -1
  97. package/dist/es/models/IRole.js +0 -2
  98. package/dist/es/models/IRole.js.map +0 -1
  99. package/docs/reference/type-aliases/DecimalType.md +0 -5
  100. package/docs/reference/type-aliases/DurationType.md +0 -5
  101. package/docs/reference/type-aliases/IriType.md +0 -5
  102. package/docs/reference/type-aliases/NonNegativeIntegerType.md +0 -5
@@ -1,16 +1,18 @@
1
- import { DataTypeHandlerFactory } from "@twin.org/data-core";
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { DataTypeHelper } from "@twin.org/data-core";
2
4
  import { JsonLdProcessor } from "@twin.org/data-json-ld";
3
5
  import { DcatClasses } from "../models/dcatClasses.js";
4
6
  import { DcatContexts } from "../models/dcatContexts.js";
5
- import CatalogSchema from "../schemas/Catalog.json" with { type: "json" };
6
- import CatalogRecordSchema from "../schemas/CatalogRecord.json" with { type: "json" };
7
- import DataServiceSchema from "../schemas/DataService.json" with { type: "json" };
8
- import DatasetSchema from "../schemas/Dataset.json" with { type: "json" };
9
- import DatasetSeriesSchema from "../schemas/DatasetSeries.json" with { type: "json" };
10
- import DistributionSchema from "../schemas/Distribution.json" with { type: "json" };
11
- import RelationshipSchema from "../schemas/Relationship.json" with { type: "json" };
12
- import ResourceSchema from "../schemas/Resource.json" with { type: "json" };
13
- import RoleSchema from "../schemas/Role.json" with { type: "json" };
7
+ import CatalogSchema from "../schemas/DcatCatalog.json" with { type: "json" };
8
+ import CatalogRecordSchema from "../schemas/DcatCatalogRecord.json" with { type: "json" };
9
+ import DataServiceSchema from "../schemas/DcatDataService.json" with { type: "json" };
10
+ import DatasetSchema from "../schemas/DcatDataset.json" with { type: "json" };
11
+ import DatasetSeriesSchema from "../schemas/DcatDatasetSeries.json" with { type: "json" };
12
+ import DistributionSchema from "../schemas/DcatDistribution.json" with { type: "json" };
13
+ import RelationshipSchema from "../schemas/DcatRelationship.json" with { type: "json" };
14
+ import ResourceSchema from "../schemas/DcatResource.json" with { type: "json" };
15
+ import RoleSchema from "../schemas/DcatRole.json" with { type: "json" };
14
16
  /**
15
17
  * Class providing DCAT data type utilities and JSON-LD redirect registration.
16
18
  */
@@ -20,58 +22,53 @@ export class DcatDataTypes {
20
22
  * This maps the W3C DCAT namespace to a local redirect URL for faster resolution.
21
23
  */
22
24
  static registerRedirects() {
23
- JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/ns\/dcat#?/, DcatContexts.ContextRedirect);
24
- JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/2000\/01\/rdf-schema#?/, DcatContexts.ContextRdfRedirect);
25
+ JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/ns\/dcat#?/, DcatContexts.JsonLdContext);
26
+ JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/2000\/01\/rdf-schema#?/, DcatContexts.JsonLdContextRdf);
25
27
  }
26
28
  /**
27
29
  * Register all the DCAT data types with their JSON schemas.
28
30
  */
29
31
  static registerTypes() {
30
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Resource}`, () => ({
31
- context: DcatContexts.ContextRoot,
32
- type: DcatClasses.Resource,
33
- jsonSchema: async () => ResourceSchema
34
- }));
35
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Catalog}`, () => ({
36
- context: DcatContexts.ContextRoot,
37
- type: DcatClasses.Catalog,
38
- jsonSchema: async () => CatalogSchema
39
- }));
40
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Dataset}`, () => ({
41
- context: DcatContexts.ContextRoot,
42
- type: DcatClasses.Dataset,
43
- jsonSchema: async () => DatasetSchema
44
- }));
45
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Distribution}`, () => ({
46
- context: DcatContexts.ContextRoot,
47
- type: DcatClasses.Distribution,
48
- jsonSchema: async () => DistributionSchema
49
- }));
50
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.DataService}`, () => ({
51
- context: DcatContexts.ContextRoot,
52
- type: DcatClasses.DataService,
53
- jsonSchema: async () => DataServiceSchema
54
- }));
55
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.DatasetSeries}`, () => ({
56
- context: DcatContexts.ContextRoot,
57
- type: DcatClasses.DatasetSeries,
58
- jsonSchema: async () => DatasetSeriesSchema
59
- }));
60
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.CatalogRecord}`, () => ({
61
- context: DcatContexts.ContextRoot,
62
- type: DcatClasses.CatalogRecord,
63
- jsonSchema: async () => CatalogRecordSchema
64
- }));
65
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Relationship}`, () => ({
66
- context: DcatContexts.ContextRoot,
67
- type: DcatClasses.Relationship,
68
- jsonSchema: async () => RelationshipSchema
69
- }));
70
- DataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Role}`, () => ({
71
- context: DcatContexts.ContextRoot,
72
- type: DcatClasses.Role,
73
- jsonSchema: async () => RoleSchema
74
- }));
32
+ const types = [
33
+ {
34
+ type: DcatClasses.Resource,
35
+ schema: ResourceSchema
36
+ },
37
+ {
38
+ type: DcatClasses.Catalog,
39
+ schema: CatalogSchema
40
+ },
41
+ {
42
+ type: DcatClasses.CatalogRecord,
43
+ schema: CatalogRecordSchema
44
+ },
45
+ {
46
+ type: DcatClasses.Dataset,
47
+ schema: DatasetSchema
48
+ },
49
+ {
50
+ type: DcatClasses.Distribution,
51
+ schema: DistributionSchema
52
+ },
53
+ {
54
+ type: DcatClasses.DataService,
55
+ schema: DataServiceSchema
56
+ },
57
+ {
58
+ type: DcatClasses.DatasetSeries,
59
+ schema: DatasetSeriesSchema
60
+ },
61
+ {
62
+ type: DcatClasses.Relationship,
63
+ schema: RelationshipSchema
64
+ },
65
+ {
66
+ type: DcatClasses.Role,
67
+ schema: RoleSchema
68
+ }
69
+ ];
70
+ DataTypeHelper.registerTypes(DcatContexts.Namespace, DcatContexts.JsonLdContext, types);
71
+ DataTypeHelper.registerTypes(DcatContexts.JsonSchemaNamespace, DcatContexts.JsonLdContext, types);
75
72
  }
76
73
  }
77
74
  //# sourceMappingURL=dcatDataTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dcatDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dcatDataTypes.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } 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/Catalog.json\" with { type: \"json\" };\nimport CatalogRecordSchema from \"../schemas/CatalogRecord.json\" with { type: \"json\" };\nimport DataServiceSchema from \"../schemas/DataService.json\" with { type: \"json\" };\nimport DatasetSchema from \"../schemas/Dataset.json\" with { type: \"json\" };\nimport DatasetSeriesSchema from \"../schemas/DatasetSeries.json\" with { type: \"json\" };\nimport DistributionSchema from \"../schemas/Distribution.json\" with { type: \"json\" };\nimport RelationshipSchema from \"../schemas/Relationship.json\" with { type: \"json\" };\nimport ResourceSchema from \"../schemas/Resource.json\" with { type: \"json\" };\nimport RoleSchema from \"../schemas/Role.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(\n\t\t\t/https?:\\/\\/www\\.w3\\.org\\/ns\\/dcat#?/,\n\t\t\tDcatContexts.ContextRedirect\n\t\t);\n\n\t\tJsonLdProcessor.addRedirect(\n\t\t\t/https?:\\/\\/www\\.w3\\.org\\/2000\\/01\\/rdf-schema#?/,\n\t\t\tDcatContexts.ContextRdfRedirect\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\tDataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Resource}`, () => ({\n\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\ttype: DcatClasses.Resource,\n\t\t\tjsonSchema: async () => ResourceSchema as IJsonSchema\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Catalog}`, () => ({\n\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\ttype: DcatClasses.Catalog,\n\t\t\tjsonSchema: async () => CatalogSchema as IJsonSchema\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Dataset}`, () => ({\n\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\ttype: DcatClasses.Dataset,\n\t\t\tjsonSchema: async () => DatasetSchema as IJsonSchema\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DcatContexts.ContextRoot}${DcatClasses.Distribution}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\t\ttype: DcatClasses.Distribution,\n\t\t\t\tjsonSchema: async () => DistributionSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DcatContexts.ContextRoot}${DcatClasses.DataService}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\t\ttype: DcatClasses.DataService,\n\t\t\t\tjsonSchema: async () => DataServiceSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DcatContexts.ContextRoot}${DcatClasses.DatasetSeries}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\t\ttype: DcatClasses.DatasetSeries,\n\t\t\t\tjsonSchema: async () => DatasetSeriesSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DcatContexts.ContextRoot}${DcatClasses.CatalogRecord}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\t\ttype: DcatClasses.CatalogRecord,\n\t\t\t\tjsonSchema: async () => CatalogRecordSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DcatContexts.ContextRoot}${DcatClasses.Relationship}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\t\ttype: DcatClasses.Relationship,\n\t\t\t\tjsonSchema: async () => RelationshipSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(`${DcatContexts.ContextRoot}${DcatClasses.Role}`, () => ({\n\t\t\tcontext: DcatContexts.ContextRoot,\n\t\t\ttype: DcatClasses.Role,\n\t\t\tjsonSchema: async () => RoleSchema as IJsonSchema\n\t\t}));\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,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;AACxF,OAAO,cAAc,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChF,OAAO,UAAU,MAAM,0BAA0B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAExE;;GAEG;AACH,MAAM,OAAO,aAAa;IACzB;;;OAGG;IACI,MAAM,CAAC,iBAAiB;QAC9B,eAAe,CAAC,WAAW,CAAC,qCAAqC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;QAE/F,eAAe,CAAC,WAAW,CAC1B,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;QACxF,cAAc,CAAC,aAAa,CAC3B,YAAY,CAAC,mBAAmB,EAChC,YAAY,CAAC,aAAa,EAC1B,KAAK,CACL,CAAC;IACH,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\tDataTypeHelper.registerTypes(\n\t\t\tDcatContexts.JsonSchemaNamespace,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\t}\n}\n"]}
package/dist/es/index.js CHANGED
@@ -5,14 +5,15 @@ export * from "./models/dcatClasses.js";
5
5
  export * from "./models/dcatContexts.js";
6
6
  export * from "./models/dcatContextType.js";
7
7
  export * from "./models/dcatRelationshipTypes.js";
8
- export * from "./models/ICatalog.js";
9
- export * from "./models/ICatalogRecord.js";
10
- export * from "./models/IDataService.js";
11
- export * from "./models/IDataset.js";
12
- export * from "./models/IDatasetSeries.js";
13
- export * from "./models/IDistribution.js";
14
- export * from "./models/IRelationship.js";
15
- export * from "./models/IResource.js";
16
- export * from "./models/IRole.js";
8
+ export * from "./models/IDcatCatalog.js";
9
+ export * from "./models/IDcatCatalogRecord.js";
10
+ export * from "./models/IDcatDataService.js";
11
+ export * from "./models/IDcatDataset.js";
12
+ export * from "./models/IDcatDatasetSeries.js";
13
+ export * from "./models/IDcatDistribution.js";
14
+ export * from "./models/IDcatRelationship.js";
15
+ export * from "./models/IDcatResource.js";
16
+ export * from "./models/IDcatRole.js";
17
17
  export * from "./models/types/dcatPropertyTypes.js";
18
+ export * from "./models/types/dcatContextFreeTypes.js";
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qCAAqC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nexport * from \"./dataTypes/dcatDataTypes.js\";\nexport * from \"./models/dcatClasses.js\";\nexport * from \"./models/dcatContexts.js\";\nexport * from \"./models/dcatContextType.js\";\nexport * from \"./models/dcatRelationshipTypes.js\";\nexport * from \"./models/ICatalog.js\";\nexport * from \"./models/ICatalogRecord.js\";\nexport * from \"./models/IDataService.js\";\nexport * from \"./models/IDataset.js\";\nexport * from \"./models/IDatasetSeries.js\";\nexport * from \"./models/IDistribution.js\";\nexport * from \"./models/IRelationship.js\";\nexport * from \"./models/IResource.js\";\nexport * from \"./models/IRole.js\";\nexport * from \"./models/types/dcatPropertyTypes.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nexport * from \"./dataTypes/dcatDataTypes.js\";\nexport * from \"./models/dcatClasses.js\";\nexport * from \"./models/dcatContexts.js\";\nexport * from \"./models/dcatContextType.js\";\nexport * from \"./models/dcatRelationshipTypes.js\";\nexport * from \"./models/IDcatCatalog.js\";\nexport * from \"./models/IDcatCatalogRecord.js\";\nexport * from \"./models/IDcatDataService.js\";\nexport * from \"./models/IDcatDataset.js\";\nexport * from \"./models/IDcatDatasetSeries.js\";\nexport * from \"./models/IDcatDistribution.js\";\nexport * from \"./models/IDcatRelationship.js\";\nexport * from \"./models/IDcatResource.js\";\nexport * from \"./models/IDcatRole.js\";\nexport * from \"./models/types/dcatPropertyTypes.js\";\nexport * from \"./models/types/dcatContextFreeTypes.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatCatalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatCatalog.js","sourceRoot":"","sources":["../../../src/models/IDcatCatalog.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { IDcatDataset } from \"./IDcatDataset.js\";\nimport type { IDcatResource } from \"./IDcatResource.js\";\nimport type {\n\tCatalogOptionalContext,\n\tCatalogRecordOptionalContext,\n\tDataServiceOptionalContext,\n\tDatasetOptionalContext\n} from \"./types/dcatContextFreeTypes.js\";\n\n/**\n * Interface for DCAT Catalog.\n * A curated collection of metadata about resources (datasets and data services).\n * Note: dcat:Catalog is a sub-class of dcat:Dataset per the W3C spec.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog\n */\nexport interface IDcatCatalog extends IDcatDataset {\n\t/**\n\t * The type identifier, typically \"Catalog\".\n\t */\n\t\"@type\": typeof DcatClasses.Catalog;\n\n\t/**\n\t * A homepage of the catalog (a public Web document usually available in HTML).\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_homepage\n\t */\n\t\"foaf:homepage\"?: string;\n\n\t/**\n\t * A knowledge organization system (KOS) used to classify the resources in the catalog.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_themes\n\t */\n\t\"dcat:themeTaxonomy\"?: ObjectOrArray<IDcatResource>;\n\n\t/**\n\t * A resource that is listed in the catalog.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_resource\n\t */\n\t\"dcat:resource\"?: ObjectOrArray<IDcatResource>;\n\n\t/**\n\t * A dataset that is listed in the catalog.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_dataset\n\t */\n\t\"dcat:dataset\"?: ObjectOrArray<DatasetOptionalContext>;\n\n\t/**\n\t * A data service that is listed in the catalog.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_service\n\t */\n\t\"dcat:service\"?: ObjectOrArray<DataServiceOptionalContext>;\n\n\t/**\n\t * A catalog that is listed in the catalog.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_catalog\n\t */\n\t\"dcat:catalog\"?: ObjectOrArray<CatalogOptionalContext>;\n\n\t/**\n\t * A record describing the registration of a single resource in the catalog.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_catalog_record\n\t */\n\t\"dcat:record\"?: ObjectOrArray<CatalogRecordOptionalContext>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatCatalogRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatCatalogRecord.js","sourceRoot":"","sources":["../../../src/models/IDcatCatalogRecord.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatResource } from \"./IDcatResource.js\";\nimport type { DcatDateTimeType, DcatLiteralType } from \"./types/dcatPropertyTypes.js\";\n\n/**\n * Interface for DCAT Catalog Record.\n * A record in a catalog, describing the registration of a single dataset or data\n * service.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog_Record\n */\nexport interface IDcatCatalogRecord extends IJsonLdNodeObject {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n\n\t/**\n\t * The type identifier, typically \"CatalogRecord\".\n\t */\n\t\"@type\": typeof DcatClasses.CatalogRecord;\n\n\t/**\n\t * A name given to the catalog record.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_title\n\t */\n\t\"dcterms:title\"?: DcatLiteralType;\n\n\t/**\n\t * A free-text account of the catalog record.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_description\n\t */\n\t\"dcterms:description\"?: DcatLiteralType;\n\n\t/**\n\t * The date of listing of the catalog record in the catalog.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_listing_date\n\t */\n\t\"dcterms:issued\"?: DcatDateTimeType;\n\n\t/**\n\t * Most recent date on which the catalog record entry was changed or modified.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_update_date\n\t */\n\t\"dcterms:modified\"?: DcatDateTimeType;\n\n\t/**\n\t * An established standard to which the catalog record conforms.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_conforms_to\n\t */\n\t\"dcterms:conformsTo\"?: ObjectOrArray<string>;\n\n\t/**\n\t * The dataset or data service described in the catalog record.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_primary_topic\n\t */\n\t\"foaf:primaryTopic\"?: IDcatResource;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatDataService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatDataService.js","sourceRoot":"","sources":["../../../src/models/IDcatDataService.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { IDcatResource } from \"./IDcatResource.js\";\n\n/**\n * Interface for DCAT Data Service.\n * A collection of operations that provides access to one or more datasets or data\n * processing functions.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Data_Service\n */\nexport interface IDcatDataService extends IDcatResource {\n\t/**\n\t * The type identifier, typically \"DataService\".\n\t */\n\t\"@type\": typeof DcatClasses.DataService;\n\n\t/**\n\t * The root location or primary endpoint of the service (a Web-resolvable IRI).\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:data_service_endpoint_url\n\t */\n\t\"dcat:endpointURL\"?: string;\n\n\t/**\n\t * A description of the services available via the end-points, including their\n\t * operations, parameters, etc.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:data_service_endpoint_description\n\t */\n\t\"dcat:endpointDescription\"?: string;\n\n\t/**\n\t * A collection of data that this data service can distribute.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:data_service_serves_dataset\n\t */\n\t\"dcat:servesDataset\"?: ObjectOrArray<string>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatDataset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatDataset.js","sourceRoot":"","sources":["../../../src/models/IDcatDataset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IDublinCorePeriodOfTime } from \"@twin.org/standards-dublin-core\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { IDcatResource } from \"./IDcatResource.js\";\nimport type { DistributionOptionalContext } from \"./types/dcatContextFreeTypes.js\";\nimport type { DcatDecimalType, DcatDurationType } from \"./types/dcatPropertyTypes.js\";\n\n/**\n * Interface for DCAT Dataset.\n * A collection of data, published or curated by a single agent, and available\n * for access or download in one or more representations.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset\n */\nexport interface IDcatDataset extends IDcatResource {\n\t/**\n\t * The type identifier, typically \"Dataset\".\n\t * Can also be \"Catalog\" or \"DatasetSeries\" for subclasses.\n\t */\n\t\"@type\":\n\t\t| typeof DcatClasses.Dataset\n\t\t| typeof DcatClasses.Catalog\n\t\t| typeof DcatClasses.DatasetSeries;\n\n\t/**\n\t * An available distribution of the dataset.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_distribution\n\t */\n\t\"dcat:distribution\"?: ObjectOrArray<DistributionOptionalContext>;\n\n\t/**\n\t * The frequency at which the dataset is published.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_frequency\n\t */\n\t\"dcterms:accrualPeriodicity\"?: string;\n\n\t/**\n\t * A dataset series of which the dataset is part.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_in_series\n\t */\n\t\"dcat:inSeries\"?: string;\n\n\t/**\n\t * The geographical area covered by the dataset.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_spatial\n\t */\n\t\"dcterms:spatial\"?: IJsonLdNodeObject | ObjectOrArray<string>;\n\n\t/**\n\t * Minimum spatial separation resolvable in a dataset, measured in meters.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_spatial_resolution\n\t */\n\t\"dcat:spatialResolutionInMeters\"?: DcatDecimalType;\n\n\t/**\n\t * The temporal period that the dataset covers.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_temporal\n\t */\n\t\"dcterms:temporal\"?: IDublinCorePeriodOfTime;\n\n\t/**\n\t * Minimum time period resolvable in the dataset.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_temporal_resolution\n\t */\n\t\"dcat:temporalResolution\"?: DcatDurationType;\n\n\t/**\n\t * An activity that generated, or provides the business context for, the creation of the dataset.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_was_generated_by\n\t */\n\t\"prov:wasGeneratedBy\"?: IJsonLdNodeObject | string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatDatasetSeries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatDatasetSeries.js","sourceRoot":"","sources":["../../../src/models/IDcatDatasetSeries.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { IDcatDataset } from \"./IDcatDataset.js\";\n\n/**\n * Interface for DCAT Dataset Series.\n * A collection of datasets that are published separately, but share some common\n * characteristics that enable them to be grouped together.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset_Series\n */\nexport interface IDcatDatasetSeries extends IDcatDataset {\n\t/**\n\t * The type identifier, typically \"DatasetSeries\".\n\t */\n\t\"@type\": typeof DcatClasses.DatasetSeries;\n\n\t/**\n\t * A dataset that is part of this dataset series.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_series_first\n\t */\n\t\"dcat:first\"?: string;\n\n\t/**\n\t * A dataset that is part of this dataset series.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_series_last\n\t */\n\t\"dcat:last\"?: string;\n\n\t/**\n\t * A dataset that is part of this dataset series.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_series_member\n\t */\n\t\"dcat:seriesMember\"?: ObjectOrArray<string>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatDistribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatDistribution.js","sourceRoot":"","sources":["../../../src/models/IDcatDistribution.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { DcatContextType } from \"./dcatContextType.js\";\nimport type {\n\tDcatDateTimeType,\n\tDcatDecimalType,\n\tDcatDurationType,\n\tDcatLiteralType,\n\tDcatNonNegativeIntegerType\n} from \"./types/dcatPropertyTypes.js\";\n\n/**\n * Interface for DCAT Distribution.\n * A specific representation of a dataset. A dataset might be available in multiple\n * serializations that may differ in various ways.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution\n */\nexport interface IDcatDistribution extends IJsonLdNodeObject {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n\n\t/**\n\t * The type identifier, typically \"Distribution\".\n\t */\n\t\"@type\": typeof DcatClasses.Distribution;\n\n\t/**\n\t * A name given to the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_title\n\t */\n\t\"dcterms:title\"?: DcatLiteralType;\n\n\t/**\n\t * A free-text account of the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_description\n\t */\n\t\"dcterms:description\"?: DcatLiteralType;\n\n\t/**\n\t * Date of formal issuance of the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_release_date\n\t */\n\t\"dcterms:issued\"?: DcatDateTimeType;\n\n\t/**\n\t * Most recent date on which the distribution was changed, updated or modified.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_update_date\n\t */\n\t\"dcterms:modified\"?: DcatDateTimeType;\n\n\t/**\n\t * A legal document under which the distribution is made available.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_license\n\t */\n\t\"dcterms:license\"?: string;\n\n\t/**\n\t * Information about who can access the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_access_rights\n\t */\n\t\"dcterms:accessRights\"?: string;\n\n\t/**\n\t * Information about rights held in and over the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_rights\n\t */\n\t\"dcterms:rights\"?: string;\n\n\t/**\n\t * A URL of the resource that gives access to a distribution of the dataset.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_access_url\n\t */\n\t\"dcat:accessURL\"?: string;\n\n\t/**\n\t * A data service that gives access to the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_access_service\n\t */\n\t\"dcat:accessService\"?: string;\n\n\t/**\n\t * The URL of the downloadable file in a given format.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_download_url\n\t */\n\t\"dcat:downloadURL\"?: string;\n\n\t/**\n\t * The size of the distribution in bytes.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_byte_size\n\t */\n\t\"dcat:byteSize\"?: DcatNonNegativeIntegerType;\n\n\t/**\n\t * The minimum spatial separation resolvable in a distribution, measured in meters.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_spatial_resolution\n\t */\n\t\"dcat:spatialResolutionInMeters\"?: DcatDecimalType;\n\n\t/**\n\t * Minimum time period resolvable in the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_temporal_resolution\n\t */\n\t\"dcat:temporalResolution\"?: DcatDurationType;\n\n\t/**\n\t * An established standard to which the distribution conforms.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_conforms_to\n\t */\n\t\"dcterms:conformsTo\"?: ObjectOrArray<string>;\n\n\t/**\n\t * The media type of the distribution as defined by IANA.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_media_type\n\t */\n\t\"dcat:mediaType\"?: string;\n\n\t/**\n\t * The file format of the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_format\n\t */\n\t\"dcterms:format\"?: string;\n\n\t/**\n\t * The compression format of the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_compression_format\n\t */\n\t\"dcat:compressFormat\"?: string;\n\n\t/**\n\t * The package format of the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_packaging_format\n\t */\n\t\"dcat:packageFormat\"?: string;\n\n\t/**\n\t * The checksum property provides a mechanism to verify the data integrity.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_checksum\n\t */\n\t\"spdx:checksum\"?: string;\n\n\t/**\n\t * An ODRL conformant policy expressing the rights associated with the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_has_policy\n\t */\n\t\"odrl:hasPolicy\"?: IOdrlPolicy;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatRelationship.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatRelationship.js","sourceRoot":"","sources":["../../../src/models/IDcatRelationship.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatRole } from \"./IDcatRole.js\";\n\n/**\n * Interface for DCAT Relationship.\n * An association class for attaching additional information to a relationship\n * between DCAT Resources.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Relationship\n */\nexport interface IDcatRelationship extends IJsonLdNodeObject {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n\n\t/**\n\t * The type identifier, typically \"Relationship\".\n\t */\n\t\"@type\": typeof DcatClasses.Relationship;\n\n\t/**\n\t * The link to a related resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:relationship_relation\n\t */\n\t\"dcterms:relation\"?: string;\n\n\t/**\n\t * The function of an entity or agent with respect to another resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:relationship_hadRole\n\t */\n\t\"dcat:hadRole\"?: IDcatRole;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatResource.js","sourceRoot":"","sources":["../../../src/models/IDcatResource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IFoafAgent } from \"@twin.org/standards-foaf\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatRelationship } from \"./IDcatRelationship.js\";\nimport type { DcatDateTimeType, DcatLiteralType } from \"./types/dcatPropertyTypes.js\";\n\n/**\n * Base interface for DCAT catalogued resources.\n * This is the parent class of dcat:Dataset, dcat:DataService, and dcat:Catalog.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Resource\n */\nexport interface IDcatResource extends IJsonLdNodeObject {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n\n\t/**\n\t * The type of the resource.\n\t * Typically \"Catalog\", \"Dataset\", \"DataService\", \"DatasetSeries\", or the base \"Resource\".\n\t */\n\t\"@type\":\n\t\t| typeof DcatClasses.Resource\n\t\t| typeof DcatClasses.Dataset\n\t\t| typeof DcatClasses.DataService\n\t\t| typeof DcatClasses.Catalog\n\t\t| typeof DcatClasses.DatasetSeries;\n\n\t/**\n\t * A name given to the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_title\n\t */\n\t\"dcterms:title\"?: DcatLiteralType;\n\n\t/**\n\t * A free-text account of the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_description\n\t */\n\t\"dcterms:description\"?: DcatLiteralType;\n\n\t/**\n\t * A unique identifier of the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_identifier\n\t */\n\t\"dcterms:identifier\"?: DcatLiteralType;\n\n\t/**\n\t * Date of formal issuance (publication) of the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_release_date\n\t */\n\t\"dcterms:issued\"?: DcatDateTimeType;\n\n\t/**\n\t * Most recent date on which the resource was changed, updated or modified.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_update_date\n\t */\n\t\"dcterms:modified\"?: DcatDateTimeType;\n\n\t/**\n\t * A language of the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_language\n\t */\n\t\"dcterms:language\"?: ObjectOrArray<string>;\n\n\t/**\n\t * An entity responsible for making the resource available.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_publisher\n\t */\n\t\"dcterms:publisher\"?: IFoafAgent | string;\n\n\t/**\n\t * An entity responsible for producing the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_creator\n\t */\n\t\"dcterms:creator\"?: IFoafAgent;\n\n\t/**\n\t * Information about who can access the resource or an indication of its security status.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_access_rights\n\t */\n\t\"dcterms:accessRights\"?: IJsonLdNodeObject | string;\n\n\t/**\n\t * A legal document under which the resource is made available.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_license\n\t */\n\t\"dcterms:license\"?: IJsonLdNodeObject | string;\n\n\t/**\n\t * Information about rights held in and over the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_rights\n\t */\n\t\"dcterms:rights\"?: IJsonLdNodeObject | string;\n\n\t/**\n\t * An established standard to which the resource conforms.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_conforms_to\n\t */\n\t\"dcterms:conformsTo\"?: ObjectOrArray<string>;\n\n\t/**\n\t * The nature or genre of the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_type\n\t */\n\t\"dcterms:type\"?: string;\n\n\t/**\n\t * Relevant contact information for the catalogued resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_contact_point\n\t */\n\t\"dcat:contactPoint\"?: IJsonLdNodeObject | string;\n\n\t/**\n\t * A keyword or tag describing the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_keyword\n\t */\n\t\"dcat:keyword\"?: DcatLiteralType;\n\n\t/**\n\t * A main category of the resource. A resource can have multiple themes.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_theme\n\t */\n\t\"dcat:theme\"?: ObjectOrArray<string>;\n\n\t/**\n\t * A Web page that can be navigated to gain access to the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_landing_page\n\t */\n\t\"dcat:landingPage\"?: ObjectOrArray<string>;\n\n\t/**\n\t * Link to a description of a relationship with another resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_qualified_relation\n\t */\n\t\"dcat:qualifiedRelation\"?: IDcatRelationship | string;\n\n\t/**\n\t * An ODRL conformant policy expressing the rights associated with the resource.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_has_policy\n\t */\n\t\"odrl:hasPolicy\"?: IOdrlPolicy;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDcatRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDcatRole.js","sourceRoot":"","sources":["../../../src/models/IDcatRole.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { DcatContextType } from \"./dcatContextType.js\";\nimport type { DcatLiteralType } from \"./types/dcatPropertyTypes.js\";\n\n/**\n * Interface for DCAT Role.\n * A role is the function of a resource or agent with respect to another resource,\n * in the context of resource attribution or resource relationships.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Role\n */\nexport interface IDcatRole extends IJsonLdNodeObject {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n\n\t/**\n\t * The type identifier, typically \"Role\".\n\t */\n\t\"@type\": typeof DcatClasses.Role;\n\n\t/**\n\t * A name given to the distribution.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_title\n\t */\n\t\"dcterms:title\"?: DcatLiteralType;\n}\n"]}
@@ -10,47 +10,47 @@ export const DcatClasses = {
10
10
  * A curated collection of metadata about resources (e.g., datasets and data services in the context of a data catalog).
11
11
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog
12
12
  */
13
- Catalog: "Catalog",
13
+ Catalog: "dcat:Catalog",
14
14
  /**
15
15
  * Resource published or curated by a single agent.
16
16
  * This is an abstract class and should not be used directly.
17
17
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Resource
18
18
  */
19
- Resource: "Resource",
19
+ Resource: "dcat:Resource",
20
20
  /**
21
21
  * A collection of data, published or curated by a single agent, and available for access or download in one or more representations.
22
22
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset
23
23
  */
24
- Dataset: "Dataset",
24
+ Dataset: "dcat:Dataset",
25
25
  /**
26
26
  * A specific representation of a dataset. A dataset might be available in multiple serializations that may differ in various ways.
27
27
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution
28
28
  */
29
- Distribution: "Distribution",
29
+ Distribution: "dcat:Distribution",
30
30
  /**
31
31
  * A collection of operations that provides access to one or more datasets or data processing functions.
32
32
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Data_Service
33
33
  */
34
- DataService: "DataService",
34
+ DataService: "dcat:DataService",
35
35
  /**
36
36
  * A collection of datasets that are published separately, but share some common characteristics.
37
37
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset_Series
38
38
  */
39
- DatasetSeries: "DatasetSeries",
39
+ DatasetSeries: "dcat:DatasetSeries",
40
40
  /**
41
41
  * A record in a data catalog, describing the registration of a single dataset or data service.
42
42
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog_Record
43
43
  */
44
- CatalogRecord: "CatalogRecord",
44
+ CatalogRecord: "dcat:CatalogRecord",
45
45
  /**
46
46
  * An association class for attaching additional information to a relationship between DCAT Resources.
47
47
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Relationship
48
48
  */
49
- Relationship: "Relationship",
49
+ Relationship: "dcat:Relationship",
50
50
  /**
51
51
  * A role is the function of a resource or agent with respect to another resource, in the context of resource attribution or resource relationships..
52
52
  * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Role
53
53
  */
54
- Role: "Role"
54
+ Role: "dcat:Role"
55
55
  };
56
56
  //# sourceMappingURL=dcatClasses.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dcatClasses.js","sourceRoot":"","sources":["../../../src/models/dcatClasses.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;;OAIG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,YAAY,EAAE,cAAc;IAE5B;;;OAGG;IACH,WAAW,EAAE,aAAa;IAE1B;;;OAGG;IACH,aAAa,EAAE,eAAe;IAE9B;;;OAGG;IACH,aAAa,EAAE,eAAe;IAE9B;;;OAGG;IACH,YAAY,EAAE,cAAc;IAE5B;;;OAGG;IACH,IAAI,EAAE,MAAM;CACH,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * DCAT core classes representing the main entities in the Data Catalog Vocabulary.\n * @see https://www.w3.org/TR/vocab-dcat-3/#classes\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DcatClasses = {\n\t/**\n\t * A curated collection of metadata about resources (e.g., datasets and data services in the context of a data catalog).\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog\n\t */\n\tCatalog: \"Catalog\",\n\n\t/**\n\t * Resource published or curated by a single agent.\n\t * This is an abstract class and should not be used directly.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Resource\n\t */\n\tResource: \"Resource\",\n\n\t/**\n\t * A collection of data, published or curated by a single agent, and available for access or download in one or more representations.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset\n\t */\n\tDataset: \"Dataset\",\n\n\t/**\n\t * A specific representation of a dataset. A dataset might be available in multiple serializations that may differ in various ways.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution\n\t */\n\tDistribution: \"Distribution\",\n\n\t/**\n\t * A collection of operations that provides access to one or more datasets or data processing functions.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Data_Service\n\t */\n\tDataService: \"DataService\",\n\n\t/**\n\t * A collection of datasets that are published separately, but share some common characteristics.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset_Series\n\t */\n\tDatasetSeries: \"DatasetSeries\",\n\n\t/**\n\t * A record in a data catalog, describing the registration of a single dataset or data service.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog_Record\n\t */\n\tCatalogRecord: \"CatalogRecord\",\n\n\t/**\n\t * An association class for attaching additional information to a relationship between DCAT Resources.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Relationship\n\t */\n\tRelationship: \"Relationship\",\n\n\t/**\n\t * A role is the function of a resource or agent with respect to another resource, in the context of resource attribution or resource relationships..\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Role\n\t */\n\tRole: \"Role\"\n} as const;\n\n/**\n * The classes for DCAT.\n */\nexport type DcatClasses = (typeof DcatClasses)[keyof typeof DcatClasses];\n"]}
1
+ {"version":3,"file":"dcatClasses.js","sourceRoot":"","sources":["../../../src/models/dcatClasses.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;;OAGG;IACH,OAAO,EAAE,cAAc;IAEvB;;;;OAIG;IACH,QAAQ,EAAE,eAAe;IAEzB;;;OAGG;IACH,OAAO,EAAE,cAAc;IAEvB;;;OAGG;IACH,YAAY,EAAE,mBAAmB;IAEjC;;;OAGG;IACH,WAAW,EAAE,kBAAkB;IAE/B;;;OAGG;IACH,aAAa,EAAE,oBAAoB;IAEnC;;;OAGG;IACH,aAAa,EAAE,oBAAoB;IAEnC;;;OAGG;IACH,YAAY,EAAE,mBAAmB;IAEjC;;;OAGG;IACH,IAAI,EAAE,WAAW;CACR,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * DCAT core classes representing the main entities in the Data Catalog Vocabulary.\n * @see https://www.w3.org/TR/vocab-dcat-3/#classes\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DcatClasses = {\n\t/**\n\t * A curated collection of metadata about resources (e.g., datasets and data services in the context of a data catalog).\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog\n\t */\n\tCatalog: \"dcat:Catalog\",\n\n\t/**\n\t * Resource published or curated by a single agent.\n\t * This is an abstract class and should not be used directly.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Resource\n\t */\n\tResource: \"dcat:Resource\",\n\n\t/**\n\t * A collection of data, published or curated by a single agent, and available for access or download in one or more representations.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset\n\t */\n\tDataset: \"dcat:Dataset\",\n\n\t/**\n\t * A specific representation of a dataset. A dataset might be available in multiple serializations that may differ in various ways.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution\n\t */\n\tDistribution: \"dcat:Distribution\",\n\n\t/**\n\t * A collection of operations that provides access to one or more datasets or data processing functions.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Data_Service\n\t */\n\tDataService: \"dcat:DataService\",\n\n\t/**\n\t * A collection of datasets that are published separately, but share some common characteristics.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset_Series\n\t */\n\tDatasetSeries: \"dcat:DatasetSeries\",\n\n\t/**\n\t * A record in a data catalog, describing the registration of a single dataset or data service.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog_Record\n\t */\n\tCatalogRecord: \"dcat:CatalogRecord\",\n\n\t/**\n\t * An association class for attaching additional information to a relationship between DCAT Resources.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Relationship\n\t */\n\tRelationship: \"dcat:Relationship\",\n\n\t/**\n\t * A role is the function of a resource or agent with respect to another resource, in the context of resource attribution or resource relationships..\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Role\n\t */\n\tRole: \"dcat:Role\"\n} as const;\n\n/**\n * The classes for DCAT.\n */\nexport type DcatClasses = (typeof DcatClasses)[keyof typeof DcatClasses];\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 { 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.ContextRoot;\n\tdcterms: typeof DublinCoreContexts.ContextTerms;\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.Namespace;\n\tdcterms: typeof DublinCoreContexts.NamespaceTerms;\n\todrl?: typeof OdrlContexts.Namespace;\n\tfoaf?: typeof FoafContexts.Namespace;\n} & IJsonLdContextDefinition;\n"]}
@@ -7,32 +7,32 @@
7
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
8
  export const DcatContexts = {
9
9
  /**
10
- * The context root for DCAT vocabulary.
10
+ * The canonical RDF namespace URI.
11
11
  */
12
- ContextRoot: "http://www.w3.org/ns/dcat#",
12
+ Namespace: "http://www.w3.org/ns/dcat#",
13
13
  /**
14
- * The redirect URL for the DCAT context, used for JSON-LD processing.
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.
15
17
  */
16
- ContextRedirect: "https://www.w3.org/ns/dcat.jsonld",
18
+ Context: "http://www.w3.org/ns/dcat#",
17
19
  /**
18
- * The context for RDF vocabulary.
19
- * @see https://www.w3.org/TR/rdf-schema/
20
+ * The JSON-LD Context URL.
20
21
  */
21
- ContextRdf: "http://www.w3.org/2000/01/rdf-schema#",
22
+ JsonLdContext: "https://www.w3.org/ns/dcat.jsonld",
22
23
  /**
23
- * The context for RDF vocabulary Json-LD.
24
- * @see https://www.w3.org/TR/rdf-schema/
24
+ * The namespace location of the hosted version of the JSON Schema.
25
25
  */
26
- ContextRdfRedirect: "https://schema.twindev.org/w3c-rdf/types.jsonld",
26
+ JsonSchemaNamespace: "https://schema.twindev.org/w3c-dcat/",
27
27
  /**
28
- * The context for SPDX (Software Package Data Exchange) vocabulary.
29
- * @see https://spdx.org/rdf/terms
28
+ * The namespace for RDF vocabulary.
29
+ * @see https://www.w3.org/TR/rdf-schema/
30
30
  */
31
- ContextSpdx: "http://spdx.org/rdf/terms#",
31
+ NamespaceRdf: "http://www.w3.org/2000/01/rdf-schema#",
32
32
  /**
33
- * The context for PROV (Provenance) vocabulary.
34
- * @see https://www.w3.org/ns/prov
33
+ * The context for RDF vocabulary Json-LD.
34
+ * @see https://www.w3.org/TR/rdf-schema/
35
35
  */
36
- ContextProv: "http://www.w3.org/ns/prov#"
36
+ JsonLdContextRdf: "https://schema.twindev.org/w3c-rdf/types.jsonld"
37
37
  };
38
38
  //# sourceMappingURL=dcatContexts.js.map
@@ -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,WAAW,EAAE,4BAA4B;IAEzC;;OAEG;IACH,eAAe,EAAE,mCAAmC;IAEpD;;;OAGG;IACH,UAAU,EAAE,uCAAuC;IAEnD;;;OAGG;IACH,kBAAkB,EAAE,iDAAiD;IAErE;;;OAGG;IACH,WAAW,EAAE,4BAA4B;IAEzC;;;OAGG;IACH,WAAW,EAAE,4BAA4B;CAChC,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 context root for DCAT vocabulary.\n\t */\n\tContextRoot: \"http://www.w3.org/ns/dcat#\",\n\n\t/**\n\t * The redirect URL for the DCAT context, used for JSON-LD processing.\n\t */\n\tContextRedirect: \"https://www.w3.org/ns/dcat.jsonld\",\n\n\t/**\n\t * The context for RDF vocabulary.\n\t * @see https://www.w3.org/TR/rdf-schema/\n\t */\n\tContextRdf: \"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\tContextRdfRedirect: \"https://schema.twindev.org/w3c-rdf/types.jsonld\",\n\n\t/**\n\t * The context for SPDX (Software Package Data Exchange) vocabulary.\n\t * @see https://spdx.org/rdf/terms\n\t */\n\tContextSpdx: \"http://spdx.org/rdf/terms#\",\n\n\t/**\n\t * The context for PROV (Provenance) vocabulary.\n\t * @see https://www.w3.org/ns/prov\n\t */\n\tContextProv: \"http://www.w3.org/ns/prov#\"\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;;OAEG;IACH,mBAAmB,EAAE,sCAAsC;IAE3D;;;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 location of the hosted version of the JSON Schema.\n\t */\n\tJsonSchemaNamespace: \"https://schema.twindev.org/w3c-dcat/\",\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"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=dcatContextFreeTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dcatContextFreeTypes.js","sourceRoot":"","sources":["../../../../src/models/types/dcatContextFreeTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nimport type { DcatContextType } from \"../dcatContextType.js\";\nimport type { IDcatCatalog } from \"../IDcatCatalog.js\";\nimport type { IDcatCatalogRecord } from \"../IDcatCatalogRecord.js\";\nimport type { IDcatDataService } from \"../IDcatDataService.js\";\nimport type { IDcatDataset } from \"../IDcatDataset.js\";\nimport type { IDcatDistribution } from \"../IDcatDistribution.js\";\n\n/**\n * Type aliases for DCAT entities when LD Context is omitted\n * These provide type safety while maintaining flexibility for JSON-LD data.\n */\n\n/**\n * Dataset omitting LD Context\n */\nexport type DatasetOptionalContext = Omit<IDcatDataset, \"@context\"> & {\n\t\"@context\"?: DcatContextType;\n};\n\n/**\n * DataService omitting LD Context\n */\nexport type DataServiceOptionalContext = Omit<IDcatDataService, \"@context\"> & {\n\t\"@context\"?: DcatContextType;\n};\n\n/**\n * Catalog omitting LD Context\n */\nexport type CatalogOptionalContext = Omit<IDcatCatalog, \"@context\"> & {\n\t\"@context\"?: DcatContextType;\n};\n\n/**\n * Record omitting LD Context\n */\nexport type CatalogRecordOptionalContext = Omit<IDcatCatalogRecord, \"@context\"> & {\n\t\"@context\"?: DcatContextType;\n};\n\n/**\n * Distribution omitting LD Context\n */\nexport type DistributionOptionalContext = Omit<IDcatDistribution, \"@context\"> & {\n\t\"@context\"?: DcatContextType;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dcatPropertyTypes.js","sourceRoot":"","sources":["../../../../src/models/types/dcatPropertyTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Common type aliases for DCAT properties.\n * These provide type safety while maintaining flexibility for JSON-LD data.\n */\n\n/**\n * Literal values can be strings or arrays of strings (for multi-valued properties).\n */\nexport type LiteralType = string | string[];\n\n/**\n * IRI references - can be a single IRI or array of IRIs.\n */\nexport type IriType = string | string[];\n\n/**\n * Date/time values in ISO 8601 format.\n * Can be xsd:date, xsd:dateTime, or xsd:gYear.\n */\nexport type DateTimeType = string;\n\n/**\n * Duration values in ISO 8601 duration format (xsd:duration).\n */\nexport type DurationType = string;\n\n/**\n * Decimal number values (xsd:decimal).\n */\nexport type DecimalType = number;\n\n/**\n * Non-negative integer values (xsd:nonNegativeInteger).\n */\nexport type NonNegativeIntegerType = number;\n"]}
1
+ {"version":3,"file":"dcatPropertyTypes.js","sourceRoot":"","sources":["../../../../src/models/types/dcatPropertyTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Common type aliases for DCAT properties.\n * These provide type safety while maintaining flexibility for JSON-LD data.\n */\n\n/**\n * Literal values can be strings or arrays of strings (for multi-valued properties).\n */\nexport type DcatLiteralType = string | string[];\n\n/**\n * IRI references - can be a single IRI or array of IRIs.\n */\nexport type DcatIriType = string | string[];\n\n/**\n * Date/time values in ISO 8601 format.\n * Can be xsd:date, xsd:dateTime, or xsd:gYear.\n */\nexport type DcatDateTimeType = string;\n\n/**\n * Duration values in ISO 8601 duration format (xsd:duration).\n */\nexport type DcatDurationType = string;\n\n/**\n * Decimal number values (xsd:decimal).\n */\nexport type DcatDecimalType = number;\n\n/**\n * Non-negative integer values (xsd:nonNegativeInteger).\n */\nexport type DcatNonNegativeIntegerType = number;\n"]}