From 019768d78c5db12a39014e32ffc038dac51e25ab Mon Sep 17 00:00:00 2001 From: Jonas Schlabertz <jonas@schlabertz.de> Date: Fri, 6 May 2022 10:34:47 +0200 Subject: [PATCH] Enhances context definitions --- src/util/ContextDefinitions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/ContextDefinitions.ts b/src/util/ContextDefinitions.ts index 9c2931c..dec5d97 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", -- GitLab