@twin.org/standards-dublin-core 0.0.3-next.2 → 0.0.3-next.3

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/index.js CHANGED
@@ -3,5 +3,6 @@
3
3
  export * from "./models/dublinCoreContexts.js";
4
4
  export * from "./models/dublinCorePropertyType.js";
5
5
  export * from "./models/dublinCoreClasses.js";
6
+ export * from "./models/IPeriodOfTime.js";
6
7
  export * from "./dataTypes/dublinCoreDataTypes.js";
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +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;AAE9C,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\";\n\nexport * from \"./dataTypes/dublinCoreDataTypes.js\";\n"]}
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,2BAA2B,CAAC;AAC1C,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/IPeriodOfTime.js\";\nexport * from \"./dataTypes/dublinCoreDataTypes.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPeriodOfTime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPeriodOfTime.js","sourceRoot":"","sources":["../../../src/models/IPeriodOfTime.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 IPeriodOfTime 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"]}
@@ -10,6 +10,11 @@ export const DublinCoreClasses = {
10
10
  * See Description at
11
11
  * https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
12
12
  */
13
- Collection: "Collection"
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"
14
19
  };
15
20
  //# sourceMappingURL=dublinCoreClasses.js.map
@@ -1 +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;CACf,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} as const;\n\n/**\n * Dublin Core classes\n */\nexport type DublinCoreClasses = (typeof DublinCoreClasses)[keyof typeof DublinCoreClasses];\n"]}
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"]}
@@ -1,4 +1,5 @@
1
1
  export * from "./models/dublinCoreContexts.js";
2
2
  export * from "./models/dublinCorePropertyType.js";
3
3
  export * from "./models/dublinCoreClasses.js";
4
+ export * from "./models/IPeriodOfTime.js";
4
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 IPeriodOfTime 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,12 @@
1
1
  # @twin.org/standards-dublin-core - Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * add w3c dcat standards package ([#68](https://github.com/twinfoundation/standards/issues/68)) ([85746c6](https://github.com/twinfoundation/standards/commit/85746c673464498a52e9c30ce498fd88b81a7434))
9
+
3
10
  ## [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)
4
11
 
5
12
 
@@ -4,6 +4,10 @@
4
4
 
5
5
  - [DublinCoreDataTypes](classes/DublinCoreDataTypes.md)
6
6
 
7
+ ## Interfaces
8
+
9
+ - [IPeriodOfTime](interfaces/IPeriodOfTime.md)
10
+
7
11
  ## Type Aliases
8
12
 
9
13
  - [DublinCoreClasses](type-aliases/DublinCoreClasses.md)
@@ -0,0 +1,76 @@
1
+ # Interface: IPeriodOfTime
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.3-next.2",
3
+ "version": "0.0.3-next.3",
4
4
  "description": "Models which define the structure of Dublin Core Standard",
5
5
  "repository": {
6
6
  "type": "git",