@twin.org/standards-dublin-core 0.0.3-next.50 → 0.0.3-next.51
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/README.md +1 -1
- package/docs/changelog.md +7 -0
- package/docs/examples.md +31 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TWIN Standards Dublin Core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides data models aligned with the [Dublin Core metadata terms](https://www.dublincore.org/specifications/dublin-core/dcmi-terms/), making metadata descriptions easier to share and validate across systems.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/standards-dublin-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.51](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.50...standards-dublin-core-v0.0.3-next.51) (2026-03-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-dublin-core:** Synchronize repo versions
|
|
9
|
+
|
|
3
10
|
## [0.0.3-next.50](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.3-next.49...standards-dublin-core-v0.0.3-next.50) (2026-03-09)
|
|
4
11
|
|
|
5
12
|
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Standards Dublin Core Examples
|
|
2
|
+
|
|
3
|
+
These snippets show how to register redirects and build metadata with shared context and property constants.
|
|
4
|
+
|
|
5
|
+
## DublinCoreDataTypes
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import {
|
|
9
|
+
DublinCoreClasses,
|
|
10
|
+
DublinCoreContexts,
|
|
11
|
+
DublinCoreDataTypes,
|
|
12
|
+
DublinCorePropertyType,
|
|
13
|
+
type IDublinCorePeriodOfTime
|
|
14
|
+
} from '@twin.org/standards-dublin-core';
|
|
15
|
+
|
|
16
|
+
DublinCoreDataTypes.registerRedirects();
|
|
17
|
+
|
|
18
|
+
const period: IDublinCorePeriodOfTime = {
|
|
19
|
+
startDate: '2026-01-01',
|
|
20
|
+
endDate: '2026-12-31'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const record = {
|
|
24
|
+
'@context': DublinCoreContexts.Context,
|
|
25
|
+
type: DublinCoreClasses.Dataset,
|
|
26
|
+
[DublinCorePropertyType.Title]: 'Milestone Events',
|
|
27
|
+
[DublinCorePropertyType.Temporal]: period
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
console.log(record.type); // dcat:Dataset
|
|
31
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-dublin-core",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.51",
|
|
4
|
+
"description": "Data models for Dublin Core metadata terms.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/twinfoundation/standards.git",
|