@twin.org/standards-w3c-dcat 0.0.3-next.6 → 0.0.3-next.8
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/dataTypes/dcatDataTypes.js +27 -27
- package/dist/es/dataTypes/dcatDataTypes.js.map +1 -1
- package/dist/es/index.js +10 -9
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IDcatCatalog.js +2 -0
- package/dist/es/models/IDcatCatalog.js.map +1 -0
- package/dist/es/models/IDcatCatalogRecord.js +2 -0
- package/dist/es/models/IDcatCatalogRecord.js.map +1 -0
- package/dist/es/models/IDcatDataService.js +2 -0
- package/dist/es/models/IDcatDataService.js.map +1 -0
- package/dist/es/models/IDcatDataset.js +2 -0
- package/dist/es/models/IDcatDataset.js.map +1 -0
- package/dist/es/models/IDcatDatasetSeries.js +2 -0
- package/dist/es/models/IDcatDatasetSeries.js.map +1 -0
- package/dist/es/models/IDcatDistribution.js +2 -0
- package/dist/es/models/IDcatDistribution.js.map +1 -0
- package/dist/es/models/IDcatRelationship.js +2 -0
- package/dist/es/models/IDcatRelationship.js.map +1 -0
- package/dist/es/models/IDcatResource.js +2 -0
- package/dist/es/models/IDcatResource.js.map +1 -0
- package/dist/es/models/IDcatRole.js +2 -0
- package/dist/es/models/IDcatRole.js.map +1 -0
- package/dist/es/models/dcatClasses.js +9 -9
- package/dist/es/models/dcatClasses.js.map +1 -1
- package/dist/es/models/dcatContextType.js.map +1 -1
- package/dist/es/models/dcatContexts.js +4 -0
- package/dist/es/models/dcatContexts.js.map +1 -1
- package/dist/es/models/types/dcatContextFreeTypes.js +4 -0
- package/dist/es/models/types/dcatContextFreeTypes.js.map +1 -0
- package/dist/es/models/types/dcatPropertyTypes.js.map +1 -1
- package/dist/es/schemas/{Catalog.json → DcatCatalog.json} +37 -28
- package/dist/es/schemas/{CatalogRecord.json → DcatCatalogRecord.json} +16 -7
- package/dist/es/schemas/{DataService.json → DcatDataService.json} +20 -11
- package/dist/es/schemas/{Dataset.json → DcatDataset.json} +27 -18
- package/dist/es/schemas/{DatasetSeries.json → DcatDatasetSeries.json} +25 -16
- package/dist/es/schemas/{Distribution.json → DcatDistribution.json} +18 -9
- package/dist/es/schemas/{Relationship.json → DcatRelationship.json} +11 -3
- package/dist/es/schemas/{Resource.json → DcatResource.json} +24 -15
- package/dist/es/schemas/{Role.json → DcatRole.json} +12 -3
- package/dist/types/index.d.ts +10 -9
- package/dist/types/models/{ICatalog.d.ts → IDcatCatalog.d.ts} +10 -11
- package/dist/types/models/{ICatalogRecord.d.ts → IDcatCatalogRecord.d.ts} +9 -9
- package/dist/types/models/{IDataService.d.ts → IDcatDataService.d.ts} +2 -2
- package/dist/types/models/{IDataset.d.ts → IDcatDataset.d.ts} +9 -9
- package/dist/types/models/{IDatasetSeries.d.ts → IDcatDatasetSeries.d.ts} +2 -2
- package/dist/types/models/{IDistribution.d.ts → IDcatDistribution.d.ts} +10 -10
- package/dist/types/models/{IRelationship.d.ts → IDcatRelationship.d.ts} +3 -3
- package/dist/types/models/{IResource.d.ts → IDcatResource.d.ts} +14 -14
- package/dist/types/models/{IRole.d.ts → IDcatRole.d.ts} +4 -4
- package/dist/types/models/dcatClasses.d.ts +9 -9
- package/dist/types/models/dcatContextType.d.ts +4 -0
- package/dist/types/models/dcatContexts.d.ts +4 -0
- package/dist/types/models/types/dcatContextFreeTypes.d.ts +40 -0
- package/dist/types/models/types/dcatPropertyTypes.d.ts +6 -6
- package/docs/changelog.md +39 -0
- package/docs/reference/index.md +20 -15
- package/docs/reference/interfaces/{ICatalog.md → IDcatCatalog.md} +49 -49
- package/docs/reference/interfaces/{ICatalogRecord.md → IDcatCatalogRecord.md} +7 -7
- package/docs/reference/interfaces/{IDataService.md → IDcatDataService.md} +33 -33
- package/docs/reference/interfaces/{IDataset.md → IDcatDataset.md} +37 -37
- package/docs/reference/interfaces/{IDatasetSeries.md → IDcatDatasetSeries.md} +43 -43
- package/docs/reference/interfaces/{IDistribution.md → IDcatDistribution.md} +6 -6
- package/docs/reference/interfaces/{IRelationship.md → IDcatRelationship.md} +3 -3
- package/docs/reference/interfaces/{IResource.md → IDcatResource.md} +13 -13
- package/docs/reference/interfaces/{IRole.md → IDcatRole.md} +5 -5
- package/docs/reference/type-aliases/CatalogOptionalContext.md +11 -0
- package/docs/reference/type-aliases/CatalogRecordOptionalContext.md +11 -0
- package/docs/reference/type-aliases/DataServiceOptionalContext.md +11 -0
- package/docs/reference/type-aliases/DatasetOptionalContext.md +11 -0
- package/docs/reference/type-aliases/DcatContextType.md +8 -0
- package/docs/reference/type-aliases/{DateTimeType.md → DcatDateTimeType.md} +2 -2
- package/docs/reference/type-aliases/DcatDecimalType.md +5 -0
- package/docs/reference/type-aliases/DcatDurationType.md +5 -0
- package/docs/reference/type-aliases/DcatIriType.md +5 -0
- package/docs/reference/type-aliases/{LiteralType.md → DcatLiteralType.md} +2 -2
- package/docs/reference/type-aliases/DcatNonNegativeIntegerType.md +5 -0
- package/docs/reference/type-aliases/DistributionOptionalContext.md +11 -0
- package/docs/reference/variables/DcatClasses.md +9 -9
- package/docs/reference/variables/DcatContexts.md +6 -0
- package/package.json +5 -5
- package/dist/es/models/ICatalog.js +0 -2
- package/dist/es/models/ICatalog.js.map +0 -1
- package/dist/es/models/ICatalogRecord.js +0 -2
- package/dist/es/models/ICatalogRecord.js.map +0 -1
- package/dist/es/models/IDataService.js +0 -2
- package/dist/es/models/IDataService.js.map +0 -1
- package/dist/es/models/IDataset.js +0 -2
- package/dist/es/models/IDataset.js.map +0 -1
- package/dist/es/models/IDatasetSeries.js +0 -2
- package/dist/es/models/IDatasetSeries.js.map +0 -1
- package/dist/es/models/IDistribution.js +0 -2
- package/dist/es/models/IDistribution.js.map +0 -1
- package/dist/es/models/IRelationship.js +0 -2
- package/dist/es/models/IRelationship.js.map +0 -1
- package/dist/es/models/IResource.js +0 -2
- package/dist/es/models/IResource.js.map +0 -1
- package/dist/es/models/IRole.js +0 -2
- package/dist/es/models/IRole.js.map +0 -1
- package/docs/reference/type-aliases/DecimalType.md +0 -5
- package/docs/reference/type-aliases/DurationType.md +0 -5
- package/docs/reference/type-aliases/IriType.md +0 -5
- package/docs/reference/type-aliases/NonNegativeIntegerType.md +0 -5
|
@@ -3,18 +3,18 @@ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
|
3
3
|
import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
|
|
4
4
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
5
5
|
import type { DcatContextType } from "./dcatContextType.js";
|
|
6
|
-
import type {
|
|
6
|
+
import type { DcatDateTimeType, DcatDecimalType, DcatDurationType, DcatLiteralType, DcatNonNegativeIntegerType } from "./types/dcatPropertyTypes.js";
|
|
7
7
|
/**
|
|
8
8
|
* Interface for DCAT Distribution.
|
|
9
9
|
* A specific representation of a dataset. A dataset might be available in multiple
|
|
10
10
|
* serializations that may differ in various ways.
|
|
11
11
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface IDcatDistribution extends IJsonLdNodeObject {
|
|
14
14
|
/**
|
|
15
15
|
* The JSON-LD context for the resource.
|
|
16
16
|
*/
|
|
17
|
-
"@context"
|
|
17
|
+
"@context": DcatContextType;
|
|
18
18
|
/**
|
|
19
19
|
* The type identifier, typically "Distribution".
|
|
20
20
|
*/
|
|
@@ -23,22 +23,22 @@ export interface IDistribution extends IJsonLdNodeObject {
|
|
|
23
23
|
* A name given to the distribution.
|
|
24
24
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_title
|
|
25
25
|
*/
|
|
26
|
-
"dcterms:title"?:
|
|
26
|
+
"dcterms:title"?: DcatLiteralType;
|
|
27
27
|
/**
|
|
28
28
|
* A free-text account of the distribution.
|
|
29
29
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_description
|
|
30
30
|
*/
|
|
31
|
-
"dcterms:description"?:
|
|
31
|
+
"dcterms:description"?: DcatLiteralType;
|
|
32
32
|
/**
|
|
33
33
|
* Date of formal issuance of the distribution.
|
|
34
34
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_release_date
|
|
35
35
|
*/
|
|
36
|
-
"dcterms:issued"?:
|
|
36
|
+
"dcterms:issued"?: DcatDateTimeType;
|
|
37
37
|
/**
|
|
38
38
|
* Most recent date on which the distribution was changed, updated or modified.
|
|
39
39
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_update_date
|
|
40
40
|
*/
|
|
41
|
-
"dcterms:modified"?:
|
|
41
|
+
"dcterms:modified"?: DcatDateTimeType;
|
|
42
42
|
/**
|
|
43
43
|
* A legal document under which the distribution is made available.
|
|
44
44
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_license
|
|
@@ -73,17 +73,17 @@ export interface IDistribution extends IJsonLdNodeObject {
|
|
|
73
73
|
* The size of the distribution in bytes.
|
|
74
74
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_byte_size
|
|
75
75
|
*/
|
|
76
|
-
"dcat:byteSize"?:
|
|
76
|
+
"dcat:byteSize"?: DcatNonNegativeIntegerType;
|
|
77
77
|
/**
|
|
78
78
|
* The minimum spatial separation resolvable in a distribution, measured in meters.
|
|
79
79
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_spatial_resolution
|
|
80
80
|
*/
|
|
81
|
-
"dcat:spatialResolutionInMeters"?:
|
|
81
|
+
"dcat:spatialResolutionInMeters"?: DcatDecimalType;
|
|
82
82
|
/**
|
|
83
83
|
* Minimum time period resolvable in the distribution.
|
|
84
84
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_temporal_resolution
|
|
85
85
|
*/
|
|
86
|
-
"dcat:temporalResolution"?:
|
|
86
|
+
"dcat:temporalResolution"?: DcatDurationType;
|
|
87
87
|
/**
|
|
88
88
|
* An established standard to which the distribution conforms.
|
|
89
89
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_conforms_to
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
3
3
|
import type { DcatContextType } from "./dcatContextType.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { IDcatRole } from "./IDcatRole.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface for DCAT Relationship.
|
|
7
7
|
* An association class for attaching additional information to a relationship
|
|
8
8
|
* between DCAT Resources.
|
|
9
9
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Relationship
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface IDcatRelationship extends IJsonLdNodeObject {
|
|
12
12
|
/**
|
|
13
13
|
* The JSON-LD context for the resource.
|
|
14
14
|
*/
|
|
@@ -26,5 +26,5 @@ export interface IRelationship extends IJsonLdNodeObject {
|
|
|
26
26
|
* The function of an entity or agent with respect to another resource.
|
|
27
27
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:relationship_hadRole
|
|
28
28
|
*/
|
|
29
|
-
"dcat:hadRole"?:
|
|
29
|
+
"dcat:hadRole"?: IDcatRole;
|
|
30
30
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
2
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
3
|
-
import type {
|
|
3
|
+
import type { IFoafAgent } from "@twin.org/standards-foaf";
|
|
4
4
|
import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
|
|
5
5
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
6
6
|
import type { DcatContextType } from "./dcatContextType.js";
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
7
|
+
import type { IDcatRelationship } from "./IDcatRelationship.js";
|
|
8
|
+
import type { DcatDateTimeType, DcatLiteralType } from "./types/dcatPropertyTypes.js";
|
|
9
9
|
/**
|
|
10
10
|
* Base interface for DCAT catalogued resources.
|
|
11
11
|
* This is the parent class of dcat:Dataset, dcat:DataService, and dcat:Catalog.
|
|
12
12
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Resource
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
14
|
+
export interface IDcatResource extends IJsonLdNodeObject {
|
|
15
15
|
/**
|
|
16
16
|
* The JSON-LD context for the resource.
|
|
17
17
|
*/
|
|
18
|
-
"@context"
|
|
18
|
+
"@context": DcatContextType;
|
|
19
19
|
/**
|
|
20
20
|
* The type of the resource.
|
|
21
21
|
* Typically "Catalog", "Dataset", "DataService", "DatasetSeries", or the base "Resource".
|
|
@@ -25,27 +25,27 @@ export interface IResource extends IJsonLdNodeObject {
|
|
|
25
25
|
* A name given to the resource.
|
|
26
26
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_title
|
|
27
27
|
*/
|
|
28
|
-
"dcterms:title"?:
|
|
28
|
+
"dcterms:title"?: DcatLiteralType;
|
|
29
29
|
/**
|
|
30
30
|
* A free-text account of the resource.
|
|
31
31
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_description
|
|
32
32
|
*/
|
|
33
|
-
"dcterms:description"?:
|
|
33
|
+
"dcterms:description"?: DcatLiteralType;
|
|
34
34
|
/**
|
|
35
35
|
* A unique identifier of the resource.
|
|
36
36
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_identifier
|
|
37
37
|
*/
|
|
38
|
-
"dcterms:identifier"?:
|
|
38
|
+
"dcterms:identifier"?: DcatLiteralType;
|
|
39
39
|
/**
|
|
40
40
|
* Date of formal issuance (publication) of the resource.
|
|
41
41
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_release_date
|
|
42
42
|
*/
|
|
43
|
-
"dcterms:issued"?:
|
|
43
|
+
"dcterms:issued"?: DcatDateTimeType;
|
|
44
44
|
/**
|
|
45
45
|
* Most recent date on which the resource was changed, updated or modified.
|
|
46
46
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_update_date
|
|
47
47
|
*/
|
|
48
|
-
"dcterms:modified"?:
|
|
48
|
+
"dcterms:modified"?: DcatDateTimeType;
|
|
49
49
|
/**
|
|
50
50
|
* A language of the resource.
|
|
51
51
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_language
|
|
@@ -55,12 +55,12 @@ export interface IResource extends IJsonLdNodeObject {
|
|
|
55
55
|
* An entity responsible for making the resource available.
|
|
56
56
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_publisher
|
|
57
57
|
*/
|
|
58
|
-
"dcterms:publisher"?:
|
|
58
|
+
"dcterms:publisher"?: IFoafAgent | string;
|
|
59
59
|
/**
|
|
60
60
|
* An entity responsible for producing the resource.
|
|
61
61
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_creator
|
|
62
62
|
*/
|
|
63
|
-
"dcterms:creator"?:
|
|
63
|
+
"dcterms:creator"?: IFoafAgent;
|
|
64
64
|
/**
|
|
65
65
|
* Information about who can access the resource or an indication of its security status.
|
|
66
66
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_access_rights
|
|
@@ -95,7 +95,7 @@ export interface IResource extends IJsonLdNodeObject {
|
|
|
95
95
|
* A keyword or tag describing the resource.
|
|
96
96
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_keyword
|
|
97
97
|
*/
|
|
98
|
-
"dcat:keyword"?:
|
|
98
|
+
"dcat:keyword"?: DcatLiteralType;
|
|
99
99
|
/**
|
|
100
100
|
* A main category of the resource. A resource can have multiple themes.
|
|
101
101
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_theme
|
|
@@ -110,7 +110,7 @@ export interface IResource extends IJsonLdNodeObject {
|
|
|
110
110
|
* Link to a description of a relationship with another resource.
|
|
111
111
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_qualified_relation
|
|
112
112
|
*/
|
|
113
|
-
"dcat:qualifiedRelation"?:
|
|
113
|
+
"dcat:qualifiedRelation"?: IDcatRelationship | string;
|
|
114
114
|
/**
|
|
115
115
|
* An ODRL conformant policy expressing the rights associated with the resource.
|
|
116
116
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:resource_has_policy
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { DcatClasses } from "./dcatClasses.js";
|
|
3
3
|
import type { DcatContextType } from "./dcatContextType.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { DcatLiteralType } from "./types/dcatPropertyTypes.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface for DCAT Role.
|
|
7
7
|
* A role is the function of a resource or agent with respect to another resource,
|
|
8
8
|
* in the context of resource attribution or resource relationships.
|
|
9
9
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Role
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface IDcatRole extends IJsonLdNodeObject {
|
|
12
12
|
/**
|
|
13
13
|
* The JSON-LD context for the resource.
|
|
14
14
|
*/
|
|
15
|
-
"@context"
|
|
15
|
+
"@context": DcatContextType;
|
|
16
16
|
/**
|
|
17
17
|
* The type identifier, typically "Role".
|
|
18
18
|
*/
|
|
@@ -21,5 +21,5 @@ export interface IRole extends IJsonLdNodeObject {
|
|
|
21
21
|
* A name given to the distribution.
|
|
22
22
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Property:distribution_title
|
|
23
23
|
*/
|
|
24
|
-
"dcterms:title"?:
|
|
24
|
+
"dcterms:title"?: DcatLiteralType;
|
|
25
25
|
}
|
|
@@ -7,48 +7,48 @@ export declare const DcatClasses: {
|
|
|
7
7
|
* A curated collection of metadata about resources (e.g., datasets and data services in the context of a data catalog).
|
|
8
8
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog
|
|
9
9
|
*/
|
|
10
|
-
readonly Catalog: "Catalog";
|
|
10
|
+
readonly Catalog: "dcat:Catalog";
|
|
11
11
|
/**
|
|
12
12
|
* Resource published or curated by a single agent.
|
|
13
13
|
* This is an abstract class and should not be used directly.
|
|
14
14
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Resource
|
|
15
15
|
*/
|
|
16
|
-
readonly Resource: "Resource";
|
|
16
|
+
readonly Resource: "dcat:Resource";
|
|
17
17
|
/**
|
|
18
18
|
* A collection of data, published or curated by a single agent, and available for access or download in one or more representations.
|
|
19
19
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset
|
|
20
20
|
*/
|
|
21
|
-
readonly Dataset: "Dataset";
|
|
21
|
+
readonly Dataset: "dcat:Dataset";
|
|
22
22
|
/**
|
|
23
23
|
* A specific representation of a dataset. A dataset might be available in multiple serializations that may differ in various ways.
|
|
24
24
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution
|
|
25
25
|
*/
|
|
26
|
-
readonly Distribution: "Distribution";
|
|
26
|
+
readonly Distribution: "dcat:Distribution";
|
|
27
27
|
/**
|
|
28
28
|
* A collection of operations that provides access to one or more datasets or data processing functions.
|
|
29
29
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Data_Service
|
|
30
30
|
*/
|
|
31
|
-
readonly DataService: "DataService";
|
|
31
|
+
readonly DataService: "dcat:DataService";
|
|
32
32
|
/**
|
|
33
33
|
* A collection of datasets that are published separately, but share some common characteristics.
|
|
34
34
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Dataset_Series
|
|
35
35
|
*/
|
|
36
|
-
readonly DatasetSeries: "DatasetSeries";
|
|
36
|
+
readonly DatasetSeries: "dcat:DatasetSeries";
|
|
37
37
|
/**
|
|
38
38
|
* A record in a data catalog, describing the registration of a single dataset or data service.
|
|
39
39
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog_Record
|
|
40
40
|
*/
|
|
41
|
-
readonly CatalogRecord: "CatalogRecord";
|
|
41
|
+
readonly CatalogRecord: "dcat:CatalogRecord";
|
|
42
42
|
/**
|
|
43
43
|
* An association class for attaching additional information to a relationship between DCAT Resources.
|
|
44
44
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Relationship
|
|
45
45
|
*/
|
|
46
|
-
readonly Relationship: "Relationship";
|
|
46
|
+
readonly Relationship: "dcat:Relationship";
|
|
47
47
|
/**
|
|
48
48
|
* A role is the function of a resource or agent with respect to another resource, in the context of resource attribution or resource relationships..
|
|
49
49
|
* @see https://www.w3.org/TR/vocab-dcat-3/#Class:Role
|
|
50
50
|
*/
|
|
51
|
-
readonly Role: "Role";
|
|
51
|
+
readonly Role: "dcat:Role";
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* The classes for DCAT.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinition } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { DublinCoreContexts } from "@twin.org/standards-dublin-core";
|
|
3
|
+
import type { FoafContexts } from "@twin.org/standards-foaf";
|
|
4
|
+
import type { OdrlContexts } from "@twin.org/standards-w3c-odrl";
|
|
3
5
|
import type { DcatContexts } from "./dcatContexts.js";
|
|
4
6
|
/**
|
|
5
7
|
* The DCAT JSON-LD context type.
|
|
@@ -8,4 +10,6 @@ import type { DcatContexts } from "./dcatContexts.js";
|
|
|
8
10
|
export type DcatContextType = {
|
|
9
11
|
dcat: typeof DcatContexts.ContextRoot;
|
|
10
12
|
dcterms: typeof DublinCoreContexts.ContextTerms;
|
|
13
|
+
odrl?: typeof OdrlContexts.OdrlNamespace;
|
|
14
|
+
foaf?: typeof FoafContexts.ContextRoot;
|
|
11
15
|
} & IJsonLdContextDefinition;
|
|
@@ -7,6 +7,10 @@ export declare const DcatContexts: {
|
|
|
7
7
|
* The context root for DCAT vocabulary.
|
|
8
8
|
*/
|
|
9
9
|
readonly ContextRoot: "http://www.w3.org/ns/dcat#";
|
|
10
|
+
/**
|
|
11
|
+
* The namespace for DCAT terms
|
|
12
|
+
*/
|
|
13
|
+
readonly DcatNamespace: "http://www.w3.org/ns/dcat#";
|
|
10
14
|
/**
|
|
11
15
|
* The redirect URL for the DCAT context, used for JSON-LD processing.
|
|
12
16
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { DcatContextType } from "../dcatContextType.js";
|
|
2
|
+
import type { IDcatCatalog } from "../IDcatCatalog.js";
|
|
3
|
+
import type { IDcatCatalogRecord } from "../IDcatCatalogRecord.js";
|
|
4
|
+
import type { IDcatDataService } from "../IDcatDataService.js";
|
|
5
|
+
import type { IDcatDataset } from "../IDcatDataset.js";
|
|
6
|
+
import type { IDcatDistribution } from "../IDcatDistribution.js";
|
|
7
|
+
/**
|
|
8
|
+
* Type aliases for DCAT entities when LD Context is omitted
|
|
9
|
+
* These provide type safety while maintaining flexibility for JSON-LD data.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Dataset omitting LD Context
|
|
13
|
+
*/
|
|
14
|
+
export type DatasetOptionalContext = Omit<IDcatDataset, "@context"> & {
|
|
15
|
+
"@context"?: DcatContextType;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* DataService omitting LD Context
|
|
19
|
+
*/
|
|
20
|
+
export type DataServiceOptionalContext = Omit<IDcatDataService, "@context"> & {
|
|
21
|
+
"@context"?: DcatContextType;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Catalog omitting LD Context
|
|
25
|
+
*/
|
|
26
|
+
export type CatalogOptionalContext = Omit<IDcatCatalog, "@context"> & {
|
|
27
|
+
"@context"?: DcatContextType;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Record omitting LD Context
|
|
31
|
+
*/
|
|
32
|
+
export type CatalogRecordOptionalContext = Omit<IDcatCatalogRecord, "@context"> & {
|
|
33
|
+
"@context"?: DcatContextType;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Distribution omitting LD Context
|
|
37
|
+
*/
|
|
38
|
+
export type DistributionOptionalContext = Omit<IDcatDistribution, "@context"> & {
|
|
39
|
+
"@context"?: DcatContextType;
|
|
40
|
+
};
|
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Literal values can be strings or arrays of strings (for multi-valued properties).
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
8
|
+
export type DcatLiteralType = string | string[];
|
|
9
9
|
/**
|
|
10
10
|
* IRI references - can be a single IRI or array of IRIs.
|
|
11
11
|
*/
|
|
12
|
-
export type
|
|
12
|
+
export type DcatIriType = string | string[];
|
|
13
13
|
/**
|
|
14
14
|
* Date/time values in ISO 8601 format.
|
|
15
15
|
* Can be xsd:date, xsd:dateTime, or xsd:gYear.
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
17
|
+
export type DcatDateTimeType = string;
|
|
18
18
|
/**
|
|
19
19
|
* Duration values in ISO 8601 duration format (xsd:duration).
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type DcatDurationType = string;
|
|
22
22
|
/**
|
|
23
23
|
* Decimal number values (xsd:decimal).
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type DcatDecimalType = number;
|
|
26
26
|
/**
|
|
27
27
|
* Non-negative integer values (xsd:nonNegativeInteger).
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type DcatNonNegativeIntegerType = number;
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-dcat - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.8](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.7...standards-w3c-dcat-v0.0.3-next.8) (2026-01-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add ds protocol catalog dataset ([#86](https://github.com/twinfoundation/standards/issues/86)) ([45600e6](https://github.com/twinfoundation/standards/commit/45600e6cba212d85e250cb12cbdcb712d8db0e52))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* dcat LD Context fix and aligned with DCAT prefixed models ([#85](https://github.com/twinfoundation/standards/issues/85)) ([4546167](https://github.com/twinfoundation/standards/commit/4546167b1f61dba85206a64a8b2535f468d74845))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* The following workspace dependencies were updated
|
|
19
|
+
* dependencies
|
|
20
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
21
|
+
* @twin.org/standards-foaf bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
22
|
+
* @twin.org/standards-w3c-odrl bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
23
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
24
|
+
|
|
25
|
+
## [0.0.3-next.7](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.6...standards-w3c-dcat-v0.0.3-next.7) (2026-01-06)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Miscellaneous Chores
|
|
29
|
+
|
|
30
|
+
* **standards-w3c-dcat:** Synchronize repo versions
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* The following workspace dependencies were updated
|
|
36
|
+
* dependencies
|
|
37
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
38
|
+
* @twin.org/standards-foaf bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
39
|
+
* @twin.org/standards-w3c-odrl bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
40
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
41
|
+
|
|
3
42
|
## [0.0.3-next.6](https://github.com/twinfoundation/standards/compare/standards-w3c-dcat-v0.0.3-next.5...standards-w3c-dcat-v0.0.3-next.6) (2025-12-03)
|
|
4
43
|
|
|
5
44
|
|
package/docs/reference/index.md
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
## Interfaces
|
|
8
8
|
|
|
9
|
-
- [
|
|
10
|
-
- [
|
|
11
|
-
- [
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- [
|
|
9
|
+
- [IDcatCatalog](interfaces/IDcatCatalog.md)
|
|
10
|
+
- [IDcatCatalogRecord](interfaces/IDcatCatalogRecord.md)
|
|
11
|
+
- [IDcatDataService](interfaces/IDcatDataService.md)
|
|
12
|
+
- [IDcatDataset](interfaces/IDcatDataset.md)
|
|
13
|
+
- [IDcatDatasetSeries](interfaces/IDcatDatasetSeries.md)
|
|
14
|
+
- [IDcatDistribution](interfaces/IDcatDistribution.md)
|
|
15
|
+
- [IDcatRelationship](interfaces/IDcatRelationship.md)
|
|
16
|
+
- [IDcatResource](interfaces/IDcatResource.md)
|
|
17
|
+
- [IDcatRole](interfaces/IDcatRole.md)
|
|
18
18
|
|
|
19
19
|
## Type Aliases
|
|
20
20
|
|
|
@@ -22,12 +22,17 @@
|
|
|
22
22
|
- [DcatContextType](type-aliases/DcatContextType.md)
|
|
23
23
|
- [DcatContexts](type-aliases/DcatContexts.md)
|
|
24
24
|
- [DcatRelationshipType](type-aliases/DcatRelationshipType.md)
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
28
|
-
- [
|
|
29
|
-
- [
|
|
30
|
-
- [
|
|
25
|
+
- [DatasetOptionalContext](type-aliases/DatasetOptionalContext.md)
|
|
26
|
+
- [DataServiceOptionalContext](type-aliases/DataServiceOptionalContext.md)
|
|
27
|
+
- [CatalogOptionalContext](type-aliases/CatalogOptionalContext.md)
|
|
28
|
+
- [CatalogRecordOptionalContext](type-aliases/CatalogRecordOptionalContext.md)
|
|
29
|
+
- [DistributionOptionalContext](type-aliases/DistributionOptionalContext.md)
|
|
30
|
+
- [DcatLiteralType](type-aliases/DcatLiteralType.md)
|
|
31
|
+
- [DcatIriType](type-aliases/DcatIriType.md)
|
|
32
|
+
- [DcatDateTimeType](type-aliases/DcatDateTimeType.md)
|
|
33
|
+
- [DcatDurationType](type-aliases/DcatDurationType.md)
|
|
34
|
+
- [DcatDecimalType](type-aliases/DcatDecimalType.md)
|
|
35
|
+
- [DcatNonNegativeIntegerType](type-aliases/DcatNonNegativeIntegerType.md)
|
|
31
36
|
|
|
32
37
|
## Variables
|
|
33
38
|
|