Skip to content
Snippets Groups Projects
Commit 1db452e5 authored by Jonas Schlabertz's avatar Jonas Schlabertz
Browse files

Alters license context definition.

parent dfbe901e
No related branches found
No related tags found
No related merge requests found
Pipeline #155217 passed
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment