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

Enhances context definitions

parent 09b20c02
Branches
No related tags found
No related merge requests found
Pipeline #155226 passed
...@@ -2,7 +2,7 @@ import ComponentInformation from "../entity/ComponentInformation"; ...@@ -2,7 +2,7 @@ import ComponentInformation from "../entity/ComponentInformation";
const component = { const component = {
"id": { "@id": "https://schema.org/url", "@type": "@id"}, "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" "license": "http://www.w3.org/1999/xhtml/vocab#license"
}; };
...@@ -17,7 +17,7 @@ const information = function(metadataContext: unknown, previousVersion: Componen ...@@ -17,7 +17,7 @@ const information = function(metadataContext: unknown, previousVersion: Componen
const result: Record<string, unknown> = { const result: Record<string, unknown> = {
"id": { "@id": "https://schema.org/url", "@type": "@id"}, "id": { "@id": "https://schema.org/url", "@type": "@id"},
"component": { "@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", "name": "https://schema.org/name",
"comment": "http://schema.org/comment", "comment": "http://schema.org/comment",
"informationLicense": "http://www.w3.org/1999/xhtml/vocab#license", "informationLicense": "http://www.w3.org/1999/xhtml/vocab#license",
...@@ -40,7 +40,7 @@ const information = function(metadataContext: unknown, previousVersion: Componen ...@@ -40,7 +40,7 @@ const information = function(metadataContext: unknown, previousVersion: Componen
const measurement = function(valueContext: unknown, metadataContext: unknown | undefined): Record<string, unknown> { const measurement = function(valueContext: unknown, metadataContext: unknown | undefined): Record<string, unknown> {
const result: Record<string, unknown> = { const result: Record<string, unknown> = {
"id": { "@id": "https://schema.org/url", "@type": "@id"}, "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", "license": "http://www.w3.org/1999/xhtml/vocab#license",
"value": valueContext "value": valueContext
}; };
...@@ -54,7 +54,7 @@ const measurement = function(valueContext: unknown, metadataContext: unknown | u ...@@ -54,7 +54,7 @@ const measurement = function(valueContext: unknown, metadataContext: unknown | u
const typeDefinition = { const typeDefinition = {
"name": { "@id": "https://schema.org/url", "@type": "@id"}, "name": { "@id": "https://schema.org/url", "@type": "@id"},
"dateCreated": "https://schema.org/DateTime", "dateCreated": "https://schema.org/dateCreated",
"comment": "http://schema.org/comment", "comment": "http://schema.org/comment",
"schema": "https://json-schema.org/draft/2020-12/json-schema-core.html", "schema": "https://json-schema.org/draft/2020-12/json-schema-core.html",
"license": "http://www.w3.org/1999/xhtml/vocab#license", "license": "http://www.w3.org/1999/xhtml/vocab#license",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment