@twin.org/standards-w3c-dcat 0.0.3-next.53 → 0.0.3-next.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/dataTypes/dcatDataTypes.js +35 -0
- package/dist/es/dataTypes/dcatDataTypes.js.map +1 -1
- package/dist/es/index.js +6 -2
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IDcatCatalog.js.map +1 -1
- package/dist/es/models/IDcatCatalogBase.js +2 -0
- package/dist/es/models/IDcatCatalogBase.js.map +1 -0
- package/dist/es/models/IDcatCatalogRecord.js.map +1 -1
- package/dist/es/models/IDcatCatalogRecordBase.js +2 -0
- package/dist/es/models/IDcatCatalogRecordBase.js.map +1 -0
- package/dist/es/models/IDcatDataService.js.map +1 -1
- package/dist/es/models/IDcatDataServiceBase.js +2 -0
- package/dist/es/models/IDcatDataServiceBase.js.map +1 -0
- package/dist/es/models/IDcatDataset.js.map +1 -1
- package/dist/es/models/IDcatDatasetBase.js +2 -0
- package/dist/es/models/IDcatDatasetBase.js.map +1 -0
- package/dist/es/models/IDcatDatasetSeries.js.map +1 -1
- package/dist/es/models/IDcatDistribution.js.map +1 -1
- package/dist/es/models/IDcatDistributionBase.js +2 -0
- package/dist/es/models/IDcatDistributionBase.js.map +1 -0
- package/dist/es/models/IDcatResource.js.map +1 -1
- package/dist/es/models/IDcatResourceBase.js +2 -0
- package/dist/es/models/IDcatResourceBase.js.map +1 -0
- package/dist/es/models/IDcatRole.js.map +1 -1
- package/dist/es/schemas/DcatCatalog.json +10 -418
- package/dist/es/schemas/DcatCatalogBase.json +109 -0
- package/dist/es/schemas/DcatCatalogRecord.json +10 -137
- package/dist/es/schemas/DcatCatalogRecordBase.json +76 -0
- package/dist/es/schemas/DcatContextType.json +30 -0
- package/dist/es/schemas/DcatDataService.json +10 -290
- package/dist/es/schemas/DcatDataServiceBase.json +43 -0
- package/dist/es/schemas/DcatDataset.json +10 -334
- package/dist/es/schemas/DcatDatasetBase.json +94 -0
- package/dist/es/schemas/DcatDatasetSeries.json +9 -329
- package/dist/es/schemas/DcatDistribution.json +10 -193
- package/dist/es/schemas/DcatDistributionBase.json +134 -0
- package/dist/es/schemas/DcatRelationship.json +4 -93
- package/dist/es/schemas/DcatResource.json +10 -274
- package/dist/es/schemas/DcatResourceBase.json +243 -0
- package/dist/es/schemas/DcatRole.json +15 -94
- package/dist/types/index.d.ts +6 -2
- package/dist/types/models/IDcatCatalog.d.ts +5 -42
- package/dist/types/models/IDcatCatalogBase.d.ts +54 -0
- package/dist/types/models/IDcatCatalogRecord.d.ts +2 -42
- package/dist/types/models/IDcatCatalogRecordBase.d.ts +51 -0
- package/dist/types/models/IDcatDataService.d.ts +5 -21
- package/dist/types/models/IDcatDataServiceBase.d.ts +31 -0
- package/dist/types/models/IDcatDataset.d.ts +5 -50
- package/dist/types/models/IDcatDatasetBase.d.ts +60 -0
- package/dist/types/models/IDcatDatasetSeries.d.ts +4 -3
- package/dist/types/models/IDcatDistribution.d.ts +2 -112
- package/dist/types/models/IDcatDistributionBase.d.ts +123 -0
- package/dist/types/models/IDcatResource.d.ts +3 -112
- package/dist/types/models/IDcatResourceBase.d.ts +120 -0
- package/dist/types/models/IDcatRole.d.ts +2 -2
- package/docs/changelog.md +37 -0
- package/docs/reference/classes/DcatDataTypes.md +2 -2
- package/docs/reference/index.md +6 -11
- package/docs/reference/interfaces/IDcatCatalog.md +118 -94
- package/docs/reference/interfaces/IDcatCatalogBase.md +558 -0
- package/docs/reference/interfaces/IDcatCatalogRecord.md +48 -12
- package/docs/reference/interfaces/IDcatCatalogRecordBase.md +101 -0
- package/docs/reference/interfaces/IDcatDataService.md +73 -65
- package/docs/reference/interfaces/IDcatDataServiceBase.md +382 -0
- package/docs/reference/interfaces/IDcatDataset.md +98 -71
- package/docs/reference/interfaces/IDcatDatasetBase.md +443 -0
- package/docs/reference/interfaces/IDcatDatasetSeries.md +56 -56
- package/docs/reference/interfaces/IDcatDistribution.md +118 -26
- package/docs/reference/interfaces/IDcatDistributionBase.md +269 -0
- package/docs/reference/interfaces/IDcatRelationship.md +4 -4
- package/docs/reference/interfaces/IDcatResource.md +117 -34
- package/docs/reference/interfaces/IDcatResourceBase.md +260 -0
- package/docs/reference/interfaces/IDcatRole.md +5 -5
- package/docs/reference/variables/DcatClasses.md +9 -9
- package/docs/reference/variables/DcatContexts.md +6 -6
- package/docs/reference/variables/DcatRelationshipType.md +9 -9
- package/package.json +5 -5
- package/dist/es/models/types/dcatContextFreeTypes.js +0 -4
- package/dist/es/models/types/dcatContextFreeTypes.js.map +0 -1
- package/dist/es/models/types/dcatPropertyTypes.js +0 -4
- package/dist/es/models/types/dcatPropertyTypes.js.map +0 -1
- package/dist/types/models/types/dcatContextFreeTypes.d.ts +0 -30
- package/dist/types/models/types/dcatPropertyTypes.d.ts +0 -29
- package/docs/reference/type-aliases/CatalogOptionalContext.md +0 -5
- package/docs/reference/type-aliases/CatalogRecordOptionalContext.md +0 -5
- package/docs/reference/type-aliases/DataServiceOptionalContext.md +0 -5
- package/docs/reference/type-aliases/DatasetOptionalContext.md +0 -5
- package/docs/reference/type-aliases/DcatDateTimeType.md +0 -6
- package/docs/reference/type-aliases/DcatDecimalType.md +0 -5
- package/docs/reference/type-aliases/DcatDurationType.md +0 -5
- package/docs/reference/type-aliases/DcatIriType.md +0 -5
- package/docs/reference/type-aliases/DcatLiteralType.md +0 -5
- package/docs/reference/type-aliases/DcatNonNegativeIntegerType.md +0 -5
- package/docs/reference/type-aliases/DistributionOptionalContext.md +0 -5
|
@@ -5,13 +5,20 @@ import { JsonLdProcessor } from "@twin.org/data-json-ld";
|
|
|
5
5
|
import { DcatClasses } from "../models/dcatClasses.js";
|
|
6
6
|
import { DcatContexts } from "../models/dcatContexts.js";
|
|
7
7
|
import CatalogSchema from "../schemas/DcatCatalog.json" with { type: "json" };
|
|
8
|
+
import CatalogBaseSchema from "../schemas/DcatCatalogBase.json" with { type: "json" };
|
|
8
9
|
import CatalogRecordSchema from "../schemas/DcatCatalogRecord.json" with { type: "json" };
|
|
10
|
+
import CatalogRecordBaseSchema from "../schemas/DcatCatalogRecordBase.json" with { type: "json" };
|
|
11
|
+
import ContextTypeSchema from "../schemas/DcatContextType.json" with { type: "json" };
|
|
9
12
|
import DataServiceSchema from "../schemas/DcatDataService.json" with { type: "json" };
|
|
13
|
+
import DataServiceBaseSchema from "../schemas/DcatDataServiceBase.json" with { type: "json" };
|
|
10
14
|
import DatasetSchema from "../schemas/DcatDataset.json" with { type: "json" };
|
|
15
|
+
import DatasetBaseSchema from "../schemas/DcatDatasetBase.json" with { type: "json" };
|
|
11
16
|
import DatasetSeriesSchema from "../schemas/DcatDatasetSeries.json" with { type: "json" };
|
|
12
17
|
import DistributionSchema from "../schemas/DcatDistribution.json" with { type: "json" };
|
|
18
|
+
import DistributionBaseSchema from "../schemas/DcatDistributionBase.json" with { type: "json" };
|
|
13
19
|
import RelationshipSchema from "../schemas/DcatRelationship.json" with { type: "json" };
|
|
14
20
|
import ResourceSchema from "../schemas/DcatResource.json" with { type: "json" };
|
|
21
|
+
import ResourceBaseSchema from "../schemas/DcatResourceBase.json" with { type: "json" };
|
|
15
22
|
import RoleSchema from "../schemas/DcatRole.json" with { type: "json" };
|
|
16
23
|
/**
|
|
17
24
|
* Class providing DCAT data type utilities and JSON-LD redirect registration.
|
|
@@ -34,26 +41,50 @@ export class DcatDataTypes {
|
|
|
34
41
|
type: DcatClasses.Resource,
|
|
35
42
|
schema: ResourceSchema
|
|
36
43
|
},
|
|
44
|
+
{
|
|
45
|
+
type: `${DcatClasses.Resource}Base`,
|
|
46
|
+
schema: ResourceBaseSchema
|
|
47
|
+
},
|
|
37
48
|
{
|
|
38
49
|
type: DcatClasses.Catalog,
|
|
39
50
|
schema: CatalogSchema
|
|
40
51
|
},
|
|
52
|
+
{
|
|
53
|
+
type: `${DcatClasses.Catalog}Base`,
|
|
54
|
+
schema: CatalogBaseSchema
|
|
55
|
+
},
|
|
41
56
|
{
|
|
42
57
|
type: DcatClasses.CatalogRecord,
|
|
43
58
|
schema: CatalogRecordSchema
|
|
44
59
|
},
|
|
60
|
+
{
|
|
61
|
+
type: `${DcatClasses.CatalogRecord}Base`,
|
|
62
|
+
schema: CatalogRecordBaseSchema
|
|
63
|
+
},
|
|
45
64
|
{
|
|
46
65
|
type: DcatClasses.Dataset,
|
|
47
66
|
schema: DatasetSchema
|
|
48
67
|
},
|
|
68
|
+
{
|
|
69
|
+
type: `${DcatClasses.Dataset}Base`,
|
|
70
|
+
schema: DatasetBaseSchema
|
|
71
|
+
},
|
|
49
72
|
{
|
|
50
73
|
type: DcatClasses.Distribution,
|
|
51
74
|
schema: DistributionSchema
|
|
52
75
|
},
|
|
76
|
+
{
|
|
77
|
+
type: `${DcatClasses.Distribution}Base`,
|
|
78
|
+
schema: DistributionBaseSchema
|
|
79
|
+
},
|
|
53
80
|
{
|
|
54
81
|
type: DcatClasses.DataService,
|
|
55
82
|
schema: DataServiceSchema
|
|
56
83
|
},
|
|
84
|
+
{
|
|
85
|
+
type: `${DcatClasses.DataService}Base`,
|
|
86
|
+
schema: DataServiceBaseSchema
|
|
87
|
+
},
|
|
57
88
|
{
|
|
58
89
|
type: DcatClasses.DatasetSeries,
|
|
59
90
|
schema: DatasetSeriesSchema
|
|
@@ -65,6 +96,10 @@ export class DcatDataTypes {
|
|
|
65
96
|
{
|
|
66
97
|
type: DcatClasses.Role,
|
|
67
98
|
schema: RoleSchema
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: "ContextType",
|
|
102
|
+
schema: ContextTypeSchema
|
|
68
103
|
}
|
|
69
104
|
];
|
|
70
105
|
DataTypeHelper.registerTypes(DcatContexts.Namespace, DcatContexts.JsonLdContext, types);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dcatDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dcatDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAA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M,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,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAC7D,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.map(t => ({ type: `Dcat${t.type}`, schema: t.schema }))\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,iBAAiB,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtF,OAAO,mBAAmB,MAAM,mCAAmC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1F,OAAO,uBAAuB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAClG,OAAO,iBAAiB,M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;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,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAC7D,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 CatalogBaseSchema from \"../schemas/DcatCatalogBase.json\" with { type: \"json\" };\nimport CatalogRecordSchema from \"../schemas/DcatCatalogRecord.json\" with { type: \"json\" };\nimport CatalogRecordBaseSchema from \"../schemas/DcatCatalogRecordBase.json\" with { type: \"json\" };\nimport ContextTypeSchema from \"../schemas/DcatContextType.json\" with { type: \"json\" };\nimport DataServiceSchema from \"../schemas/DcatDataService.json\" with { type: \"json\" };\nimport DataServiceBaseSchema from \"../schemas/DcatDataServiceBase.json\" with { type: \"json\" };\nimport DatasetSchema from \"../schemas/DcatDataset.json\" with { type: \"json\" };\nimport DatasetBaseSchema from \"../schemas/DcatDatasetBase.json\" with { type: \"json\" };\nimport DatasetSeriesSchema from \"../schemas/DcatDatasetSeries.json\" with { type: \"json\" };\nimport DistributionSchema from \"../schemas/DcatDistribution.json\" with { type: \"json\" };\nimport DistributionBaseSchema from \"../schemas/DcatDistributionBase.json\" with { type: \"json\" };\nimport RelationshipSchema from \"../schemas/DcatRelationship.json\" with { type: \"json\" };\nimport ResourceSchema from \"../schemas/DcatResource.json\" with { type: \"json\" };\nimport ResourceBaseSchema from \"../schemas/DcatResourceBase.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.Resource}Base`,\n\t\t\t\tschema: ResourceBaseSchema\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.Catalog}Base`,\n\t\t\t\tschema: CatalogBaseSchema\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.CatalogRecord}Base`,\n\t\t\t\tschema: CatalogRecordBaseSchema\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.Dataset}Base`,\n\t\t\t\tschema: DatasetBaseSchema\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.Distribution}Base`,\n\t\t\t\tschema: DistributionBaseSchema\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.DataService}Base`,\n\t\t\t\tschema: DataServiceBaseSchema\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\t{\n\t\t\t\ttype: \"ContextType\",\n\t\t\t\tschema: ContextTypeSchema\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.map(t => ({ type: `Dcat${t.type}`, schema: t.schema }))\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -6,14 +6,18 @@ export * from "./models/dcatContexts.js";
|
|
|
6
6
|
export * from "./models/dcatContextType.js";
|
|
7
7
|
export * from "./models/dcatRelationshipTypes.js";
|
|
8
8
|
export * from "./models/IDcatCatalog.js";
|
|
9
|
+
export * from "./models/IDcatCatalogBase.js";
|
|
9
10
|
export * from "./models/IDcatCatalogRecord.js";
|
|
11
|
+
export * from "./models/IDcatCatalogRecordBase.js";
|
|
10
12
|
export * from "./models/IDcatDataService.js";
|
|
13
|
+
export * from "./models/IDcatDataServiceBase.js";
|
|
11
14
|
export * from "./models/IDcatDataset.js";
|
|
15
|
+
export * from "./models/IDcatDatasetBase.js";
|
|
12
16
|
export * from "./models/IDcatDatasetSeries.js";
|
|
13
17
|
export * from "./models/IDcatDistribution.js";
|
|
18
|
+
export * from "./models/IDcatDistributionBase.js";
|
|
14
19
|
export * from "./models/IDcatRelationship.js";
|
|
15
20
|
export * from "./models/IDcatResource.js";
|
|
21
|
+
export * from "./models/IDcatResourceBase.js";
|
|
16
22
|
export * from "./models/IDcatRole.js";
|
|
17
|
-
export * from "./models/types/dcatPropertyTypes.js";
|
|
18
|
-
export * from "./models/types/dcatContextFreeTypes.js";
|
|
19
23
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,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,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\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/IDcatCatalogBase.js\";\nexport * from \"./models/IDcatCatalogRecord.js\";\nexport * from \"./models/IDcatCatalogRecordBase.js\";\nexport * from \"./models/IDcatDataService.js\";\nexport * from \"./models/IDcatDataServiceBase.js\";\nexport * from \"./models/IDcatDataset.js\";\nexport * from \"./models/IDcatDatasetBase.js\";\nexport * from \"./models/IDcatDatasetSeries.js\";\nexport * from \"./models/IDcatDistribution.js\";\nexport * from \"./models/IDcatDistributionBase.js\";\nexport * from \"./models/IDcatRelationship.js\";\nexport * from \"./models/IDcatResource.js\";\nexport * from \"./models/IDcatResourceBase.js\";\nexport * from \"./models/IDcatRole.js\";\n"]}
|
|
@@ -1 +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 {
|
|
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 { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatCatalogBase } from \"./IDcatCatalogBase.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 IDcatCatalogBase {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDcatCatalogBase.js","sourceRoot":"","sources":["../../../src/models/IDcatCatalogBase.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 { IDcatCatalogRecordBase } from \"./IDcatCatalogRecordBase.js\";\nimport type { IDcatDataServiceBase } from \"./IDcatDataServiceBase.js\";\nimport type { IDcatDatasetBase } from \"./IDcatDatasetBase.js\";\nimport type { IDcatResource } from \"./IDcatResource.js\";\n\n/**\n * Base interface for DCAT Catalog without JSON-LD context.\n * This is the context-free variant of IDcatCatalog, intended for embedding\n * catalogs inline within other objects where the context is provided by the enclosing document.\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 IDcatCatalogBase extends IDcatDatasetBase {\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<IDcatDatasetBase>;\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<IDcatDataServiceBase>;\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<IDcatCatalogBase>;\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<IDcatCatalogRecordBase>;\n}\n"]}
|
|
@@ -1 +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 {
|
|
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 { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatCatalogRecordBase } from \"./IDcatCatalogRecordBase.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 IDcatCatalogRecordBase {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDcatCatalogRecordBase.js","sourceRoot":"","sources":["../../../src/models/IDcatCatalogRecordBase.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 * Base interface for DCAT Catalog Record without JSON-LD context.\n * This is the context-free variant of IDcatCatalogRecord, intended for embedding\n * catalog record objects inline within catalogs where the context is provided by the enclosing document.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog_Record\n */\nexport interface IDcatCatalogRecordBase {\n\t/**\n\t * The type identifier, typically \"CatalogRecord\".\n\t */\n\t\"@type\": typeof DcatClasses.CatalogRecord;\n\n\t/**\n\t * The unique identifier for the catalog record.\n\t */\n\t\"@id\"?: string;\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\"?: ObjectOrArray<string>;\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\"?: ObjectOrArray<string>;\n\n\t/**\n\t * The date of listing of the catalog record in the catalog.\n\t * @json-schema format:date-time\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_listing_date\n\t */\n\t\"dcterms:issued\"?: string;\n\n\t/**\n\t * Most recent date on which the catalog record entry was changed or modified.\n\t * @json-schema format:date-time\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:record_update_date\n\t */\n\t\"dcterms:modified\"?: string;\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"]}
|
|
@@ -1 +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 {
|
|
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 { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatDataServiceBase } from \"./IDcatDataServiceBase.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 IDcatDataServiceBase {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDcatDataServiceBase.js","sourceRoot":"","sources":["../../../src/models/IDcatDataServiceBase.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 { IDcatResourceBase } from \"./IDcatResourceBase.js\";\n\n/**\n * Base interface for DCAT Data Service without JSON-LD context.\n * This is the context-free variant of IDcatDataService, intended for embedding\n * data service objects inline within other objects where the context is provided by the enclosing document.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Data_Service\n */\nexport interface IDcatDataServiceBase extends IDcatResourceBase {\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"]}
|
|
@@ -1 +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 {
|
|
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 { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatDatasetBase } from \"./IDcatDatasetBase.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 IDcatDatasetBase {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDcatDatasetBase.js","sourceRoot":"","sources":["../../../src/models/IDcatDatasetBase.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 { IDcatDistributionBase } from \"./IDcatDistributionBase.js\";\nimport type { IDcatResourceBase } from \"./IDcatResourceBase.js\";\n\n/**\n * Base interface for DCAT Dataset without JSON-LD context.\n * This is the context-free variant of IDcatDataset, intended for embedding\n * dataset objects inline within other objects where the context is provided by the enclosing document.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset\n */\nexport interface IDcatDatasetBase extends IDcatResourceBase {\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<IDcatDistributionBase>;\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 | string | 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\"?: number;\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 * @json-schema format:duration\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_temporal_resolution\n\t */\n\t\"dcat:temporalResolution\"?: string;\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"]}
|
|
@@ -1 +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 { DcatClasses } from \"./dcatClasses.js\";\nimport type { IDcatDataset } from \"./IDcatDataset.js\";\nimport type {
|
|
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\";\nimport type { IDcatDatasetBase } from \"./IDcatDatasetBase.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\t/**\n\t * A dataset that is part of this dataset series.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:catalog_dataset\n\t */\n\t\"dcat:dataset\"?: ObjectOrArray<IDcatDatasetBase>;\n}\n"]}
|
|
@@ -1 +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 {
|
|
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 { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatDistributionBase } from \"./IDcatDistributionBase.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 IDcatDistributionBase {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDcatDistributionBase.js","sourceRoot":"","sources":["../../../src/models/IDcatDistributionBase.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\n\n/**\n * Base interface for DCAT Distribution without JSON-LD context.\n * This is the context-free variant of IDcatDistribution, intended for embedding\n * distribution objects inline within datasets where the context is provided by the enclosing document.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution\n */\nexport interface IDcatDistributionBase {\n\t/**\n\t * The type identifier, typically \"Distribution\".\n\t */\n\t\"@type\": typeof DcatClasses.Distribution;\n\n\t/**\n\t * The unique identifier for the distribution object.\n\t */\n\t\"@id\"?: string;\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\"?: ObjectOrArray<string>;\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\"?: ObjectOrArray<string>;\n\n\t/**\n\t * Date of formal issuance of the distribution.\n\t * @json-schema format:date-time\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_release_date\n\t */\n\t\"dcterms:issued\"?: string;\n\n\t/**\n\t * Most recent date on which the distribution was changed, updated or modified.\n\t * @json-schema format:date-time\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_update_date\n\t */\n\t\"dcterms:modified\"?: string;\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 * @json-schema minimum:0\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_byte_size\n\t */\n\t\"dcat:byteSize\"?: number;\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\"?: number;\n\n\t/**\n\t * Minimum time period resolvable in the distribution.\n\t * @json-schema format:duration\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_temporal_resolution\n\t */\n\t\"dcat:temporalResolution\"?: string;\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"]}
|
|
@@ -1 +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 {
|
|
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 { DcatContextType } from \"./dcatContextType.js\";\nimport type { IDcatResourceBase } from \"./IDcatResourceBase.js\";\n\n/**\n * 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 IDcatResourceBase {\n\t/**\n\t * The JSON-LD context for the resource.\n\t */\n\t\"@context\": DcatContextType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDcatResourceBase.js","sourceRoot":"","sources":["../../../src/models/IDcatResourceBase.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 { IFoafAgentWithAliases } from \"@twin.org/standards-foaf\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { IDcatRelationship } from \"./IDcatRelationship.js\";\n\n/**\n * Base interface for DCAT catalogued resources without JSON-LD context.\n * This is the context-free variant of IDcatResource, intended for embedding\n * resources inline within other objects where the context is provided by the enclosing document.\n * @see https://www.w3.org/TR/vocab-dcat-3/#Class:Resource\n */\nexport interface IDcatResourceBase {\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 * The unique identifier for the resource.\n\t */\n\t\"@id\"?: string;\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\"?: ObjectOrArray<string>;\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\"?: ObjectOrArray<string>;\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\"?: ObjectOrArray<string>;\n\n\t/**\n\t * Date of formal issuance (publication) of the resource.\n\t * @json-schema format:date-time\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_release_date\n\t */\n\t\"dcterms:issued\"?: string;\n\n\t/**\n\t * Most recent date on which the resource was changed, updated or modified.\n\t * @json-schema format:date-time\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_update_date\n\t */\n\t\"dcterms:modified\"?: string;\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\"?: IFoafAgentWithAliases | 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\"?: IFoafAgentWithAliases | string;\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\"?: ObjectOrArray<string>;\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"]}
|
|
@@ -1 +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 {
|
|
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 { ObjectOrArray } from \"@twin.org/core\";\nimport type { DcatClasses } from \"./dcatClasses.js\";\nimport type { DcatContextType } from \"./dcatContextType.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 {\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 * The unique identifier for the role object.\n\t */\n\t\"@id\"?: string;\n\n\t/**\n\t * A name given to the role.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_title\n\t */\n\t\"dcterms:title\"?: ObjectOrArray<string>;\n}\n"]}
|