@twin.org/standards-dublin-core 0.0.3-next.9 → 0.9.0
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/dist/es/dataTypes/dublinCoreDataTypes.js +2 -2
- package/dist/es/dataTypes/dublinCoreDataTypes.js.map +1 -1
- package/dist/es/models/IDublinCorePeriodOfTime.js.map +1 -1
- package/dist/es/models/dublinCoreClasses.js +6 -6
- package/dist/es/models/dublinCoreClasses.js.map +1 -1
- package/dist/es/models/dublinCoreContexts.js +19 -9
- package/dist/es/models/dublinCoreContexts.js.map +1 -1
- package/dist/es/models/dublinCorePropertyType.js +3 -3
- package/dist/es/models/dublinCorePropertyType.js.map +1 -1
- package/dist/types/models/IDublinCorePeriodOfTime.d.ts +1 -2
- package/dist/types/models/dublinCoreClasses.d.ts +7 -7
- package/dist/types/models/dublinCoreContexts.d.ts +19 -9
- package/dist/types/models/dublinCorePropertyType.d.ts +3 -3
- package/docs/changelog.md +549 -72
- package/docs/examples.md +31 -1
- package/docs/reference/classes/DublinCoreDataTypes.md +1 -1
- package/docs/reference/interfaces/IDublinCorePeriodOfTime.md +10 -22
- package/docs/reference/type-aliases/DublinCoreClasses.md +1 -1
- package/docs/reference/variables/DublinCoreClasses.md +15 -6
- package/docs/reference/variables/DublinCoreContexts.md +24 -16
- package/docs/reference/variables/DublinCorePropertyType.md +18 -12
- package/package.json +6 -6
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
|
|
|
@@ -10,8 +10,8 @@ export class DublinCoreDataTypes {
|
|
|
10
10
|
* Register the JSON-LD Redirects.
|
|
11
11
|
*/
|
|
12
12
|
static registerRedirects() {
|
|
13
|
-
JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/terms\/?/, DublinCoreContexts.
|
|
14
|
-
JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/dcmitype\/?/, DublinCoreContexts.
|
|
13
|
+
JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/terms\/?/, DublinCoreContexts.JsonLdContextTerms);
|
|
14
|
+
JsonLdProcessor.addRedirect(/https?:\/\/purl.org\/dc\/dcmitype\/?/, DublinCoreContexts.JsonLdContextDcmiType);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=dublinCoreDataTypes.js.map
|
|
@@ -1 +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,
|
|
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,kBAAkB,CACrC,CAAC;QACF,eAAe,CAAC,WAAW,CAC1B,sCAAsC,EACtC,kBAAkB,CAAC,qBAAqB,CACxC,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.JsonLdContextTerms\n\t\t);\n\t\tJsonLdProcessor.addRedirect(\n\t\t\t/https?:\\/\\/purl.org\\/dc\\/dcmitype\\/?/,\n\t\t\tDublinCoreContexts.JsonLdContextDcmiType\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1 +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 {
|
|
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 { 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 {\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"]}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// Copyright 2024 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
|
-
* Dublin Core
|
|
5
|
-
*
|
|
4
|
+
* Dublin Core DCMI type class identifiers.
|
|
5
|
+
* @see http://purl.org/dc/dcmitype
|
|
6
6
|
*/
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
8
|
export const DublinCoreClasses = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
10
|
+
* A collection of resources.
|
|
11
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
12
12
|
*/
|
|
13
13
|
Collection: "Collection",
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
|
|
15
|
+
* An interval of time named or defined by its start and end dates.
|
|
16
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
|
|
17
17
|
*/
|
|
18
18
|
PeriodOfTime: "PeriodOfTime"
|
|
19
19
|
};
|
|
@@ -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;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
|
|
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 DCMI type class identifiers.\n * @see http://purl.org/dc/dcmitype\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DublinCoreClasses = {\n\t/**\n\t * A collection of resources.\n\t * @see 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 * An interval of time named or defined by its start and end dates.\n\t * @see 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 * Union of all Dublin Core class identifier values.\n */\nexport type DublinCoreClasses = (typeof DublinCoreClasses)[keyof typeof DublinCoreClasses];\n"]}
|
|
@@ -6,22 +6,32 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const DublinCoreContexts = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
10
|
-
|
|
9
|
+
* The canonical RDF namespace URI for Dublin Core Terms.
|
|
10
|
+
*/
|
|
11
|
+
NamespaceTerms: "http://purl.org/dc/terms/",
|
|
12
|
+
/**
|
|
13
|
+
* The value to use in JSON-LD context for Dublin Core Terms.
|
|
14
|
+
* Note: ContextTerms matches NamespaceTerms (both include trailing slash) as per Dublin Core specification.
|
|
15
|
+
* The Dublin Core Terms JSON-LD context URL format includes a trailing slash.
|
|
11
16
|
*/
|
|
12
17
|
ContextTerms: "http://purl.org/dc/terms/",
|
|
13
18
|
/**
|
|
14
|
-
*
|
|
15
|
-
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7
|
|
19
|
+
* JSON-LD Context URL for Dublin Core Terms.
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
JsonLdContextTerms: "https://schema.twindev.org/dublin-core/terms.jsonld",
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* The canonical RDF namespace URI for Dublin Core DCMI Types.
|
|
20
24
|
*/
|
|
21
|
-
|
|
25
|
+
NamespaceDcmiType: "http://purl.org/dc/dcmitype/",
|
|
26
|
+
/**
|
|
27
|
+
* The value to use in JSON-LD context for Dublin Core DCMI Types.
|
|
28
|
+
* Note: ContextDcmiType matches NamespaceDcmiType (both include trailing slash) as per Dublin Core specification.
|
|
29
|
+
* The Dublin Core DCMI Types JSON-LD context URL format includes a trailing slash.
|
|
30
|
+
*/
|
|
31
|
+
ContextDcmiType: "http://purl.org/dc/dcmitype/",
|
|
22
32
|
/**
|
|
23
|
-
*
|
|
33
|
+
* JSON-LD Context URL for DCMI Types
|
|
24
34
|
*/
|
|
25
|
-
|
|
35
|
+
JsonLdContextDcmiType: "https://schema.twindev.org/dublin-core/dcmitype.jsonld"
|
|
26
36
|
};
|
|
27
37
|
//# sourceMappingURL=dublinCoreContexts.js.map
|
|
@@ -1 +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
|
|
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;;OAEG;IACH,cAAc,EAAE,2BAA2B;IAE3C;;;;OAIG;IACH,YAAY,EAAE,2BAA2B;IAEzC;;OAEG;IACH,kBAAkB,EAAE,qDAAqD;IAEzE;;OAEG;IACH,iBAAiB,EAAE,8BAA8B;IAEjD;;;;OAIG;IACH,eAAe,EAAE,8BAA8B;IAE/C;;OAEG;IACH,qBAAqB,EAAE,wDAAwD;CACtE,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 canonical RDF namespace URI for Dublin Core Terms.\n\t */\n\tNamespaceTerms: \"http://purl.org/dc/terms/\",\n\n\t/**\n\t * The value to use in JSON-LD context for Dublin Core Terms.\n\t * Note: ContextTerms matches NamespaceTerms (both include trailing slash) as per Dublin Core specification.\n\t * The Dublin Core Terms JSON-LD context URL format includes a trailing slash.\n\t */\n\tContextTerms: \"http://purl.org/dc/terms/\",\n\n\t/**\n\t * JSON-LD Context URL for Dublin Core Terms.\n\t */\n\tJsonLdContextTerms: \"https://schema.twindev.org/dublin-core/terms.jsonld\",\n\n\t/**\n\t * The canonical RDF namespace URI for Dublin Core DCMI Types.\n\t */\n\tNamespaceDcmiType: \"http://purl.org/dc/dcmitype/\",\n\n\t/**\n\t * The value to use in JSON-LD context for Dublin Core DCMI Types.\n\t * Note: ContextDcmiType matches NamespaceDcmiType (both include trailing slash) as per Dublin Core specification.\n\t * The Dublin Core DCMI Types JSON-LD context URL format includes a trailing slash.\n\t */\n\tContextDcmiType: \"http://purl.org/dc/dcmitype/\",\n\n\t/**\n\t * JSON-LD Context URL for DCMI Types\n\t */\n\tJsonLdContextDcmiType: \"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"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
4
|
* Common Dublin Core property types for ODRL Policy Metadata.
|
|
5
|
-
*
|
|
5
|
+
* @see http://purl.org/dc/terms/
|
|
6
6
|
*/
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
8
|
export const DublinCorePropertyType = {
|
|
@@ -53,8 +53,8 @@ export const DublinCorePropertyType = {
|
|
|
53
53
|
*/
|
|
54
54
|
IsReplacedBy: "isReplacedBy",
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|
|
56
|
+
* A related resource that is included either physically or logically in the described resource.
|
|
57
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|
|
58
58
|
*/
|
|
59
59
|
HasPart: "hasPart"
|
|
60
60
|
};
|
|
@@ -1 +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 *
|
|
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 * @see 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 * A related resource that is included either physically or logically in the described resource.\n\t * @see 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,11 +1,10 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
1
|
import type { DublinCoreClasses } from "./dublinCoreClasses.js";
|
|
3
2
|
/**
|
|
4
3
|
* Interface for Dublin Core Terms Period of Time.
|
|
5
4
|
* An interval of time that is named or defined by its start and end dates.
|
|
6
5
|
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
|
|
7
6
|
*/
|
|
8
|
-
export interface IDublinCorePeriodOfTime
|
|
7
|
+
export interface IDublinCorePeriodOfTime {
|
|
9
8
|
/**
|
|
10
9
|
* The type identifier for PeriodOfTime.
|
|
11
10
|
*/
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dublin Core
|
|
3
|
-
*
|
|
2
|
+
* Dublin Core DCMI type class identifiers.
|
|
3
|
+
* @see http://purl.org/dc/dcmitype
|
|
4
4
|
*/
|
|
5
5
|
export declare const DublinCoreClasses: {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
7
|
+
* A collection of resources.
|
|
8
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/dcmitype/Collection
|
|
9
9
|
*/
|
|
10
10
|
readonly Collection: "Collection";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
|
|
12
|
+
* An interval of time named or defined by its start and end dates.
|
|
13
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/PeriodOfTime
|
|
14
14
|
*/
|
|
15
15
|
readonly PeriodOfTime: "PeriodOfTime";
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
* Dublin Core
|
|
18
|
+
* Union of all Dublin Core class identifier values.
|
|
19
19
|
*/
|
|
20
20
|
export type DublinCoreClasses = (typeof DublinCoreClasses)[keyof typeof DublinCoreClasses];
|
|
@@ -3,23 +3,33 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const DublinCoreContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
7
|
-
|
|
6
|
+
* The canonical RDF namespace URI for Dublin Core Terms.
|
|
7
|
+
*/
|
|
8
|
+
readonly NamespaceTerms: "http://purl.org/dc/terms/";
|
|
9
|
+
/**
|
|
10
|
+
* The value to use in JSON-LD context for Dublin Core Terms.
|
|
11
|
+
* Note: ContextTerms matches NamespaceTerms (both include trailing slash) as per Dublin Core specification.
|
|
12
|
+
* The Dublin Core Terms JSON-LD context URL format includes a trailing slash.
|
|
8
13
|
*/
|
|
9
14
|
readonly ContextTerms: "http://purl.org/dc/terms/";
|
|
10
15
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-7
|
|
16
|
+
* JSON-LD Context URL for Dublin Core Terms.
|
|
13
17
|
*/
|
|
14
|
-
readonly
|
|
18
|
+
readonly JsonLdContextTerms: "https://schema.twindev.org/dublin-core/terms.jsonld";
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
20
|
+
* The canonical RDF namespace URI for Dublin Core DCMI Types.
|
|
17
21
|
*/
|
|
18
|
-
readonly
|
|
22
|
+
readonly NamespaceDcmiType: "http://purl.org/dc/dcmitype/";
|
|
23
|
+
/**
|
|
24
|
+
* The value to use in JSON-LD context for Dublin Core DCMI Types.
|
|
25
|
+
* Note: ContextDcmiType matches NamespaceDcmiType (both include trailing slash) as per Dublin Core specification.
|
|
26
|
+
* The Dublin Core DCMI Types JSON-LD context URL format includes a trailing slash.
|
|
27
|
+
*/
|
|
28
|
+
readonly ContextDcmiType: "http://purl.org/dc/dcmitype/";
|
|
19
29
|
/**
|
|
20
|
-
*
|
|
30
|
+
* JSON-LD Context URL for DCMI Types
|
|
21
31
|
*/
|
|
22
|
-
readonly
|
|
32
|
+
readonly JsonLdContextDcmiType: "https://schema.twindev.org/dublin-core/dcmitype.jsonld";
|
|
23
33
|
};
|
|
24
34
|
/**
|
|
25
35
|
* The contexts for Dublin Core.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Common Dublin Core property types for ODRL Policy Metadata.
|
|
3
|
-
*
|
|
3
|
+
* @see http://purl.org/dc/terms/
|
|
4
4
|
*/
|
|
5
5
|
export declare const DublinCorePropertyType: {
|
|
6
6
|
/**
|
|
@@ -50,8 +50,8 @@ export declare const DublinCorePropertyType: {
|
|
|
50
50
|
*/
|
|
51
51
|
readonly IsReplacedBy: "isReplacedBy";
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
54
|
-
* https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|
|
53
|
+
* A related resource that is included either physically or logically in the described resource.
|
|
54
|
+
* @see https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/terms/hasPart
|
|
55
55
|
*/
|
|
56
56
|
readonly HasPart: "hasPart";
|
|
57
57
|
};
|