@twin.org/standards-dublin-core 0.0.1-next.36 → 0.0.1-next.38
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 +34 -3
- package/dist/esm/index.mjs +34 -4
- package/dist/types/dataTypes/dublinCoreDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/models/dublinCoreContexts.d.ts +16 -3
- package/docs/changelog.md +14 -0
- package/docs/reference/classes/DublinCoreDataTypes.md +25 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/variables/DublinCoreContexts.md +26 -4
- package/package.json +1 -1
- /package/dist/types/models/{dublinCoreTypes.d.ts → dublinCorePropertyType.d.ts} +0 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var dataJsonLd = require('@twin.org/data-json-ld');
|
|
4
|
+
|
|
3
5
|
// Copyright 2024 IOTA Stiftung.
|
|
4
6
|
// SPDX-License-Identifier: Apache-2.0.
|
|
5
7
|
/**
|
|
@@ -8,10 +10,23 @@
|
|
|
8
10
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
11
|
const DublinCoreContexts = {
|
|
10
12
|
/**
|
|
11
|
-
* The context
|
|
12
|
-
* @see
|
|
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
|
|
13
28
|
*/
|
|
14
|
-
|
|
29
|
+
ContextDcmiTypeRedirect: "https://schema.twindev.org/dublin-core/dcmitype.jsonld"
|
|
15
30
|
};
|
|
16
31
|
|
|
17
32
|
// Copyright 2024 IOTA Stiftung.
|
|
@@ -90,6 +105,22 @@ const DublinCoreClasses = {
|
|
|
90
105
|
Collection: "Collection"
|
|
91
106
|
};
|
|
92
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
|
+
|
|
93
123
|
exports.DublinCoreClasses = DublinCoreClasses;
|
|
94
124
|
exports.DublinCoreContexts = DublinCoreContexts;
|
|
125
|
+
exports.DublinCoreDataTypes = DublinCoreDataTypes;
|
|
95
126
|
exports.DublinCorePropertyType = DublinCorePropertyType;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { JsonLdProcessor } from '@twin.org/data-json-ld';
|
|
2
|
+
|
|
1
3
|
// Copyright 2024 IOTA Stiftung.
|
|
2
4
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
5
|
/**
|
|
@@ -6,10 +8,23 @@
|
|
|
6
8
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
9
|
const DublinCoreContexts = {
|
|
8
10
|
/**
|
|
9
|
-
* The context
|
|
10
|
-
* @see
|
|
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
|
|
11
26
|
*/
|
|
12
|
-
|
|
27
|
+
ContextDcmiTypeRedirect: "https://schema.twindev.org/dublin-core/dcmitype.jsonld"
|
|
13
28
|
};
|
|
14
29
|
|
|
15
30
|
// Copyright 2024 IOTA Stiftung.
|
|
@@ -88,4 +103,19 @@ const DublinCoreClasses = {
|
|
|
88
103
|
Collection: "Collection"
|
|
89
104
|
};
|
|
90
105
|
|
|
91
|
-
|
|
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 };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,10 +3,23 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const DublinCoreContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The context
|
|
7
|
-
* @see
|
|
6
|
+
* The LD context for Dublin Core Terms vocabulary.
|
|
7
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/
|
|
8
8
|
*/
|
|
9
|
-
readonly
|
|
9
|
+
readonly ContextTerms: "http://purl.org/dc/terms/";
|
|
10
|
+
/**
|
|
11
|
+
* The LD context for Dublin Core DCMI Types vocabulary.
|
|
12
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7
|
|
13
|
+
*/
|
|
14
|
+
readonly ContextDcmiType: "http://purl.org/dc/dcmitype/";
|
|
15
|
+
/**
|
|
16
|
+
* Redirection URL for terms
|
|
17
|
+
*/
|
|
18
|
+
readonly ContextTermsRedirect: "https://schema.twindev.org/dublin-core/terms.jsonld";
|
|
19
|
+
/**
|
|
20
|
+
* Redirection URLs
|
|
21
|
+
*/
|
|
22
|
+
readonly ContextDcmiTypeRedirect: "https://schema.twindev.org/dublin-core/dcmitype.jsonld";
|
|
10
23
|
};
|
|
11
24
|
/**
|
|
12
25
|
* The contexts for Dublin Core.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/standards-dublin-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.38](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.1-next.37...standards-dublin-core-v0.0.1-next.38) (2025-05-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-dublin-core:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
## [0.0.1-next.37](https://github.com/twinfoundation/standards/compare/standards-dublin-core-v0.0.1-next.36...standards-dublin-core-v0.0.1-next.37) (2025-05-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* dublin core refactor ([548db75](https://github.com/twinfoundation/standards/commit/548db75600d44a0ab8f7bff2f07261552dc2b0b1))
|
|
16
|
+
|
|
3
17
|
## [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
18
|
|
|
5
19
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Class: DublinCoreDataTypes
|
|
2
|
+
|
|
3
|
+
Handle all the data types for Dublin Core.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new DublinCoreDataTypes**(): `DublinCoreDataTypes`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`DublinCoreDataTypes`
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### registerRedirects()
|
|
18
|
+
|
|
19
|
+
> `static` **registerRedirects**(): `void`
|
|
20
|
+
|
|
21
|
+
Register the JSON-LD Redirects.
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
`void`
|
package/docs/reference/index.md
CHANGED
|
@@ -6,12 +6,34 @@ The contexts for Dublin Core.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### ContextTerms
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **ContextTerms**: `"http://purl.org/dc/terms/"` = `"http://purl.org/dc/terms/"`
|
|
12
12
|
|
|
13
|
-
The context
|
|
13
|
+
The LD context for Dublin Core Terms vocabulary.
|
|
14
14
|
|
|
15
15
|
#### See
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
https://www.dublincore.org/specifications/dublin-core/dcmi-terms/
|
|
18
|
+
|
|
19
|
+
### ContextDcmiType
|
|
20
|
+
|
|
21
|
+
> `readonly` **ContextDcmiType**: `"http://purl.org/dc/dcmitype/"` = `"http://purl.org/dc/dcmitype/"`
|
|
22
|
+
|
|
23
|
+
The LD context for Dublin Core DCMI Types vocabulary.
|
|
24
|
+
|
|
25
|
+
#### See
|
|
26
|
+
|
|
27
|
+
https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7
|
|
28
|
+
|
|
29
|
+
### ContextTermsRedirect
|
|
30
|
+
|
|
31
|
+
> `readonly` **ContextTermsRedirect**: `"https://schema.twindev.org/dublin-core/terms.jsonld"` = `"https://schema.twindev.org/dublin-core/terms.jsonld"`
|
|
32
|
+
|
|
33
|
+
Redirection URL for terms
|
|
34
|
+
|
|
35
|
+
### ContextDcmiTypeRedirect
|
|
36
|
+
|
|
37
|
+
> `readonly` **ContextDcmiTypeRedirect**: `"https://schema.twindev.org/dublin-core/dcmitype.jsonld"` = `"https://schema.twindev.org/dublin-core/dcmitype.jsonld"`
|
|
38
|
+
|
|
39
|
+
Redirection URLs
|
package/package.json
CHANGED
|
File without changes
|