@twin.org/standards-dublin-core 0.0.1-next.35 → 0.0.1-next.36
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/cjs/index.cjs +22 -1
- package/dist/esm/index.mjs +22 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/dublinCoreClasses.d.ts +15 -0
- package/dist/types/models/dublinCoreTypes.d.ts +5 -0
- package/docs/changelog.md +7 -0
- package/docs/reference/index.md +2 -0
- package/docs/reference/type-aliases/DublinCoreClasses.md +5 -0
- package/docs/reference/variables/DublinCoreClasses.md +15 -0
- package/docs/reference/variables/DublinCorePropertyType.md +7 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -67,8 +67,29 @@ const DublinCorePropertyType = {
|
|
|
67
67
|
* The identifier of a Policy that supersedes this Policy.
|
|
68
68
|
* Using "@id" references is preferred for comparison purposes.
|
|
69
69
|
*/
|
|
70
|
-
IsReplacedBy: "isReplacedBy"
|
|
70
|
+
IsReplacedBy: "isReplacedBy",
|
|
71
|
+
/**
|
|
72
|
+
* See Description at
|
|
73
|
+
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|
|
74
|
+
*/
|
|
75
|
+
HasPart: "hasPart"
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// Copyright 2024 IOTA Stiftung.
|
|
79
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
80
|
+
/**
|
|
81
|
+
* Dublin Core classes.
|
|
82
|
+
* Based on http://purl.org/dc/dcmitype
|
|
83
|
+
*/
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
85
|
+
const DublinCoreClasses = {
|
|
86
|
+
/**
|
|
87
|
+
* See Description at
|
|
88
|
+
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
89
|
+
*/
|
|
90
|
+
Collection: "Collection"
|
|
71
91
|
};
|
|
72
92
|
|
|
93
|
+
exports.DublinCoreClasses = DublinCoreClasses;
|
|
73
94
|
exports.DublinCoreContexts = DublinCoreContexts;
|
|
74
95
|
exports.DublinCorePropertyType = DublinCorePropertyType;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -65,7 +65,27 @@ const DublinCorePropertyType = {
|
|
|
65
65
|
* The identifier of a Policy that supersedes this Policy.
|
|
66
66
|
* Using "@id" references is preferred for comparison purposes.
|
|
67
67
|
*/
|
|
68
|
-
IsReplacedBy: "isReplacedBy"
|
|
68
|
+
IsReplacedBy: "isReplacedBy",
|
|
69
|
+
/**
|
|
70
|
+
* See Description at
|
|
71
|
+
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|
|
72
|
+
*/
|
|
73
|
+
HasPart: "hasPart"
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// Copyright 2024 IOTA Stiftung.
|
|
77
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
78
|
+
/**
|
|
79
|
+
* Dublin Core classes.
|
|
80
|
+
* Based on http://purl.org/dc/dcmitype
|
|
81
|
+
*/
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
83
|
+
const DublinCoreClasses = {
|
|
84
|
+
/**
|
|
85
|
+
* See Description at
|
|
86
|
+
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
87
|
+
*/
|
|
88
|
+
Collection: "Collection"
|
|
69
89
|
};
|
|
70
90
|
|
|
71
|
-
export { DublinCoreContexts, DublinCorePropertyType };
|
|
91
|
+
export { DublinCoreClasses, DublinCoreContexts, DublinCorePropertyType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dublin Core classes.
|
|
3
|
+
* Based on http://purl.org/dc/dcmitype
|
|
4
|
+
*/
|
|
5
|
+
export declare const DublinCoreClasses: {
|
|
6
|
+
/**
|
|
7
|
+
* See Description at
|
|
8
|
+
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
9
|
+
*/
|
|
10
|
+
readonly Collection: "Collection";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Dublin Core classes
|
|
14
|
+
*/
|
|
15
|
+
export type DublinCoreClasses = (typeof DublinCoreClasses)[keyof typeof DublinCoreClasses];
|
|
@@ -49,6 +49,11 @@ export declare const DublinCorePropertyType: {
|
|
|
49
49
|
* Using "@id" references is preferred for comparison purposes.
|
|
50
50
|
*/
|
|
51
51
|
readonly IsReplacedBy: "isReplacedBy";
|
|
52
|
+
/**
|
|
53
|
+
* See Description at
|
|
54
|
+
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|
|
55
|
+
*/
|
|
56
|
+
readonly HasPart: "hasPart";
|
|
52
57
|
};
|
|
53
58
|
/**
|
|
54
59
|
* Common Dublin Core property types.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/standards-dublin-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.36](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.1-next.35...standards-dublin-core-v0.0.1-next.36) (2025-04-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add Collection and hasPart to Dublin Core ([#13](https://github.com/twinfoundation/standards/issues/13)) ([867ddbc](https://github.com/twinfoundation/standards/commit/867ddbcad0c4afec3c112b113eb97ab431cf84b1))
|
|
9
|
+
|
|
3
10
|
## [0.0.1-next.35](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.1-next.34...standards-dublin-core-v0.0.1-next.35) (2025-04-17)
|
|
4
11
|
|
|
5
12
|
|
package/docs/reference/index.md
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Type Aliases
|
|
4
4
|
|
|
5
|
+
- [DublinCoreClasses](type-aliases/DublinCoreClasses.md)
|
|
5
6
|
- [DublinCoreContexts](type-aliases/DublinCoreContexts.md)
|
|
6
7
|
- [DublinCorePropertyType](type-aliases/DublinCorePropertyType.md)
|
|
7
8
|
|
|
8
9
|
## Variables
|
|
9
10
|
|
|
11
|
+
- [DublinCoreClasses](variables/DublinCoreClasses.md)
|
|
10
12
|
- [DublinCoreContexts](variables/DublinCoreContexts.md)
|
|
11
13
|
- [DublinCorePropertyType](variables/DublinCorePropertyType.md)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Variable: DublinCoreClasses
|
|
2
|
+
|
|
3
|
+
> `const` **DublinCoreClasses**: `object`
|
|
4
|
+
|
|
5
|
+
Dublin Core classes.
|
|
6
|
+
Based on http://purl.org/dc/dcmitype
|
|
7
|
+
|
|
8
|
+
## Type declaration
|
|
9
|
+
|
|
10
|
+
### Collection
|
|
11
|
+
|
|
12
|
+
> `readonly` **Collection**: `"Collection"` = `"Collection"`
|
|
13
|
+
|
|
14
|
+
See Description at
|
|
15
|
+
https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
@@ -70,3 +70,10 @@ Using "@id" references is preferred for comparison purposes.
|
|
|
70
70
|
|
|
71
71
|
The identifier of a Policy that supersedes this Policy.
|
|
72
72
|
Using "@id" references is preferred for comparison purposes.
|
|
73
|
+
|
|
74
|
+
### HasPart
|
|
75
|
+
|
|
76
|
+
> `readonly` **HasPart**: `"hasPart"` = `"hasPart"`
|
|
77
|
+
|
|
78
|
+
See Description at
|
|
79
|
+
https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|