diff --git a/src/util/ContextDefinitions.ts b/src/util/ContextDefinitions.ts index 9c2931c7666eb4df1878e4438cbedf4cd1bc8626..dec5d971faa55a13ebba22930e2af9d3a20facb9 100644 --- a/src/util/ContextDefinitions.ts +++ b/src/util/ContextDefinitions.ts @@ -2,7 +2,7 @@ import ComponentInformation from "../entity/ComponentInformation"; const component = { "id": { "@id": "https://schema.org/url", "@type": "@id"}, - "dateCreated": "https://schema.org/DateTime", + "dateCreated": "https://schema.org/dateCreated", "license": "http://www.w3.org/1999/xhtml/vocab#license" }; @@ -17,7 +17,7 @@ const information = function(metadataContext: unknown, previousVersion: Componen const result: Record<string, unknown> = { "id": { "@id": "https://schema.org/url", "@type": "@id"}, "component": { "@id": "https://schema.org/url", "@type": "@id"}, - "dateCreated": "https://schema.org/DateTime", + "dateCreated": "https://schema.org/dateCreated", "name": "https://schema.org/name", "comment": "http://schema.org/comment", "informationLicense": "http://www.w3.org/1999/xhtml/vocab#license", @@ -40,7 +40,7 @@ const information = function(metadataContext: unknown, previousVersion: Componen const measurement = function(valueContext: unknown, metadataContext: unknown | undefined): Record<string, unknown> { const result: Record<string, unknown> = { "id": { "@id": "https://schema.org/url", "@type": "@id"}, - "dateCreated": "https://schema.org/DateTime", + "dateCreated": "https://schema.org/dateCreated", "license": "http://www.w3.org/1999/xhtml/vocab#license", "value": valueContext }; @@ -54,7 +54,7 @@ const measurement = function(valueContext: unknown, metadataContext: unknown | u const typeDefinition = { "name": { "@id": "https://schema.org/url", "@type": "@id"}, - "dateCreated": "https://schema.org/DateTime", + "dateCreated": "https://schema.org/dateCreated", "comment": "http://schema.org/comment", "schema": "https://json-schema.org/draft/2020-12/json-schema-core.html", "license": "http://www.w3.org/1999/xhtml/vocab#license",