@twin.org/standards-dublin-core 0.0.2-next.9 → 0.0.3-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { JsonLdProcessor } from "@twin.org/data-json-ld";
4
+ import { DublinCoreContexts } from "../models/dublinCoreContexts.js";
5
+ /**
6
+ * Handle all the data types for Dublin Core.
7
+ */
8
+ export class DublinCoreDataTypes {
9
+ /**
10
+ * Register the JSON-LD Redirects.
11
+ */
12
+ static registerRedirects() {
13
+ JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/terms\/?/, DublinCoreContexts.ContextTermsRedirect);
14
+ JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/dcmitype\/?/, DublinCoreContexts.ContextDcmiTypeRedirect);
15
+ }
16
+ }
17
+ //# sourceMappingURL=dublinCoreDataTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dublinCoreDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/dublinCoreDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAC/B;;OAEG;IACI,MAAM,CAAC,iBAAiB;QAC9B,eAAe,CAAC,WAAW,CAC1B,mCAAmC,EACnC,kBAAkB,CAAC,oBAAoB,CACvC,CAAC;QACF,eAAe,CAAC,WAAW,CAC1B,sCAAsC,EACtC,kBAAkB,CAAC,uBAAuB,CAC1C,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { DublinCoreContexts } from \"../models/dublinCoreContexts.js\";\n\n/**\n * Handle all the data types for Dublin Core.\n */\nexport class DublinCoreDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\t/https?:\\/\\/purl.org\\/dc\\/terms\\/?/,\n\t\t\tDublinCoreContexts.ContextTermsRedirect\n\t\t);\n\t\tJsonLdProcessor.addRedirect(\n\t\t\t/https?:\\/\\/purl.org\\/dc\\/dcmitype\\/?/,\n\t\t\tDublinCoreContexts.ContextDcmiTypeRedirect\n\t\t);\n\t}\n}\n"]}
@@ -0,0 +1,8 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./models/dublinCoreContexts.js";
4
+ export * from "./models/dublinCorePropertyType.js";
5
+ export * from "./models/dublinCoreClasses.js";
6
+ export * from "./models/IDublinCorePeriodOfTime.js";
7
+ export * from "./dataTypes/dublinCoreDataTypes.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/dublinCoreContexts.js\";\nexport * from \"./models/dublinCorePropertyType.js\";\nexport * from \"./models/dublinCoreClasses.js\";\nexport * from \"./models/IDublinCorePeriodOfTime.js\";\nexport * from \"./dataTypes/dublinCoreDataTypes.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDublinCorePeriodOfTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDublinCorePeriodOfTime.js","sourceRoot":"","sources":["../../../src/models/IDublinCorePeriodOfTime.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 { DublinCoreClasses } from \"./dublinCoreClasses.js\";\n\n/**\n * Interface for Dublin Core Terms Period of Time.\n * An interval of time that is named or defined by its start and end dates.\n * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime\n */\nexport interface IDublinCorePeriodOfTime extends IJsonLdNodeObject {\n\t/**\n\t * The type identifier for PeriodOfTime.\n\t */\n\t\"@type\"?: typeof DublinCoreClasses.PeriodOfTime;\n\n\t/**\n\t * The start date of the period.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:period_start_date\n\t */\n\t\"dcat:startDate\"?: string;\n\n\t/**\n\t * The end date of the period.\n\t * @see https://www.w3.org/TR/vocab-dcat-3/#Property:period_end_date\n\t */\n\t\"dcat:endDate\"?: string;\n\n\t/**\n\t * The beginning of a period or interval.\n\t * @see https://www.w3.org/TR/owl-time/#time:hasBeginning\n\t */\n\t\"time:hasBeginning\"?: string;\n\n\t/**\n\t * The end of a period or interval.\n\t * @see https://www.w3.org/TR/owl-time/#time:hasEnd\n\t */\n\t\"time:hasEnd\"?: string;\n}\n"]}
@@ -0,0 +1,20 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * Dublin Core classes.
5
+ * Based on http://purl.org/dc/dcmitype
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const DublinCoreClasses = {
9
+ /**
10
+ * See Description at
11
+ * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
12
+ */
13
+ Collection: "Collection",
14
+ /**
15
+ * See Description at
16
+ * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
17
+ */
18
+ PeriodOfTime: "PeriodOfTime"
19
+ };
20
+ //# sourceMappingURL=dublinCoreClasses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dublinCoreClasses.js","sourceRoot":"","sources":["../../../src/models/dublinCoreClasses.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;;OAGG;IACH,UAAU,EAAE,YAAY;IAExB;;;OAGG;IACH,YAAY,EAAE,cAAc;CACnB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Dublin Core classes.\n * Based on http://purl.org/dc/dcmitype\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DublinCoreClasses = {\n\t/**\n\t * See Description at\n\t * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection\n\t */\n\tCollection: \"Collection\",\n\n\t/**\n\t * See Description at\n\t * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime\n\t */\n\tPeriodOfTime: \"PeriodOfTime\"\n} as const;\n\n/**\n * Dublin Core classes\n */\nexport type DublinCoreClasses = (typeof DublinCoreClasses)[keyof typeof DublinCoreClasses];\n"]}
@@ -0,0 +1,27 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ /**
4
+ * The contexts for Dublin Core.
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const DublinCoreContexts = {
8
+ /**
9
+ * The LD context for Dublin Core Terms vocabulary.
10
+ * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/
11
+ */
12
+ ContextTerms: "http://purl.org/dc/terms/",
13
+ /**
14
+ * The LD context for Dublin Core DCMI Types vocabulary.
15
+ * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7
16
+ */
17
+ ContextDcmiType: "http://purl.org/dc/dcmitype/",
18
+ /**
19
+ * Redirection URL for terms
20
+ */
21
+ ContextTermsRedirect: "https://schema.twindev.org/dublin-core/terms.jsonld",
22
+ /**
23
+ * Redirection URLs
24
+ */
25
+ ContextDcmiTypeRedirect: "https://schema.twindev.org/dublin-core/dcmitype.jsonld"
26
+ };
27
+ //# sourceMappingURL=dublinCoreContexts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dublinCoreContexts.js","sourceRoot":"","sources":["../../../src/models/dublinCoreContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC;;;OAGG;IACH,YAAY,EAAE,2BAA2B;IAEzC;;;OAGG;IACH,eAAe,EAAE,8BAA8B;IAE/C;;OAEG;IACH,oBAAoB,EAAE,qDAAqD;IAE3E;;OAEG;IACH,uBAAuB,EAAE,wDAAwD;CACxE,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts for Dublin Core.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DublinCoreContexts = {\n\t/**\n\t * The LD context for Dublin Core Terms vocabulary.\n\t * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/\n\t */\n\tContextTerms: \"http://purl.org/dc/terms/\",\n\n\t/**\n\t * The LD context for Dublin Core DCMI Types vocabulary.\n\t * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7\n\t */\n\tContextDcmiType: \"http://purl.org/dc/dcmitype/\",\n\n\t/**\n\t * Redirection URL for terms\n\t */\n\tContextTermsRedirect: \"https://schema.twindev.org/dublin-core/terms.jsonld\",\n\n\t/**\n\t * Redirection URLs\n\t */\n\tContextDcmiTypeRedirect: \"https://schema.twindev.org/dublin-core/dcmitype.jsonld\"\n} as const;\n\n/**\n * The contexts for Dublin Core.\n */\nexport type DublinCoreContexts = (typeof DublinCoreContexts)[keyof typeof DublinCoreContexts];\n"]}
@@ -1,32 +1,3 @@
1
- import { JsonLdProcessor } from '@twin.org/data-json-ld';
2
-
3
- // Copyright 2024 IOTA Stiftung.
4
- // SPDX-License-Identifier: Apache-2.0.
5
- /**
6
- * The contexts for Dublin Core.
7
- */
8
- // eslint-disable-next-line @typescript-eslint/naming-convention
9
- const DublinCoreContexts = {
10
- /**
11
- * The LD context for Dublin Core Terms vocabulary.
12
- * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/
13
- */
14
- ContextTerms: "http://purl.org/dc/terms/",
15
- /**
16
- * The LD context for Dublin Core DCMI Types vocabulary.
17
- * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7
18
- */
19
- ContextDcmiType: "http://purl.org/dc/dcmitype/",
20
- /**
21
- * Redirection URL for terms
22
- */
23
- ContextTermsRedirect: "https://schema.twindev.org/dublin-core/terms.jsonld",
24
- /**
25
- * Redirection URLs
26
- */
27
- ContextDcmiTypeRedirect: "https://schema.twindev.org/dublin-core/dcmitype.jsonld"
28
- };
29
-
30
1
  // Copyright 2024 IOTA Stiftung.
31
2
  // SPDX-License-Identifier: Apache-2.0.
32
3
  /**
@@ -34,7 +5,7 @@ const DublinCoreContexts = {
34
5
  * Based on http://purl.org/dc/terms/
35
6
  */
36
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
37
- const DublinCorePropertyType = {
8
+ export const DublinCorePropertyType = {
38
9
  /**
39
10
  * The individual, agent, or organisation that authored the Policy.
40
11
  * Note: String values may not be normalized and should not be used for direct comparison.
@@ -87,35 +58,4 @@ const DublinCorePropertyType = {
87
58
  */
88
59
  HasPart: "hasPart"
89
60
  };
90
-
91
- // Copyright 2024 IOTA Stiftung.
92
- // SPDX-License-Identifier: Apache-2.0.
93
- /**
94
- * Dublin Core classes.
95
- * Based on http://purl.org/dc/dcmitype
96
- */
97
- // eslint-disable-next-line @typescript-eslint/naming-convention
98
- const DublinCoreClasses = {
99
- /**
100
- * See Description at
101
- * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
102
- */
103
- Collection: "Collection"
104
- };
105
-
106
- // Copyright 2024 IOTA Stiftung.
107
- // SPDX-License-Identifier: Apache-2.0.
108
- /**
109
- * Handle all the data types for Dublin Core.
110
- */
111
- class DublinCoreDataTypes {
112
- /**
113
- * Register the JSON-LD Redirects.
114
- */
115
- static registerRedirects() {
116
- JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/terms\/?/, DublinCoreContexts.ContextTermsRedirect);
117
- JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/dcmitype\/?/, DublinCoreContexts.ContextDcmiTypeRedirect);
118
- }
119
- }
120
-
121
- export { DublinCoreClasses, DublinCoreContexts, DublinCoreDataTypes, DublinCorePropertyType };
61
+ //# sourceMappingURL=dublinCorePropertyType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dublinCorePropertyType.js","sourceRoot":"","sources":["../../../src/models/dublinCorePropertyType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,WAAW,EAAE,aAAa;IAE1B;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,SAAS,EAAE,WAAW;IAEtB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;;OAIG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,YAAY,EAAE,cAAc;IAE5B;;;OAGG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Common Dublin Core property types for ODRL Policy Metadata.\n * Based on http://purl.org/dc/terms/\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DublinCorePropertyType = {\n\t/**\n\t * The individual, agent, or organisation that authored the Policy.\n\t * Note: String values may not be normalized and should not be used for direct comparison.\n\t */\n\tCreator: \"creator\",\n\n\t/**\n\t * A human-readable representation or summary of the Policy.\n\t * Note: String values may not be normalized and should not be used for direct comparison.\n\t */\n\tDescription: \"description\",\n\n\t/**\n\t * The date (and time) the Policy was first issued.\n\t * Note: String values may not be normalized and should not be used for direct comparison.\n\t */\n\tIssued: \"issued\",\n\n\t/**\n\t * The date (and time) the Policy was updated.\n\t * Note: String values may not be normalized and should not be used for direct comparison.\n\t */\n\tModified: \"modified\",\n\n\t/**\n\t * The publisher of the Policy.\n\t * Note: String values may not be normalized and should not be used for direct comparison.\n\t */\n\tPublisher: \"publisher\",\n\n\t/**\n\t * The subject of the Policy.\n\t * Note: String values may not be normalized and should not be used for direct comparison.\n\t */\n\tSubject: \"subject\",\n\n\t/**\n\t * The jurisdiction under which the Policy is relevant.\n\t * Note: When using string values, they may not be normalized and should not be used for direct comparison.\n\t * Using \"@id\" references is preferred for comparison purposes.\n\t */\n\tCoverage: \"coverage\",\n\n\t/**\n\t * The identifier of a Policy that this Policy supersedes.\n\t * Using \"@id\" references is preferred for comparison purposes.\n\t */\n\tReplaces: \"replaces\",\n\n\t/**\n\t * The identifier of a Policy that supersedes this Policy.\n\t * Using \"@id\" references is preferred for comparison purposes.\n\t */\n\tIsReplacedBy: \"isReplacedBy\",\n\n\t/**\n\t * See Description at\n\t * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart\n\t */\n\tHasPart: \"hasPart\"\n} as const;\n\n/**\n * Common Dublin Core property types.\n */\nexport type DublinCorePropertyType =\n\t(typeof DublinCorePropertyType)[keyof typeof DublinCorePropertyType];\n"]}
@@ -1,4 +1,5 @@
1
- export * from "./models/dublinCoreContexts";
2
- export * from "./models/dublinCorePropertyType";
3
- export * from "./models/dublinCoreClasses";
4
- export * from "./dataTypes/dublinCoreDataTypes";
1
+ export * from "./models/dublinCoreContexts.js";
2
+ export * from "./models/dublinCorePropertyType.js";
3
+ export * from "./models/dublinCoreClasses.js";
4
+ export * from "./models/IDublinCorePeriodOfTime.js";
5
+ export * from "./dataTypes/dublinCoreDataTypes.js";
@@ -0,0 +1,33 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { DublinCoreClasses } from "./dublinCoreClasses.js";
3
+ /**
4
+ * Interface for Dublin Core Terms Period of Time.
5
+ * An interval of time that is named or defined by its start and end dates.
6
+ * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
7
+ */
8
+ export interface IDublinCorePeriodOfTime extends IJsonLdNodeObject {
9
+ /**
10
+ * The type identifier for PeriodOfTime.
11
+ */
12
+ "@type"?: typeof DublinCoreClasses.PeriodOfTime;
13
+ /**
14
+ * The start date of the period.
15
+ * @see https://www.w3.org/TR/vocab-dcat-3/#Property:period_start_date
16
+ */
17
+ "dcat:startDate"?: string;
18
+ /**
19
+ * The end date of the period.
20
+ * @see https://www.w3.org/TR/vocab-dcat-3/#Property:period_end_date
21
+ */
22
+ "dcat:endDate"?: string;
23
+ /**
24
+ * The beginning of a period or interval.
25
+ * @see https://www.w3.org/TR/owl-time/#time:hasBeginning
26
+ */
27
+ "time:hasBeginning"?: string;
28
+ /**
29
+ * The end of a period or interval.
30
+ * @see https://www.w3.org/TR/owl-time/#time:hasEnd
31
+ */
32
+ "time:hasEnd"?: string;
33
+ }
@@ -8,6 +8,11 @@ export declare const DublinCoreClasses: {
8
8
  * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
9
9
  */
10
10
  readonly Collection: "Collection";
11
+ /**
12
+ * See Description at
13
+ * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
14
+ */
15
+ readonly PeriodOfTime: "PeriodOfTime";
11
16
  };
12
17
  /**
13
18
  * Dublin Core classes
package/docs/changelog.md CHANGED
@@ -1,5 +1,134 @@
1
1
  # @twin.org/standards-dublin-core - Changelog
2
2
 
3
+ ## [0.0.3-next.10](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.9...standards-dublin-core-v0.0.3-next.10) (2026-01-13)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **standards-dublin-core:** Synchronize repo versions
9
+
10
+ ## [0.0.3-next.9](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.8...standards-dublin-core-v0.0.3-next.9) (2026-01-09)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **standards-dublin-core:** Synchronize repo versions
16
+
17
+ ## [0.0.3-next.8](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.7...standards-dublin-core-v0.0.3-next.8) (2026-01-08)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **standards-dublin-core:** Synchronize repo versions
23
+
24
+ ## [0.0.3-next.7](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.6...standards-dublin-core-v0.0.3-next.7) (2026-01-06)
25
+
26
+
27
+ ### Features
28
+
29
+ * update type names ([#89](https://github.com/twinfoundation/standards/issues/89)) ([6fdef47](https://github.com/twinfoundation/standards/commit/6fdef4792151f89d1a95a07da8309d05a7b6de3d))
30
+
31
+ ## [0.0.3-next.6](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.5...standards-dublin-core-v0.0.3-next.6) (2025-12-03)
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * **standards-dublin-core:** Synchronize repo versions
37
+
38
+ ## [0.0.3-next.5](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.4...standards-dublin-core-v0.0.3-next.5) (2025-11-28)
39
+
40
+
41
+ ### Miscellaneous Chores
42
+
43
+ * **standards-dublin-core:** Synchronize repo versions
44
+
45
+ ## [0.0.3-next.4](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.3...standards-dublin-core-v0.0.3-next.4) (2025-11-18)
46
+
47
+
48
+ ### Miscellaneous Chores
49
+
50
+ * **standards-dublin-core:** Synchronize repo versions
51
+
52
+ ## [0.0.3-next.3](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.2...standards-dublin-core-v0.0.3-next.3) (2025-11-18)
53
+
54
+
55
+ ### Features
56
+
57
+ * add w3c dcat standards package ([#68](https://github.com/twinfoundation/standards/issues/68)) ([85746c6](https://github.com/twinfoundation/standards/commit/85746c673464498a52e9c30ce498fd88b81a7434))
58
+
59
+ ## [0.0.3-next.2](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.1...standards-dublin-core-v0.0.3-next.2) (2025-11-11)
60
+
61
+
62
+ ### Miscellaneous Chores
63
+
64
+ * **standards-dublin-core:** Synchronize repo versions
65
+
66
+ ## [0.0.3-next.1](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.0...standards-dublin-core-v0.0.3-next.1) (2025-11-10)
67
+
68
+
69
+ ### Features
70
+
71
+ * add Collection and hasPart to Dublin Core ([#13](https://github.com/twinfoundation/standards/issues/13)) ([867ddbc](https://github.com/twinfoundation/standards/commit/867ddbcad0c4afec3c112b113eb97ab431cf84b1))
72
+ * add context id features ([#64](https://github.com/twinfoundation/standards/issues/64)) ([e68bb87](https://github.com/twinfoundation/standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
73
+ * add validate-locales ([838389c](https://github.com/twinfoundation/standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
74
+ * dublin core refactor ([548db75](https://github.com/twinfoundation/standards/commit/548db75600d44a0ab8f7bff2f07261552dc2b0b1))
75
+ * eslint migration to flat config ([648c1a1](https://github.com/twinfoundation/standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
76
+ * export unece schemas ([ef9af8d](https://github.com/twinfoundation/standards/commit/ef9af8db9931d1b7ca3a77c15b17bba6a3e7badc))
77
+ * update framework core ([58c0c3d](https://github.com/twinfoundation/standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
78
+ * update to latest JSON schema spec ([7a23930](https://github.com/twinfoundation/standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
79
+ * update ts-to-schema generation ([ba4e76d](https://github.com/twinfoundation/standards/commit/ba4e76d677556a1817092f8079d4cce67dee94bc))
80
+ * update ts-to-schema generation ([0905daa](https://github.com/twinfoundation/standards/commit/0905daa4a344ed35fc37b7f12fcf9ce9d34e4bd6))
81
+ * use shared store mechanism ([#11](https://github.com/twinfoundation/standards/issues/11)) ([96fa237](https://github.com/twinfoundation/standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
82
+
83
+ ## [0.0.2-next.16](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.15...standards-dublin-core-v0.0.2-next.16) (2025-10-09)
84
+
85
+
86
+ ### Miscellaneous Chores
87
+
88
+ * **standards-dublin-core:** Synchronize repo versions
89
+
90
+ ## [0.0.2-next.15](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.14...standards-dublin-core-v0.0.2-next.15) (2025-10-09)
91
+
92
+
93
+ ### Features
94
+
95
+ * add validate-locales ([838389c](https://github.com/twinfoundation/standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
96
+
97
+ ## [0.0.2-next.14](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.13...standards-dublin-core-v0.0.2-next.14) (2025-10-02)
98
+
99
+
100
+ ### Miscellaneous Chores
101
+
102
+ * **standards-dublin-core:** Synchronize repo versions
103
+
104
+ ## [0.0.2-next.13](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.12...standards-dublin-core-v0.0.2-next.13) (2025-09-22)
105
+
106
+
107
+ ### Miscellaneous Chores
108
+
109
+ * **standards-dublin-core:** Synchronize repo versions
110
+
111
+ ## [0.0.2-next.12](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.11...standards-dublin-core-v0.0.2-next.12) (2025-09-16)
112
+
113
+
114
+ ### Miscellaneous Chores
115
+
116
+ * **standards-dublin-core:** Synchronize repo versions
117
+
118
+ ## [0.0.2-next.11](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.10...standards-dublin-core-v0.0.2-next.11) (2025-09-16)
119
+
120
+
121
+ ### Miscellaneous Chores
122
+
123
+ * **standards-dublin-core:** Synchronize repo versions
124
+
125
+ ## [0.0.2-next.10](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.9...standards-dublin-core-v0.0.2-next.10) (2025-09-16)
126
+
127
+
128
+ ### Miscellaneous Chores
129
+
130
+ * **standards-dublin-core:** Synchronize repo versions
131
+
3
132
  ## [0.0.2-next.9](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.2-next.8...standards-dublin-core-v0.0.2-next.9) (2025-09-15)
4
133
 
5
134
 
@@ -4,6 +4,10 @@
4
4
 
5
5
  - [DublinCoreDataTypes](classes/DublinCoreDataTypes.md)
6
6
 
7
+ ## Interfaces
8
+
9
+ - [IDublinCorePeriodOfTime](interfaces/IDublinCorePeriodOfTime.md)
10
+
7
11
  ## Type Aliases
8
12
 
9
13
  - [DublinCoreClasses](type-aliases/DublinCoreClasses.md)
@@ -0,0 +1,76 @@
1
+ # Interface: IDublinCorePeriodOfTime
2
+
3
+ Interface for Dublin Core Terms Period of Time.
4
+ An interval of time that is named or defined by its start and end dates.
5
+
6
+ ## See
7
+
8
+ https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
9
+
10
+ ## Extends
11
+
12
+ - `IJsonLdNodeObject`
13
+
14
+ ## Indexable
15
+
16
+ \[`key`: `string`\]: `string` \| `number` \| `boolean` \| `IJsonLdNodeObject` \| `IJsonLdGraphObject` \| `object` & `object` \| `object` & `object` \| `object` & `object` \| `IJsonLdListObject` \| `IJsonLdSetObject` \| `IJsonLdNodePrimitive`[] \| `IJsonLdLanguageMap` \| `IJsonLdIndexMap` \| `IJsonLdNodeObject`[] \| `IJsonLdIdMap` \| `IJsonLdTypeMap` \| `IJsonLdContextDefinition` \| `IJsonLdContextDefinitionElement`[] \| `string`[] \| `IJsonLdJsonObject` \| `IJsonLdJsonObject`[] \| \{\[`key`: `string`\]: `string`; \} \| `null` \| `undefined`
17
+
18
+ ## Properties
19
+
20
+ ### @type?
21
+
22
+ > `optional` **@type**: `"PeriodOfTime"`
23
+
24
+ The type identifier for PeriodOfTime.
25
+
26
+ #### Overrides
27
+
28
+ `IJsonLdNodeObject.@type`
29
+
30
+ ***
31
+
32
+ ### dcat:startDate?
33
+
34
+ > `optional` **dcat:startDate**: `string`
35
+
36
+ The start date of the period.
37
+
38
+ #### See
39
+
40
+ https://www.w3.org/TR/vocab-dcat-3/#Property:period_start_date
41
+
42
+ ***
43
+
44
+ ### dcat:endDate?
45
+
46
+ > `optional` **dcat:endDate**: `string`
47
+
48
+ The end date of the period.
49
+
50
+ #### See
51
+
52
+ https://www.w3.org/TR/vocab-dcat-3/#Property:period_end_date
53
+
54
+ ***
55
+
56
+ ### time:hasBeginning?
57
+
58
+ > `optional` **time:hasBeginning**: `string`
59
+
60
+ The beginning of a period or interval.
61
+
62
+ #### See
63
+
64
+ https://www.w3.org/TR/owl-time/#time:hasBeginning
65
+
66
+ ***
67
+
68
+ ### time:hasEnd?
69
+
70
+ > `optional` **time:hasEnd**: `string`
71
+
72
+ The end of a period or interval.
73
+
74
+ #### See
75
+
76
+ https://www.w3.org/TR/owl-time/#time:hasEnd
@@ -13,3 +13,10 @@ Based on http://purl.org/dc/dcmitype
13
13
 
14
14
  See Description at
15
15
  https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
16
+
17
+ ### PeriodOfTime
18
+
19
+ > `readonly` **PeriodOfTime**: `"PeriodOfTime"` = `"PeriodOfTime"`
20
+
21
+ See Description at
22
+ https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-dublin-core",
3
- "version": "0.0.2-next.9",
3
+ "version": "0.0.3-next.10",
4
4
  "description": "Models which define the structure of Dublin Core Standard",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,22 +17,37 @@
17
17
  "@twin.org/data-json-ld": "next",
18
18
  "@twin.org/web": "next"
19
19
  },
20
- "main": "./dist/cjs/index.cjs",
21
- "module": "./dist/esm/index.mjs",
20
+ "main": "./dist/es/index.js",
22
21
  "types": "./dist/types/index.d.ts",
23
22
  "exports": {
24
23
  ".": {
25
24
  "types": "./dist/types/index.d.ts",
26
- "require": "./dist/cjs/index.cjs",
27
- "import": "./dist/esm/index.mjs"
25
+ "import": "./dist/es/index.js",
26
+ "default": "./dist/es/index.js"
28
27
  },
29
28
  "./locales/*.json": "./locales/*.json"
30
29
  },
31
30
  "files": [
32
- "dist/cjs",
33
- "dist/esm",
31
+ "dist/es",
34
32
  "dist/types",
35
33
  "locales",
36
34
  "docs"
37
- ]
35
+ ],
36
+ "keywords": [
37
+ "twin",
38
+ "trade",
39
+ "iota",
40
+ "framework",
41
+ "blockchain",
42
+ "standards",
43
+ "schema",
44
+ "specification",
45
+ "core",
46
+ "foundation",
47
+ "utilities"
48
+ ],
49
+ "bugs": {
50
+ "url": "git+https://github.com/twinfoundation/standards/issues"
51
+ },
52
+ "homepage": "https://twindev.org"
38
53
  }
@@ -1,126 +0,0 @@
1
- 'use strict';
2
-
3
- var dataJsonLd = require('@twin.org/data-json-ld');
4
-
5
- // Copyright 2024 IOTA Stiftung.
6
- // SPDX-License-Identifier: Apache-2.0.
7
- /**
8
- * The contexts for Dublin Core.
9
- */
10
- // eslint-disable-next-line @typescript-eslint/naming-convention
11
- const DublinCoreContexts = {
12
- /**
13
- * The LD context for Dublin Core Terms vocabulary.
14
- * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/
15
- */
16
- ContextTerms: "http://purl.org/dc/terms/",
17
- /**
18
- * The LD context for Dublin Core DCMI Types vocabulary.
19
- * @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7
20
- */
21
- ContextDcmiType: "http://purl.org/dc/dcmitype/",
22
- /**
23
- * Redirection URL for terms
24
- */
25
- ContextTermsRedirect: "https://schema.twindev.org/dublin-core/terms.jsonld",
26
- /**
27
- * Redirection URLs
28
- */
29
- ContextDcmiTypeRedirect: "https://schema.twindev.org/dublin-core/dcmitype.jsonld"
30
- };
31
-
32
- // Copyright 2024 IOTA Stiftung.
33
- // SPDX-License-Identifier: Apache-2.0.
34
- /**
35
- * Common Dublin Core property types for ODRL Policy Metadata.
36
- * Based on http://purl.org/dc/terms/
37
- */
38
- // eslint-disable-next-line @typescript-eslint/naming-convention
39
- const DublinCorePropertyType = {
40
- /**
41
- * The individual, agent, or organisation that authored the Policy.
42
- * Note: String values may not be normalized and should not be used for direct comparison.
43
- */
44
- Creator: "creator",
45
- /**
46
- * A human-readable representation or summary of the Policy.
47
- * Note: String values may not be normalized and should not be used for direct comparison.
48
- */
49
- Description: "description",
50
- /**
51
- * The date (and time) the Policy was first issued.
52
- * Note: String values may not be normalized and should not be used for direct comparison.
53
- */
54
- Issued: "issued",
55
- /**
56
- * The date (and time) the Policy was updated.
57
- * Note: String values may not be normalized and should not be used for direct comparison.
58
- */
59
- Modified: "modified",
60
- /**
61
- * The publisher of the Policy.
62
- * Note: String values may not be normalized and should not be used for direct comparison.
63
- */
64
- Publisher: "publisher",
65
- /**
66
- * The subject of the Policy.
67
- * Note: String values may not be normalized and should not be used for direct comparison.
68
- */
69
- Subject: "subject",
70
- /**
71
- * The jurisdiction under which the Policy is relevant.
72
- * Note: When using string values, they may not be normalized and should not be used for direct comparison.
73
- * Using "@id" references is preferred for comparison purposes.
74
- */
75
- Coverage: "coverage",
76
- /**
77
- * The identifier of a Policy that this Policy supersedes.
78
- * Using "@id" references is preferred for comparison purposes.
79
- */
80
- Replaces: "replaces",
81
- /**
82
- * The identifier of a Policy that supersedes this Policy.
83
- * Using "@id" references is preferred for comparison purposes.
84
- */
85
- IsReplacedBy: "isReplacedBy",
86
- /**
87
- * See Description at
88
- * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
89
- */
90
- HasPart: "hasPart"
91
- };
92
-
93
- // Copyright 2024 IOTA Stiftung.
94
- // SPDX-License-Identifier: Apache-2.0.
95
- /**
96
- * Dublin Core classes.
97
- * Based on http://purl.org/dc/dcmitype
98
- */
99
- // eslint-disable-next-line @typescript-eslint/naming-convention
100
- const DublinCoreClasses = {
101
- /**
102
- * See Description at
103
- * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
104
- */
105
- Collection: "Collection"
106
- };
107
-
108
- // Copyright 2024 IOTA Stiftung.
109
- // SPDX-License-Identifier: Apache-2.0.
110
- /**
111
- * Handle all the data types for Dublin Core.
112
- */
113
- class DublinCoreDataTypes {
114
- /**
115
- * Register the JSON-LD Redirects.
116
- */
117
- static registerRedirects() {
118
- dataJsonLd.JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/terms\/?/, DublinCoreContexts.ContextTermsRedirect);
119
- dataJsonLd.JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/dcmitype\/?/, DublinCoreContexts.ContextDcmiTypeRedirect);
120
- }
121
- }
122
-
123
- exports.DublinCoreClasses = DublinCoreClasses;
124
- exports.DublinCoreContexts = DublinCoreContexts;
125
- exports.DublinCoreDataTypes = DublinCoreDataTypes;
126
- exports.DublinCorePropertyType = DublinCorePropertyType;