Skip to content

Commit

Permalink
Building blocks postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
agbeltran committed Feb 26, 2024
1 parent 48c89ba commit bfe3def
Show file tree
Hide file tree
Showing 26 changed files with 373 additions and 234 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
path
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
path @id
/mod:acronym
/dct:title
/dcat:landingPage
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -11,11 +11,15 @@
},
"dct:title": {
"type": "string"
},
"dcat:landingPage": {
"type": "string"
}
},
"required": [
"mod:acronym",
"dct:title"
"dct:title",
"dcat:landingPage"
]
},
"mod:SemanticArtefactDistribution": {
Expand All @@ -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": {
Expand All @@ -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"
}
]
}
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
},
"dct:title": {
"type": "string"
},
"dcat:landingPage": {
"type": "string"
}
},
"required": [
"mod:acronym",
"dct:title"
"dct:title",
"dcat:landingPage"
]
},
"mod:SemanticArtefactDistribution": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

This file was deleted.

221 changes: 139 additions & 82 deletions build/bblocks.jsonld
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand All @@ -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"
]
}
]
Expand Down
Loading

0 comments on commit bfe3def

Please sign in to comment.