From bfe3def64200f2c2ff8c048e907b84043354aff3 Mon Sep 17 00:00:00 2001 From: agbeltran Date: Mon, 26 Feb 2024 12:02:51 +0000 Subject: [PATCH] Building blocks postprocessing --- .../mod-dcat-ap-bblock/_missed_properties.tsv | 1 + .../_visited_properties.tsv | 4 + .../context.jsonld | 0 .../schema-oas3.0.json | 14 +- .../schema-oas3.0.yaml | 11 +- .../schema.json | 6 +- .../schema.yaml | 3 + .../mod-dcat-bblock/_visited_properties.tsv | 3 - build/bblocks.jsonld | 221 +++++++++++------- build/bblocks.ttl | 51 ++-- .../index.json | 32 +-- .../index.md | 17 +- .../index.html | 41 ++-- .../index.html.md | 37 +-- build/register.json | 54 +++-- .../_report.json | 26 ++- .../example_1_1.json | 0 .../example_1_1.jsonld | 2 +- .../example_1_1.ttl | 0 .../example_1_1.validation_failed.txt | 26 +++ .../example_1_2.json | 0 .../example_1_2.jsonld | 2 +- .../example_1_2.ttl | 0 .../example_1_2.validation_failed.txt | 9 +- .../example_1_1.validation_passed.txt | 14 -- build/tests/report.html | 33 ++- 26 files changed, 373 insertions(+), 234 deletions(-) create mode 100644 build/annotated/bbr/template/mod-dcat-ap-bblock/_missed_properties.tsv create mode 100644 build/annotated/bbr/template/mod-dcat-ap-bblock/_visited_properties.tsv rename build/annotated/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/context.jsonld (100%) rename build/annotated/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/schema-oas3.0.json (68%) rename build/annotated/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/schema-oas3.0.yaml (65%) rename build/annotated/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/schema.json (89%) rename build/annotated/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/schema.yaml (91%) delete mode 100644 build/annotated/bbr/template/mod-dcat-bblock/_visited_properties.tsv rename build/generateddocs/json-full/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/index.json (65%) rename build/generateddocs/markdown/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/index.md (82%) rename build/generateddocs/slate-build/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/index.html (86%) rename build/generateddocs/slate/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/index.html.md (69%) rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/_report.json (76%) rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/example_1_1.json (100%) rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/example_1_1.jsonld (67%) rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/example_1_1.ttl (100%) create mode 100644 build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.validation_failed.txt rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/example_1_2.json (100%) rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/example_1_2.jsonld (68%) rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/example_1_2.ttl (100%) rename build/tests/bbr/template/{mod-dcat-bblock => mod-dcat-ap-bblock}/example_1_2.validation_failed.txt (65%) delete mode 100644 build/tests/bbr/template/mod-dcat-bblock/example_1_1.validation_passed.txt diff --git a/build/annotated/bbr/template/mod-dcat-ap-bblock/_missed_properties.tsv b/build/annotated/bbr/template/mod-dcat-ap-bblock/_missed_properties.tsv new file mode 100644 index 0000000..e7a8fd4 --- /dev/null +++ b/build/annotated/bbr/template/mod-dcat-ap-bblock/_missed_properties.tsv @@ -0,0 +1 @@ +path diff --git a/build/annotated/bbr/template/mod-dcat-ap-bblock/_visited_properties.tsv b/build/annotated/bbr/template/mod-dcat-ap-bblock/_visited_properties.tsv new file mode 100644 index 0000000..4e6d35d --- /dev/null +++ b/build/annotated/bbr/template/mod-dcat-ap-bblock/_visited_properties.tsv @@ -0,0 +1,4 @@ +path @id +/mod:acronym +/dct:title +/dcat:landingPage diff --git a/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld b/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld similarity index 100% rename from build/annotated/bbr/template/mod-dcat-bblock/context.jsonld rename to build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld diff --git a/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.json b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.json similarity index 68% rename from build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.json rename to build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.json index f2a7fa0..ca09da2 100644 --- a/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.json +++ b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.json @@ -1,6 +1,6 @@ { "x-defs": { - "ogc.bbr.template.mod-dcat-bblock": { + "ogc.bbr.template.mod-dcat-ap-bblock": { "description": "Schema for the MOD-DCAT-Profile building block", "$defs": { "mod:SemanticArtefact": { @@ -11,11 +11,15 @@ }, "dct:title": { "type": "string" + }, + "dcat:landingPage": { + "type": "string" } }, "required": [ "mod:acronym", - "dct:title" + "dct:title", + "dcat:landingPage" ] }, "mod:SemanticArtefactDistribution": { @@ -32,7 +36,7 @@ }, "anyOf": [ { - "$ref": "#/$defs/mod:SemanticArtefact" + "$ref": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.json#/x-defs/ogc.bbr.template.mod-dcat-ap-bblock/$defs/mod:SemanticArtefact" } ], "x-jsonld-prefixes": { @@ -42,12 +46,12 @@ "xsd": "http://www.w3.org/2001/XMLSchema#" }, "x-schema-version": "https://json-schema.org/draft/2020-12/schema", - "x-schema-source": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.json" + "x-schema-source": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.json" } }, "allOf": [ { - "$ref": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.json#/x-defs/ogc.bbr.template.mod-dcat-bblock" + "$ref": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.json#/x-defs/ogc.bbr.template.mod-dcat-ap-bblock" } ] } \ No newline at end of file diff --git a/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.yaml b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.yaml similarity index 65% rename from build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.yaml rename to build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.yaml index 8225e66..5cf65f1 100644 --- a/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.yaml +++ b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.yaml @@ -1,5 +1,5 @@ x-defs: - ogc.bbr.template.mod-dcat-bblock: + ogc.bbr.template.mod-dcat-ap-bblock: description: Schema for the MOD-DCAT-Profile building block $defs: mod:SemanticArtefact: @@ -9,9 +9,12 @@ x-defs: type: string dct:title: type: string + dcat:landingPage: + type: string required: - mod:acronym - dct:title + - dcat:landingPage mod:SemanticArtefactDistribution: type: object properties: @@ -20,13 +23,13 @@ x-defs: mod:hasRepresentationLanguage: type: string anyOf: - - $ref: '#/$defs/mod:SemanticArtefact' + - $ref: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.yaml#/x-defs/ogc.bbr.template.mod-dcat-ap-bblock/$defs/mod:SemanticArtefact x-jsonld-prefixes: mod: https://w3id.org/mod# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema# xsd: http://www.w3.org/2001/XMLSchema# x-schema-version: https://json-schema.org/draft/2020-12/schema - x-schema-source: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.yaml + x-schema-source: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.yaml allOf: -- $ref: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema-oas3.0.yaml#/x-defs/ogc.bbr.template.mod-dcat-bblock +- $ref: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema-oas3.0.yaml#/x-defs/ogc.bbr.template.mod-dcat-ap-bblock diff --git a/build/annotated/bbr/template/mod-dcat-bblock/schema.json b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json similarity index 89% rename from build/annotated/bbr/template/mod-dcat-bblock/schema.json rename to build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json index ef435a2..b29b3e8 100644 --- a/build/annotated/bbr/template/mod-dcat-bblock/schema.json +++ b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json @@ -10,11 +10,15 @@ }, "dct:title": { "type": "string" + }, + "dcat:landingPage": { + "type": "string" } }, "required": [ "mod:acronym", - "dct:title" + "dct:title", + "dcat:landingPage" ] }, "mod:SemanticArtefactDistribution": { diff --git a/build/annotated/bbr/template/mod-dcat-bblock/schema.yaml b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml similarity index 91% rename from build/annotated/bbr/template/mod-dcat-bblock/schema.yaml rename to build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml index 185a641..acdda32 100644 --- a/build/annotated/bbr/template/mod-dcat-bblock/schema.yaml +++ b/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml @@ -8,9 +8,12 @@ $defs: type: string dct:title: type: string + dcat:landingPage: + type: string required: - mod:acronym - dct:title + - dcat:landingPage mod:SemanticArtefactDistribution: type: object properties: diff --git a/build/annotated/bbr/template/mod-dcat-bblock/_visited_properties.tsv b/build/annotated/bbr/template/mod-dcat-bblock/_visited_properties.tsv deleted file mode 100644 index 1626cb0..0000000 --- a/build/annotated/bbr/template/mod-dcat-bblock/_visited_properties.tsv +++ /dev/null @@ -1,3 +0,0 @@ -path @id -anyOf[0]/$ref[#/$defs/mod:SemanticArtefact]/properties/mod:acronym -anyOf[0]/$ref[#/$defs/mod:SemanticArtefact]/properties/dct:title diff --git a/build/bblocks.jsonld b/build/bblocks.jsonld index e71299a..6e73a95 100644 --- a/build/bblocks.jsonld +++ b/build/bblocks.jsonld @@ -1,87 +1,137 @@ { - "@context": { - "bblocks": "https://www.opengis.net/def/bblocks/", - "@base": "https://www.opengis.net/def/bblocks/", - "rdfs": "http://www.w3.org/2000/01/rdf-schema#", - "skos": "http://www.w3.org/2004/02/skos/core#", - "dct": "http://purl.org/dc/terms/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "itemIdentifier": "@id", - "name": "rdfs:label", - "abstract": "dct:abstract", - "status": { - "@id": "bblocks:status", - "@type": "@id", - "@context": { - "@base": "http://www.opengis.net/def/status/" - } - }, - "dateTimeAddition": { - "@id": "dct:created", - "@type": "xsd:dateTime" - }, - "version": "dct:hasVersion", - "dateOfLastChange": { - "@id": "dct:modified", - "@type": "xsd:date" - }, - "scope": { - "@id": "bblocks:scope", - "@type": "@id", - "@context": { - "@base": "http://www.opengis.net/def/bblocks/scope/" - } - }, - "sources": { - "@id": "dct:source", - "@context": { - "title": "rdfs:label", - "link": "@id" - } - }, - "schema": { - "@id": "bblocks:hasSchema", - "@type": "@id", - "@container": "@index", - "@index": "dct:format" - }, - "ldContext": { - "@id": "bblocks:hasJsonLdContext", - "@type": "@id" + "@context": [ + { + "@base": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile" }, - "documentation": { - "@id": "dct:description", - "@type": "@id", - "@container": "@index", - "@index": "dct:identifier", - "@context": { - "mediatype": "dct:format", - "url": "rdfs:isDefinedBy" + { + "bblocks": "https://www.opengis.net/def/bblocks/", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "skos": "http://www.w3.org/2004/02/skos/core#", + "dct": "http://purl.org/dc/terms/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "prof": "http://www.w3.org/ns/dx/prof/", + "dcat": "http://www.w3.org/ns/dcat#", + "itemIdentifier": "@id", + "baseURL": "@id", + "name": "rdfs:label", + "abstract": "dct:abstract", + "description": "dct:description", + "status": { + "@id": "bblocks:status", + "@type": "@id", + "@context": { + "@base": "http://www.opengis.net/def/status/" + } + }, + "dateTimeAddition": { + "@id": "dct:created", + "@type": "xsd:dateTime" + }, + "version": "dct:hasVersion", + "dateOfLastChange": { + "@id": "dct:modified", + "@type": "xsd:date" + }, + "scope": { + "@id": "bblocks:scope", + "@type": "@id", + "@context": { + "@base": "http://www.opengis.net/def/bblocks/scope/" + } + }, + "sources": { + "@id": "dct:source", + "@context": { + "title": "rdfs:label", + "link": "@id" + } + }, + "schema": { + "@id": "bblocks:hasSchema", + "@type": "@id", + "@container": "@index", + "@index": "dct:format" + }, + "ldContext": { + "@id": "bblocks:hasJsonLdContext", + "@type": "@id" + }, + "sourceLdContext": { + "@id": "bblocks:hasSourceJsonLdContext", + "@type": "@id" + }, + "documentation": { + "@id": "dct:description", + "@type": "@id", + "@container": "@index", + "@index": "dct:identifier", + "@context": { + "mediatype": "dct:format", + "url": "rdfs:isDefinedBy" + } + }, + "hasConcepts": { + "@reverse": "skos:inScheme" + }, + "dependsOn": { + "@id": "bblocks:dependsOn", + "@type": "@id" + }, + "profileOf": { + "@id": "prof:isProfileOf", + "@type": "@id" + }, + "tags": "dcat:keyword", + "shaclRules": { + "@id": "bblocks:hasShaclRule", + "@type": "@id", + "@container": "@index", + "@index": "rdfs:seeAlso" + }, + "validationReport": { + "@id": "bblocks:hasValidationReport", + "@type": "@id" + }, + "imports": { + "@id": "bblocks:imports", + "@type": "@id" } - }, - "hasConcepts": { - "@reverse": "skos:inScheme" - }, - "dependsOn": { - "@id": "bblocks:dependsOn", - "@type": "@id" + } + ], + "modified": "2024-02-26T12:02:32.817403", + "tooling": { + "bblocks-postprocess": { + "commitId": "\"511c71377d2cb8187d14b5ba55aea1eb84c03d40", + "shortCommitId": "\"511c71", + "date": "2024-02-19T19:40:19+00:00\"" } }, - "@id": "https://www.opengis.net/def/bblocks", - "@type": "skos:ConceptScheme", - "skos:prefLabel": "OGC Building Blocks Register", + "gitRepository": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile", + "gitHubRepository": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/", + "name": "workspace", + "baseURL": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/", + "viewerURL": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/", + "validationReport": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/report.html", + "imports": [ + "https://opengeospatial.github.io/bblocks/register.json" + ], + "@type": [ + "skos:ConceptScheme", + "dcat:Catalog" + ], + "skos:prefLabel": "workspace", "hasConcepts": [ { - "itemIdentifier": "ogc.bbr.template.mod-dcat-bblock", + "itemIdentifier": "ogc.bbr.template.mod-dcat-ap-bblock", "$schema": "https://raw.githubusercontent.com/opengeospatial/bblocks-postprocess/master/ogc/bblocks/metadata-schema.yaml", "name": "MOD-DCAT-Profile", "abstract": "This Building Block is the DCAT Profile for the MOD ontology", - "status": "invalid", + "status": "under-development", "dateTimeAddition": "2023-12-12T00:00:00Z", "itemClass": "schema", "register": "ogc-building-block-register", "version": "0.1", - "dateOfLastChange": "2023-12-12", + "dateOfLastChange": "2024-02-26", "link": "https://github.com/opengeospatial/bblock-template", "sources": [ { @@ -95,31 +145,38 @@ "templates" ], "shaclRules": {}, + "ldContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld", "schema": { - "application/yaml": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.yaml", - "application/json": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.json" + "application/yaml": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml", + "application/json": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json" }, - "ldContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld", - "sourceFiles": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-bblock/", + "sourceLdContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/context.jsonld", + "sourceSchema": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/schema.json", + "sourceFiles": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/", "validationPassed": false, - "testOutputs": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/build/tests/bbr/template/mod-dcat-bblock/", + "testOutputs": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/build/tests/bbr/template/mod-dcat-ap-bblock/", "documentation": { - "json-full": { - "mediatype": "application/json", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/json-full/bbr/template/mod-dcat-bblock/index.json" - }, "markdown": { "mediatype": "text/markdown", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/markdown/bbr/template/mod-dcat-bblock/index.md" + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/markdown/bbr/template/mod-dcat-ap-bblock/index.md" + }, + "json-full": { + "mediatype": "application/json", + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/json-full/bbr/template/mod-dcat-ap-bblock/index.json" }, "slate": { "mediatype": "text/html", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/slate-build/bbr/template/mod-dcat-bblock/" + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/slate-build/bbr/template/mod-dcat-ap-bblock/" + }, + "bblocks-viewer": { + "mediatype": "text/html", + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/bblock/ogc.bbr.template.mod-dcat-ap-bblock" } }, "@type": [ "bblocks:Schema", - "skos:Concept" + "skos:Concept", + "dcat:Dataset" ] } ] diff --git a/build/bblocks.ttl b/build/bblocks.ttl index 2b4c919..66b3972 100644 --- a/build/bblocks.ttl +++ b/build/bblocks.ttl @@ -1,4 +1,5 @@ @prefix bblocks: . +@prefix dcat: . @prefix dct: . @prefix prov: . @prefix rdfs: . @@ -6,44 +7,54 @@ @prefix skos: . @prefix xsd: . -bblocks:ogc.bbr.template.mod-dcat-bblock a skos:Concept, + a skos:Concept, + dcat:Dataset, bblocks:Schema ; rdfs:label "MOD-DCAT-Profile" ; dct:abstract "This Building Block is the DCAT Profile for the MOD ontology" ; dct:created "2023-12-12T00:00:00+00:00"^^xsd:dateTime ; dct:description [ dct:format "application/json" ; - rdfs:isDefinedBy "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/json-full/bbr/template/mod-dcat-bblock/index.json" ], + rdfs:isDefinedBy "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/json-full/bbr/template/mod-dcat-ap-bblock/index.json" ], [ dct:format "text/markdown" ; - rdfs:isDefinedBy "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/markdown/bbr/template/mod-dcat-bblock/index.md" ], + rdfs:isDefinedBy "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/markdown/bbr/template/mod-dcat-ap-bblock/index.md" ], [ dct:format "text/html" ; - rdfs:isDefinedBy "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/slate-build/bbr/template/mod-dcat-bblock/" ] ; + rdfs:isDefinedBy "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/bblock/ogc.bbr.template.mod-dcat-ap-bblock" ], + [ dct:format "text/html" ; + rdfs:isDefinedBy "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/slate-build/bbr/template/mod-dcat-ap-bblock/" ] ; dct:hasVersion "0.1" ; - dct:modified "2023-12-12"^^xsd:date ; + dct:modified "2024-02-26"^^xsd:date ; dct:source ; - skos:inScheme ; - bblocks:hasJsonLdContext ; - bblocks:hasSchema , - ; + skos:inScheme ; + dcat:keyword "templates" ; + bblocks:hasJsonLdContext ; + bblocks:hasSchema , + ; + bblocks:hasSourceJsonLdContext ; bblocks:scope ; - bblocks:status . + bblocks:status . - rdfs:label "Sample source document" . + a skos:ConceptScheme, + dcat:Catalog ; + rdfs:label "workspace" ; + skos:prefLabel "workspace" ; + bblocks:hasValidationReport ; + bblocks:imports . - a skos:ConceptScheme ; - skos:prefLabel "OGC Building Blocks Register" . + rdfs:label "Sample source document" . [] a prov:Activity ; - prov:endedAtTime "2024-01-02T16:05:50.295001"^^xsd:dateTime ; - prov:startedAtTime "2024-01-02T16:05:50.235333"^^xsd:dateTime ; + prov:endedAtTime "2024-02-26T12:02:33.368575"^^xsd:dateTime ; + prov:startedAtTime "2024-02-26T12:02:33.291613"^^xsd:dateTime ; prov:used [ a prov:Entity ; - dct:format "application/yaml" ; - rdfs:seeAlso ], - [ a prov:Entity ; dct:format "application/json" ; - rdfs:seeAlso ] ; + dct:hasVersion "git:48c89bac404452aac2e68bbd8a7622927247c74b" ; + rdfs:seeAlso ], + [ a prov:Entity ; + dct:format "application/yaml" ; + rdfs:seeAlso ] ; prov:wasAssociatedWith [ a prov:Agent, schema:SoftwareApplication ; rdfs:label "OGC-NA tools" ; - dct:hasVersion "0.3.31" ; + dct:hasVersion "0.3.37" ; rdfs:seeAlso ] . diff --git a/build/generateddocs/json-full/bbr/template/mod-dcat-bblock/index.json b/build/generateddocs/json-full/bbr/template/mod-dcat-ap-bblock/index.json similarity index 65% rename from build/generateddocs/json-full/bbr/template/mod-dcat-bblock/index.json rename to build/generateddocs/json-full/bbr/template/mod-dcat-ap-bblock/index.json index 6f322b9..33c3392 100644 --- a/build/generateddocs/json-full/bbr/template/mod-dcat-bblock/index.json +++ b/build/generateddocs/json-full/bbr/template/mod-dcat-ap-bblock/index.json @@ -1,16 +1,16 @@ { - "itemIdentifier": "ogc.bbr.template.mod-dcat-bblock", + "itemIdentifier": "ogc.bbr.template.mod-dcat-ap-bblock", "$schema": "https://raw.githubusercontent.com/opengeospatial/bblocks-postprocess/master/ogc/bblocks/metadata-schema.yaml", "name": "MOD-DCAT-Profile", "abstract": "This Building Block is the DCAT Profile for the MOD ontology", - "status": "invalid", + "status": "under-development", "dateTimeAddition": "2023-12-12T00:00:00Z", "itemClass": "schema", "register": "ogc-building-block-register", "version": "0.1", - "dateOfLastChange": "2023-12-12", + "dateOfLastChange": "2024-02-26", "link": "https://github.com/opengeospatial/bblock-template", "sources": [ { @@ -24,14 +24,16 @@ "templates" ], "shaclRules": {}, + "ldContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld", "schema": { - "application/yaml": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.yaml", - "application/json": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.json" + "application/yaml": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml", + "application/json": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json" }, - "ldContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld", - "sourceFiles": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-bblock/", + "sourceLdContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/context.jsonld", + "sourceSchema": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/schema.json", + "sourceFiles": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/", "validationPassed": false, - "testOutputs": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/build/tests/bbr/template/mod-dcat-bblock/", + "testOutputs": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/build/tests/bbr/template/mod-dcat-ap-bblock/", "description": "## MOD-DCAT-Profile\n\nThis is the representation of the DCAT Profile for MOD. This document provides a human-readable description of the Profile.\n", "examples": [ { @@ -43,29 +45,29 @@ "ref": "examples/mod-ex1.json", "schema-ref": "#/$defs/mod:SemanticArtefact", "code": "{\n \"mod:acronym\": \"mySA\",\n \"dct:title\": \"my semantic artefact\" \n}\n \n \n \n ", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-bblock/example_1_1.json" + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.json" }, { "language": "json", "ref": "examples/mod-ex2.json", "schema-ref": "#/$defs/mod:SemanticArtefact", "code": "{\n \"mod:acronym\": \"mySA\",\n \"description\": \"my semantic artefact\" \n}\n \n \n \n ", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-bblock/example_1_2.json" + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.json" }, { "language": "jsonld", - "code": "{\n \"mod:acronym\": \"mySA\",\n \"description\": \"my semantic artefact\",\n \"@context\": \"https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld\"\n}", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-bblock/example_1_2.jsonld" + "code": "{\n \"mod:acronym\": \"mySA\",\n \"description\": \"my semantic artefact\",\n \"@context\": \"https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld\"\n}", + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.jsonld" }, { "language": "ttl", "code": "@prefix mod: .\n\n[] mod:acronym \"mySA\" .\n\n", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-bblock/example_1_2.ttl" + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.ttl" } ] } ], - "annotatedSchema": "$schema: https://json-schema.org/draft/2020-12/schema\ndescription: Schema for the MOD-DCAT-Profile building block\n$defs:\n mod:SemanticArtefact:\n type: object\n properties:\n mod:acronym:\n type: string\n dct:title:\n type: string\n required:\n - mod:acronym\n - dct:title\n mod:SemanticArtefactDistribution:\n type: object\n properties:\n mod:hasSyntax:\n type: string\n mod:hasRepresentationLanguage:\n type: string\nanyOf:\n- $ref: '#/$defs/mod:SemanticArtefact'\nx-jsonld-prefixes:\n mod: https://w3id.org/mod#\n rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#\n rdfs: http://www.w3.org/2000/01/rdf-schema#\n xsd: http://www.w3.org/2001/XMLSchema#\n", + "annotatedSchema": "$schema: https://json-schema.org/draft/2020-12/schema\ndescription: Schema for the MOD-DCAT-Profile building block\n$defs:\n mod:SemanticArtefact:\n type: object\n properties:\n mod:acronym:\n type: string\n dct:title:\n type: string\n dcat:landingPage:\n type: string\n required:\n - mod:acronym\n - dct:title\n - dcat:landingPage\n mod:SemanticArtefactDistribution:\n type: object\n properties:\n mod:hasSyntax:\n type: string\n mod:hasRepresentationLanguage:\n type: string\nanyOf:\n- $ref: '#/$defs/mod:SemanticArtefact'\nx-jsonld-prefixes:\n mod: https://w3id.org/mod#\n rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#\n rdfs: http://www.w3.org/2000/01/rdf-schema#\n xsd: http://www.w3.org/2001/XMLSchema#\n", "gitRepository": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile", - "gitPath": "_sources/mod-dcat-bblock" + "gitPath": "_sources/mod-dcat-ap-bblock" } \ No newline at end of file diff --git a/build/generateddocs/markdown/bbr/template/mod-dcat-bblock/index.md b/build/generateddocs/markdown/bbr/template/mod-dcat-ap-bblock/index.md similarity index 82% rename from build/generateddocs/markdown/bbr/template/mod-dcat-bblock/index.md rename to build/generateddocs/markdown/bbr/template/mod-dcat-ap-bblock/index.md index 2262fc2..70bf9ba 100644 --- a/build/generateddocs/markdown/bbr/template/mod-dcat-bblock/index.md +++ b/build/generateddocs/markdown/bbr/template/mod-dcat-ap-bblock/index.md @@ -1,11 +1,11 @@ # MOD-DCAT-Profile (Schema) -`ogc.bbr.template.mod-dcat-bblock` *v0.1* +`ogc.bbr.template.mod-dcat-ap-bblock` *v0.1* This Building Block is the DCAT Profile for the MOD ontology -[*Status*](http://www.opengis.net/def/status): Invalid +[*Status*](http://www.opengis.net/def/status): Under development ## Description @@ -46,7 +46,7 @@ This is the content of the example. { "mod:acronym": "mySA", "description": "my semantic artefact", - "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld" + "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld" } ``` @@ -72,9 +72,12 @@ $defs: type: string dct:title: type: string + dcat:landingPage: + type: string required: - mod:acronym - dct:title + - dcat:landingPage mod:SemanticArtefactDistribution: type: object properties: @@ -94,8 +97,8 @@ x-jsonld-prefixes: Links to the schema: -* YAML version: [schema.yaml](https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.json) -* JSON version: [schema.json](https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.yaml) +* YAML version: [schema.yaml](https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json) +* JSON version: [schema.json](https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml) # JSON-LD Context @@ -113,7 +116,7 @@ Links to the schema: ``` You can find the full JSON-LD context here: -[context.jsonld](https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld) +[context.jsonld](https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld) ## Sources @@ -124,5 +127,5 @@ You can find the full JSON-LD context here: The source code for this Building Block can be found in the following repository: * URL: [https://github.com/FAIR-IMPACT/MOD-DCAT-profile](https://github.com/FAIR-IMPACT/MOD-DCAT-profile) -* Path: `_sources/mod-dcat-bblock` +* Path: `_sources/mod-dcat-ap-bblock` diff --git a/build/generateddocs/slate-build/bbr/template/mod-dcat-bblock/index.html b/build/generateddocs/slate-build/bbr/template/mod-dcat-ap-bblock/index.html similarity index 86% rename from build/generateddocs/slate-build/bbr/template/mod-dcat-bblock/index.html rename to build/generateddocs/slate-build/bbr/template/mod-dcat-ap-bblock/index.html index 6db1fd3..c274dc8 100644 --- a/build/generateddocs/slate-build/bbr/template/mod-dcat-bblock/index.html +++ b/build/generateddocs/slate-build/bbr/template/mod-dcat-ap-bblock/index.html @@ -294,7 +294,7 @@ - + NAV @@ -314,7 +314,7 @@
    • - MOD-DCAT-Profile ogc.bbr.template.mod-dcat-bblock + MOD-DCAT-Profile ogc.bbr.template.mod-dcat-ap-bblock
    • Description @@ -354,16 +354,16 @@
      -

      MOD-DCAT-Profile ogc.bbr.template.mod-dcat-bblock

      +

      MOD-DCAT-Profile ogc.bbr.template.mod-dcat-ap-bblock

      This Building Block is the DCAT Profile for the MOD ontology

      Status: - Invalid + Under development

      Description

      MOD-DCAT-Profile

      This is the representation of the DCAT Profile for MOD. This document provides a human-readable description of the Profile.

      @@ -378,8 +378,8 @@

      Examples

      Examples

      Examples

      JSON Schema

      type: string
             dct:title:
               type: string
      +      dcat:landingPage:
      +        type: string
           required:
           - mod:acronym
           - dct:title
      +    - dcat:landingPage
         mod:SemanticArtefactDistribution:
           type: object
           properties:
      @@ -448,14 +451,14 @@ 

      JSON Schema

      View on YAML Viewer

      +

      View on YAML Viewer

      Links to the schema:

      JSON-LD Context

      diff --git a/build/generateddocs/slate/bbr/template/mod-dcat-bblock/index.html.md b/build/generateddocs/slate/bbr/template/mod-dcat-ap-bblock/index.html.md similarity index 69% rename from build/generateddocs/slate/bbr/template/mod-dcat-bblock/index.html.md rename to build/generateddocs/slate/bbr/template/mod-dcat-ap-bblock/index.html.md index f9516f1..3f56901 100644 --- a/build/generateddocs/slate/bbr/template/mod-dcat-bblock/index.html.md +++ b/build/generateddocs/slate/bbr/template/mod-dcat-ap-bblock/index.html.md @@ -20,17 +20,17 @@ meta: --- -# MOD-DCAT-Profile `ogc.bbr.template.mod-dcat-bblock` +# MOD-DCAT-Profile `ogc.bbr.template.mod-dcat-ap-bblock` This Building Block is the DCAT Profile for the MOD ontology

      Status: - Invalid + Under development

      # Description @@ -58,8 +58,8 @@ This is the representation of the DCAT Profile for MOD. This document provides a
      + Open in new window + View on JSON Viewer

      @@ -78,8 +78,8 @@ This is the representation of the DCAT Profile for MOD. This document provides a
      + Open in new window + View on JSON Viewer

      @@ -89,14 +89,14 @@ This is the representation of the DCAT Profile for MOD. This document provides a { "mod:acronym": "mySA", "description": "my semantic artefact", - "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld" + "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld" } ```
      @@ -112,7 +112,7 @@ This is the representation of the DCAT Profile for MOD. This document provides a
      @@ -132,9 +132,12 @@ $defs: type: string dct:title: type: string + dcat:landingPage: + type: string required: - mod:acronym - dct:title + - dcat:landingPage mod:SemanticArtefactDistribution: type: object properties: @@ -152,12 +155,12 @@ x-jsonld-prefixes: ``` -> View on YAML Viewer +> View on YAML Viewer Links to the schema: -* YAML version: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.yaml -* JSON version: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.json +* YAML version: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml +* JSON version: https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json # JSON-LD Context @@ -174,10 +177,10 @@ Links to the schema: } ``` -> View on JSON-LD Playground +> View on JSON-LD Playground You can find the full JSON-LD context here: -https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld +https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld # References @@ -189,5 +192,5 @@ The source code for this Building Block can be found in the following repository * URL: https://github.com/FAIR-IMPACT/MOD-DCAT-profile * Path: -_sources/mod-dcat-bblock +_sources/mod-dcat-ap-bblock diff --git a/build/register.json b/build/register.json index b0dc030..2bc2aa8 100644 --- a/build/register.json +++ b/build/register.json @@ -1,19 +1,33 @@ { + "modified": "2024-02-26T12:02:32.817403", + "tooling": { + "bblocks-postprocess": { + "commitId": "\"511c71377d2cb8187d14b5ba55aea1eb84c03d40", + "shortCommitId": "\"511c71", + "date": "2024-02-19T19:40:19+00:00\"" + } + }, + "gitRepository": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile", + "gitHubRepository": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/", + "name": "workspace", + "baseURL": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/", + "viewerURL": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/", + "validationReport": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/report.html", "imports": [ - "https://blocks.ogc.org/register.json" + "https://opengeospatial.github.io/bblocks/register.json" ], "bblocks": [ { - "itemIdentifier": "ogc.bbr.template.mod-dcat-bblock", + "itemIdentifier": "ogc.bbr.template.mod-dcat-ap-bblock", "$schema": "https://raw.githubusercontent.com/opengeospatial/bblocks-postprocess/master/ogc/bblocks/metadata-schema.yaml", "name": "MOD-DCAT-Profile", "abstract": "This Building Block is the DCAT Profile for the MOD ontology", - "status": "invalid", + "status": "under-development", "dateTimeAddition": "2023-12-12T00:00:00Z", "itemClass": "schema", "register": "ogc-building-block-register", "version": "0.1", - "dateOfLastChange": "2023-12-12", + "dateOfLastChange": "2024-02-26", "link": "https://github.com/opengeospatial/bblock-template", "sources": [ { @@ -27,30 +41,34 @@ "templates" ], "shaclRules": {}, + "ldContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld", "schema": { - "application/yaml": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.yaml", - "application/json": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/schema.json" + "application/yaml": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.yaml", + "application/json": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/schema.json" }, - "ldContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld", - "sourceFiles": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-bblock/", + "sourceLdContext": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/context.jsonld", + "sourceSchema": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/schema.json", + "sourceFiles": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/_sources/mod-dcat-ap-bblock/", "validationPassed": false, - "testOutputs": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/build/tests/bbr/template/mod-dcat-bblock/", + "testOutputs": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/build/tests/bbr/template/mod-dcat-ap-bblock/", "documentation": { - "json-full": { - "mediatype": "application/json", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/json-full/bbr/template/mod-dcat-bblock/index.json" - }, "markdown": { "mediatype": "text/markdown", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/markdown/bbr/template/mod-dcat-bblock/index.md" + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/markdown/bbr/template/mod-dcat-ap-bblock/index.md" + }, + "json-full": { + "mediatype": "application/json", + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/json-full/bbr/template/mod-dcat-ap-bblock/index.json" }, "slate": { "mediatype": "text/html", - "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/slate-build/bbr/template/mod-dcat-bblock/" + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/generateddocs/slate-build/bbr/template/mod-dcat-ap-bblock/" + }, + "bblocks-viewer": { + "mediatype": "text/html", + "url": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/bblock/ogc.bbr.template.mod-dcat-ap-bblock" } } } - ], - "baseURL": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/", - "validationReport": "https://github.com/FAIR-IMPACT/MOD-DCAT-profile/blob/master/build/tests/report.html" + ] } \ No newline at end of file diff --git a/build/tests/bbr/template/mod-dcat-bblock/_report.json b/build/tests/bbr/template/mod-dcat-ap-bblock/_report.json similarity index 76% rename from build/tests/bbr/template/mod-dcat-bblock/_report.json rename to build/tests/bbr/template/mod-dcat-ap-bblock/_report.json index a2875d6..0b24937 100644 --- a/build/tests/bbr/template/mod-dcat-bblock/_report.json +++ b/build/tests/bbr/template/mod-dcat-ap-bblock/_report.json @@ -1,20 +1,20 @@ { - "title": "Validation report for ogc.bbr.template.mod-dcat-bblock - MOD-DCAT-Profile", + "title": "Validation report for ogc.bbr.template.mod-dcat-ap-bblock - MOD-DCAT-Profile", "bblockName": "MOD-DCAT-Profile", - "bblockId": "ogc.bbr.template.mod-dcat-bblock", - "generated": "2024-01-02T16:05:50.222757+00:00", + "bblockId": "ogc.bbr.template.mod-dcat-ap-bblock", + "generated": "2024-02-26T12:02:33.278421+00:00", "result": false, "items": [ { "source": { "type": "EXAMPLE", "requireFail": false, - "filename": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-bblock/example_1_1.json", + "filename": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.json", "exampleIndex": 1, "snippetIndex": 1, "language": "json" }, - "result": true, + "result": false, "sections": [ { "name": "GENERAL", @@ -61,9 +61,11 @@ }, { "op": "validation", - "result": true, - "isError": false, - "message": "Validation passed" + "result": false, + "exception": "ValidationError", + "errorMessage": "'dcat:landingPage' is a required property", + "isError": true, + "message": "ValidationError: 'dcat:landingPage' is a required property\n\nFailed validating 'required' in schema:\n {'properties': {'dcat:landingPage': {'type': 'string'},\n 'dct:title': {'type': 'string'},\n 'mod:acronym': {'type': 'string'}},\n 'required': ['mod:acronym', 'dct:title', 'dcat:landingPage'],\n 'type': 'object'}\n\nOn instance:\n {'dct:title': 'my semantic artefact', 'mod:acronym': 'mySA'}" } ] }, @@ -93,7 +95,7 @@ "source": { "type": "EXAMPLE", "requireFail": false, - "filename": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-bblock/example_1_2.json", + "filename": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.json", "exampleIndex": 1, "snippetIndex": 2, "language": "json" @@ -149,7 +151,7 @@ "exception": "ValidationError", "errorMessage": "'dct:title' is a required property", "isError": true, - "message": "ValidationError: 'dct:title' is a required property\n\nFailed validating 'required' in schema:\n {'properties': {'dct:title': {'type': 'string'},\n 'mod:acronym': {'type': 'string'}},\n 'required': ['mod:acronym', 'dct:title'],\n 'type': 'object'}\n\nOn instance:\n {'description': 'my semantic artefact', 'mod:acronym': 'mySA'}" + "message": "ValidationError: 'dct:title' is a required property\n\nFailed validating 'required' in schema:\n {'properties': {'dcat:landingPage': {'type': 'string'},\n 'dct:title': {'type': 'string'},\n 'mod:acronym': {'type': 'string'}},\n 'required': ['mod:acronym', 'dct:title', 'dcat:landingPage'],\n 'type': 'object'}\n\nOn instance:\n {'description': 'my semantic artefact', 'mod:acronym': 'mySA'}" } ] }, @@ -179,7 +181,7 @@ "globalErrors": {}, "counts": { "total": 2, - "passed": 1, - "failed": 1 + "passed": 0, + "failed": 2 } } \ No newline at end of file diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_1.json b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.json similarity index 100% rename from build/tests/bbr/template/mod-dcat-bblock/example_1_1.json rename to build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.json diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_1.jsonld b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.jsonld similarity index 67% rename from build/tests/bbr/template/mod-dcat-bblock/example_1_1.jsonld rename to build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.jsonld index 6b33212..24223dc 100644 --- a/build/tests/bbr/template/mod-dcat-bblock/example_1_1.jsonld +++ b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.jsonld @@ -1,5 +1,5 @@ { "mod:acronym": "mySA", "dct:title": "my semantic artefact", - "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld" + "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld" } \ No newline at end of file diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_1.ttl b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.ttl similarity index 100% rename from build/tests/bbr/template/mod-dcat-bblock/example_1_1.ttl rename to build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.ttl diff --git a/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.validation_failed.txt b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.validation_failed.txt new file mode 100644 index 0000000..dc69300 --- /dev/null +++ b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_1.validation_failed.txt @@ -0,0 +1,26 @@ +Validation report for ogc.bbr.template.mod-dcat-ap-bblock - MOD-DCAT-Profile +Generated 2024-02-26T12:02:33.274850+00:00 +=== Files === +Using example_1_1.json from examples +JSON-LD context is present - uplifting +Output JSON-LD example_1_1.jsonld created +Output Turtle example_1_1.ttl created +=== End Files === + +=== JSON Schema === +Using the following JSON Schema: #/$defs/mod:SemanticArtefact + +** Validation error ** +ValidationError: 'dcat:landingPage' is a required property + +Failed validating 'required' in schema: + {'properties': {'dcat:landingPage': {'type': 'string'}, + 'dct:title': {'type': 'string'}, + 'mod:acronym': {'type': 'string'}}, + 'required': ['mod:acronym', 'dct:title', 'dcat:landingPage'], + 'type': 'object'} + +On instance: + {'dct:title': 'my semantic artefact', 'mod:acronym': 'mySA'} +=== End JSON Schema === + diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_2.json b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.json similarity index 100% rename from build/tests/bbr/template/mod-dcat-bblock/example_1_2.json rename to build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.json diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_2.jsonld b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.jsonld similarity index 68% rename from build/tests/bbr/template/mod-dcat-bblock/example_1_2.jsonld rename to build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.jsonld index 7d3968a..82515db 100644 --- a/build/tests/bbr/template/mod-dcat-bblock/example_1_2.jsonld +++ b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.jsonld @@ -1,5 +1,5 @@ { "mod:acronym": "mySA", "description": "my semantic artefact", - "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-bblock/context.jsonld" + "@context": "https://FAIR-IMPACT.github.io/MOD-DCAT-profile/build/annotated/bbr/template/mod-dcat-ap-bblock/context.jsonld" } \ No newline at end of file diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_2.ttl b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.ttl similarity index 100% rename from build/tests/bbr/template/mod-dcat-bblock/example_1_2.ttl rename to build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.ttl diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_2.validation_failed.txt b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.validation_failed.txt similarity index 65% rename from build/tests/bbr/template/mod-dcat-bblock/example_1_2.validation_failed.txt rename to build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.validation_failed.txt index ee8997d..38db081 100644 --- a/build/tests/bbr/template/mod-dcat-bblock/example_1_2.validation_failed.txt +++ b/build/tests/bbr/template/mod-dcat-ap-bblock/example_1_2.validation_failed.txt @@ -1,5 +1,5 @@ -Validation report for ogc.bbr.template.mod-dcat-bblock - MOD-DCAT-Profile -Generated 2024-01-02T16:05:50.222703+00:00 +Validation report for ogc.bbr.template.mod-dcat-ap-bblock - MOD-DCAT-Profile +Generated 2024-02-26T12:02:33.278369+00:00 === Files === Using example_1_2.json from examples JSON-LD context is present - uplifting @@ -14,9 +14,10 @@ Using the following JSON Schema: #/$defs/mod:SemanticArtefact ValidationError: 'dct:title' is a required property Failed validating 'required' in schema: - {'properties': {'dct:title': {'type': 'string'}, + {'properties': {'dcat:landingPage': {'type': 'string'}, + 'dct:title': {'type': 'string'}, 'mod:acronym': {'type': 'string'}}, - 'required': ['mod:acronym', 'dct:title'], + 'required': ['mod:acronym', 'dct:title', 'dcat:landingPage'], 'type': 'object'} On instance: diff --git a/build/tests/bbr/template/mod-dcat-bblock/example_1_1.validation_passed.txt b/build/tests/bbr/template/mod-dcat-bblock/example_1_1.validation_passed.txt deleted file mode 100644 index 3627bb4..0000000 --- a/build/tests/bbr/template/mod-dcat-bblock/example_1_1.validation_passed.txt +++ /dev/null @@ -1,14 +0,0 @@ -Validation report for ogc.bbr.template.mod-dcat-bblock - MOD-DCAT-Profile -Generated 2024-01-02T16:05:50.219184+00:00 -=== Files === -Using example_1_1.json from examples -JSON-LD context is present - uplifting -Output JSON-LD example_1_1.jsonld created -Output Turtle example_1_1.ttl created -=== End Files === - -=== JSON Schema === -Using the following JSON Schema: #/$defs/mod:SemanticArtefact -Validation passed -=== End JSON Schema === - diff --git a/build/tests/report.html b/build/tests/report.html index a941230..1e0319b 100644 --- a/build/tests/report.html +++ b/build/tests/report.html @@ -26,7 +26,7 @@

      Building blocks validation report

      - Generated at 2024-01-02T16:05:50.234925+00:00 + Generated at 2024-02-26T12:02:33.291180+00:00

      Number of passing building blocks: 0 / 1 (0%)

      @@ -35,24 +35,24 @@

      Building blocks validation report

      Collapse all
      -
      +

      - Test passed: 1 / 2 + Test passed: 0 / 2

      @@ -64,10 +64,10 @@

      Details - example_1_1.json + example_1_1.json Example
      - Passed + Failed

      @@ -79,7 +79,17 @@

      Output Turtle example_1_1.ttl created
      JSON Schema
      Using the following JSON Schema: #/$defs/mod:SemanticArtefact
      -
      Validation passed
      +
      ValidationError: 'dcat:landingPage' is a required property + +Failed validating 'required' in schema: + {'properties': {'dcat:landingPage': {'type': 'string'}, + 'dct:title': {'type': 'string'}, + 'mod:acronym': {'type': 'string'}}, + 'required': ['mod:acronym', 'dct:title', 'dcat:landingPage'], + 'type': 'object'} + +On instance: + {'dct:title': 'my semantic artefact', 'mod:acronym': 'mySA'}

      @@ -94,7 +104,7 @@

      Details - example_1_2.json + example_1_2.json Example
      Failed @@ -112,9 +122,10 @@

      ValidationError: 'dct:title' is a required property Failed validating 'required' in schema: - {'properties': {'dct:title': {'type': 'string'}, + {'properties': {'dcat:landingPage': {'type': 'string'}, + 'dct:title': {'type': 'string'}, 'mod:acronym': {'type': 'string'}}, - 'required': ['mod:acronym', 'dct:title'], + 'required': ['mod:acronym', 'dct:title', 'dcat:landingPage'], 'type': 'object'} On instance: