@twin.org/standards-w3c-dcat 0.0.3-next.3 → 0.0.3-next.31

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.
Files changed (102) hide show
  1. package/dist/es/dataTypes/dcatDataTypes.js +54 -57
  2. package/dist/es/dataTypes/dcatDataTypes.js.map +1 -1
  3. package/dist/es/index.js +10 -9
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/IDcatCatalog.js +2 -0
  6. package/dist/es/models/IDcatCatalog.js.map +1 -0
  7. package/dist/es/models/IDcatCatalogRecord.js +2 -0
  8. package/dist/es/models/IDcatCatalogRecord.js.map +1 -0
  9. package/dist/es/models/IDcatDataService.js +2 -0
  10. package/dist/es/models/IDcatDataService.js.map +1 -0
  11. package/dist/es/models/IDcatDataset.js +2 -0
  12. package/dist/es/models/IDcatDataset.js.map +1 -0
  13. package/dist/es/models/IDcatDatasetSeries.js +2 -0
  14. package/dist/es/models/IDcatDatasetSeries.js.map +1 -0
  15. package/dist/es/models/IDcatDistribution.js +2 -0
  16. package/dist/es/models/IDcatDistribution.js.map +1 -0
  17. package/dist/es/models/IDcatRelationship.js +2 -0
  18. package/dist/es/models/IDcatRelationship.js.map +1 -0
  19. package/dist/es/models/IDcatResource.js +2 -0
  20. package/dist/es/models/IDcatResource.js.map +1 -0
  21. package/dist/es/models/IDcatRole.js +2 -0
  22. package/dist/es/models/IDcatRole.js.map +1 -0
  23. package/dist/es/models/dcatClasses.js +9 -9
  24. package/dist/es/models/dcatClasses.js.map +1 -1
  25. package/dist/es/models/dcatContextType.js.map +1 -1
  26. package/dist/es/models/dcatContexts.js +16 -16
  27. package/dist/es/models/dcatContexts.js.map +1 -1
  28. package/dist/es/models/types/dcatContextFreeTypes.js +4 -0
  29. package/dist/es/models/types/dcatContextFreeTypes.js.map +1 -0
  30. package/dist/es/models/types/dcatPropertyTypes.js.map +1 -1
  31. package/dist/es/schemas/{Catalog.json → DcatCatalog.json} +37 -28
  32. package/dist/es/schemas/{CatalogRecord.json → DcatCatalogRecord.json} +16 -7
  33. package/dist/es/schemas/{DataService.json → DcatDataService.json} +20 -11
  34. package/dist/es/schemas/{Dataset.json → DcatDataset.json} +27 -18
  35. package/dist/es/schemas/{DatasetSeries.json → DcatDatasetSeries.json} +25 -16
  36. package/dist/es/schemas/{Distribution.json → DcatDistribution.json} +18 -9
  37. package/dist/es/schemas/{Relationship.json → DcatRelationship.json} +11 -3
  38. package/dist/es/schemas/{Resource.json → DcatResource.json} +24 -15
  39. package/dist/es/schemas/{Role.json → DcatRole.json} +12 -3
  40. package/dist/types/index.d.ts +10 -9
  41. package/dist/types/models/{ICatalog.d.ts → IDcatCatalog.d.ts} +10 -11
  42. package/dist/types/models/{ICatalogRecord.d.ts → IDcatCatalogRecord.d.ts} +9 -9
  43. package/dist/types/models/{IDataService.d.ts → IDcatDataService.d.ts} +2 -2
  44. package/dist/types/models/{IDataset.d.ts → IDcatDataset.d.ts} +9 -9
  45. package/dist/types/models/{IDatasetSeries.d.ts → IDcatDatasetSeries.d.ts} +2 -2
  46. package/dist/types/models/{IDistribution.d.ts → IDcatDistribution.d.ts} +10 -10
  47. package/dist/types/models/{IRelationship.d.ts → IDcatRelationship.d.ts} +3 -3
  48. package/dist/types/models/{IResource.d.ts → IDcatResource.d.ts} +14 -14
  49. package/dist/types/models/{IRole.d.ts → IDcatRole.d.ts} +4 -4
  50. package/dist/types/models/dcatClasses.d.ts +9 -9
  51. package/dist/types/models/dcatContextType.d.ts +6 -2
  52. package/dist/types/models/dcatContexts.d.ts +16 -16
  53. package/dist/types/models/types/dcatContextFreeTypes.d.ts +40 -0
  54. package/dist/types/models/types/dcatPropertyTypes.d.ts +6 -6
  55. package/docs/changelog.md +481 -0
  56. package/docs/reference/index.md +20 -15
  57. package/docs/reference/interfaces/{ICatalog.md → IDcatCatalog.md} +49 -49
  58. package/docs/reference/interfaces/{ICatalogRecord.md → IDcatCatalogRecord.md} +7 -7
  59. package/docs/reference/interfaces/{IDataService.md → IDcatDataService.md} +33 -33
  60. package/docs/reference/interfaces/{IDataset.md → IDcatDataset.md} +37 -37
  61. package/docs/reference/interfaces/{IDatasetSeries.md → IDcatDatasetSeries.md} +43 -43
  62. package/docs/reference/interfaces/{IDistribution.md → IDcatDistribution.md} +6 -6
  63. package/docs/reference/interfaces/{IRelationship.md → IDcatRelationship.md} +3 -3
  64. package/docs/reference/interfaces/{IResource.md → IDcatResource.md} +13 -13
  65. package/docs/reference/interfaces/{IRole.md → IDcatRole.md} +5 -5
  66. package/docs/reference/type-aliases/CatalogOptionalContext.md +11 -0
  67. package/docs/reference/type-aliases/CatalogRecordOptionalContext.md +11 -0
  68. package/docs/reference/type-aliases/DataServiceOptionalContext.md +11 -0
  69. package/docs/reference/type-aliases/DatasetOptionalContext.md +11 -0
  70. package/docs/reference/type-aliases/DcatContextType.md +10 -2
  71. package/docs/reference/type-aliases/{DateTimeType.md → DcatDateTimeType.md} +2 -2
  72. package/docs/reference/type-aliases/DcatDecimalType.md +5 -0
  73. package/docs/reference/type-aliases/DcatDurationType.md +5 -0
  74. package/docs/reference/type-aliases/DcatIriType.md +5 -0
  75. package/docs/reference/type-aliases/{LiteralType.md → DcatLiteralType.md} +2 -2
  76. package/docs/reference/type-aliases/DcatNonNegativeIntegerType.md +5 -0
  77. package/docs/reference/type-aliases/DistributionOptionalContext.md +11 -0
  78. package/docs/reference/variables/DcatClasses.md +9 -9
  79. package/docs/reference/variables/DcatContexts.md +22 -28
  80. package/package.json +5 -5
  81. package/dist/es/models/ICatalog.js +0 -2
  82. package/dist/es/models/ICatalog.js.map +0 -1
  83. package/dist/es/models/ICatalogRecord.js +0 -2
  84. package/dist/es/models/ICatalogRecord.js.map +0 -1
  85. package/dist/es/models/IDataService.js +0 -2
  86. package/dist/es/models/IDataService.js.map +0 -1
  87. package/dist/es/models/IDataset.js +0 -2
  88. package/dist/es/models/IDataset.js.map +0 -1
  89. package/dist/es/models/IDatasetSeries.js +0 -2
  90. package/dist/es/models/IDatasetSeries.js.map +0 -1
  91. package/dist/es/models/IDistribution.js +0 -2
  92. package/dist/es/models/IDistribution.js.map +0 -1
  93. package/dist/es/models/IRelationship.js +0 -2
  94. package/dist/es/models/IRelationship.js.map +0 -1
  95. package/dist/es/models/IResource.js +0 -2
  96. package/dist/es/models/IResource.js.map +0 -1
  97. package/dist/es/models/IRole.js +0 -2
  98. package/dist/es/models/IRole.js.map +0 -1
  99. package/docs/reference/type-aliases/DecimalType.md +0 -5
  100. package/docs/reference/type-aliases/DurationType.md +0 -5
  101. package/docs/reference/type-aliases/IriType.md +0 -5
  102. 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 { DateTimeType, DecimalType, DurationType, LiteralType, NonNegativeIntegerType } from "./types/dcatPropertyTypes.js";
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 IDistribution extends IJsonLdNodeObject {
13
+ export interface IDcatDistribution extends IJsonLdNodeObject {
14
14
  /**
15
15
  * The JSON-LD context for the resource.
16
16
  */
17
- "@context"?: DcatContextType;
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"?: LiteralType;
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"?: LiteralType;
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"?: DateTimeType;
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"?: DateTimeType;
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"?: NonNegativeIntegerType;
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"?: DecimalType;
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"?: DurationType;
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 { IRole } from "./IRole.js";
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 IRelationship extends IJsonLdNodeObject {
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"?: IRole;
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 { IAgent } from "@twin.org/standards-foaf";
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 { IRelationship } from "./IRelationship.js";
8
- import type { DateTimeType, LiteralType } from "./types/dcatPropertyTypes.js";
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 IResource extends IJsonLdNodeObject {
14
+ export interface IDcatResource extends IJsonLdNodeObject {
15
15
  /**
16
16
  * The JSON-LD context for the resource.
17
17
  */
18
- "@context"?: DcatContextType;
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"?: LiteralType;
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"?: LiteralType;
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"?: LiteralType;
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"?: DateTimeType;
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"?: DateTimeType;
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"?: IAgent | string;
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"?: IAgent;
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"?: LiteralType;
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"?: IRelationship | string;
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 { LiteralType } from "./types/dcatPropertyTypes.js";
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 IRole extends IJsonLdNodeObject {
11
+ export interface IDcatRole extends IJsonLdNodeObject {
12
12
  /**
13
13
  * The JSON-LD context for the resource.
14
14
  */
15
- "@context"?: DcatContextType;
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"?: LiteralType;
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,11 +1,15 @@
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.
6
8
  * Supports the DCAT context URL or arrays with additional context definitions.
7
9
  */
8
10
  export type DcatContextType = {
9
- dcat: typeof DcatContexts.ContextRoot;
10
- dcterms: typeof DublinCoreContexts.ContextTerms;
11
+ dcat: typeof DcatContexts.Namespace;
12
+ dcterms: typeof DublinCoreContexts.NamespaceTerms;
13
+ odrl?: typeof OdrlContexts.Namespace;
14
+ foaf?: typeof FoafContexts.Namespace;
11
15
  } & IJsonLdContextDefinition;
@@ -4,33 +4,33 @@
4
4
  */
5
5
  export declare const DcatContexts: {
6
6
  /**
7
- * The context root for DCAT vocabulary.
7
+ * The canonical RDF namespace URI.
8
8
  */
9
- readonly ContextRoot: "http://www.w3.org/ns/dcat#";
9
+ readonly Namespace: "http://www.w3.org/ns/dcat#";
10
10
  /**
11
- * The redirect URL for the DCAT context, used for JSON-LD processing.
11
+ * The value to use in @context.
12
+ * Note: Context matches Namespace (both include trailing hash) as per DCAT 3.0 specification.
13
+ * The DCAT JSON-LD context URL format includes a trailing hash.
12
14
  */
13
- readonly ContextRedirect: "https://www.w3.org/ns/dcat.jsonld";
15
+ readonly Context: "http://www.w3.org/ns/dcat#";
14
16
  /**
15
- * The context for RDF vocabulary.
16
- * @see https://www.w3.org/TR/rdf-schema/
17
+ * The JSON-LD Context URL.
17
18
  */
18
- readonly ContextRdf: "http://www.w3.org/2000/01/rdf-schema#";
19
+ readonly JsonLdContext: "https://www.w3.org/ns/dcat.jsonld";
19
20
  /**
20
- * The context for RDF vocabulary Json-LD.
21
- * @see https://www.w3.org/TR/rdf-schema/
21
+ * The namespace location of the hosted version of the JSON Schema.
22
22
  */
23
- readonly ContextRdfRedirect: "https://schema.twindev.org/w3c-rdf/types.jsonld";
23
+ readonly JsonSchemaNamespace: "https://schema.twindev.org/w3c-dcat/";
24
24
  /**
25
- * The context for SPDX (Software Package Data Exchange) vocabulary.
26
- * @see https://spdx.org/rdf/terms
25
+ * The namespace for RDF vocabulary.
26
+ * @see https://www.w3.org/TR/rdf-schema/
27
27
  */
28
- readonly ContextSpdx: "http://spdx.org/rdf/terms#";
28
+ readonly NamespaceRdf: "http://www.w3.org/2000/01/rdf-schema#";
29
29
  /**
30
- * The context for PROV (Provenance) vocabulary.
31
- * @see https://www.w3.org/ns/prov
30
+ * The context for RDF vocabulary Json-LD.
31
+ * @see https://www.w3.org/TR/rdf-schema/
32
32
  */
33
- readonly ContextProv: "http://www.w3.org/ns/prov#";
33
+ readonly JsonLdContextRdf: "https://schema.twindev.org/w3c-rdf/types.jsonld";
34
34
  };
35
35
  /**
36
36
  * The contexts for DCAT.
@@ -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 LiteralType = string | string[];
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 IriType = string | string[];
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 DateTimeType = string;
17
+ export type DcatDateTimeType = string;
18
18
  /**
19
19
  * Duration values in ISO 8601 duration format (xsd:duration).
20
20
  */
21
- export type DurationType = string;
21
+ export type DcatDurationType = string;
22
22
  /**
23
23
  * Decimal number values (xsd:decimal).
24
24
  */
25
- export type DecimalType = number;
25
+ export type DcatDecimalType = number;
26
26
  /**
27
27
  * Non-negative integer values (xsd:nonNegativeInteger).
28
28
  */
29
- export type NonNegativeIntegerType = number;
29
+ export type DcatNonNegativeIntegerType = number;