diff --git a/src/util/ContextDefinitions.ts b/src/util/ContextDefinitions.ts index 28e217a61ffa16078cb0f158e1acf2478fc565e9..9c2931c7666eb4df1878e4438cbedf4cd1bc8626 100644 --- a/src/util/ContextDefinitions.ts +++ b/src/util/ContextDefinitions.ts @@ -3,14 +3,14 @@ import ComponentInformation from "../entity/ComponentInformation"; const component = { "id": { "@id": "https://schema.org/url", "@type": "@id"}, "dateCreated": "https://schema.org/DateTime", - "license": "https://schema.org/license" + "license": "http://www.w3.org/1999/xhtml/vocab#license" }; const componentRelation = { "id": { "@id": "https://schema.org/url", "@type": "@id"}, "from": "https://schema.org/DateTime", "to": "https://schema.org/DateTime", - "license": "https://schema.org/license" + "license": "http://www.w3.org/1999/xhtml/vocab#license" }; const information = function(metadataContext: unknown, previousVersion: ComponentInformation | undefined, nextVersion: ComponentInformation | undefined): Record<string, unknown> { @@ -20,8 +20,8 @@ const information = function(metadataContext: unknown, previousVersion: Componen "dateCreated": "https://schema.org/DateTime", "name": "https://schema.org/name", "comment": "http://schema.org/comment", - "informationLicense": "https://schema.org/license", - "measurementLicense": "https://schema.org/license", + "informationLicense": "http://www.w3.org/1999/xhtml/vocab#license", + "measurementLicense": "http://www.w3.org/1999/xhtml/vocab#license", "topic": "https://schema.org/text", "metadata": metadataContext }; @@ -41,7 +41,7 @@ const measurement = function(valueContext: unknown, metadataContext: unknown | u const result: Record<string, unknown> = { "id": { "@id": "https://schema.org/url", "@type": "@id"}, "dateCreated": "https://schema.org/DateTime", - "license": "https://schema.org/license", + "license": "http://www.w3.org/1999/xhtml/vocab#license", "value": valueContext }; @@ -57,7 +57,7 @@ const typeDefinition = { "dateCreated": "https://schema.org/DateTime", "comment": "http://schema.org/comment", "schema": "https://json-schema.org/draft/2020-12/json-schema-core.html", - "license": "https://schema.org/license", + "license": "http://www.w3.org/1999/xhtml/vocab#license", }; export default {