generated from opengeospatial/bblock-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
373 additions
and
105 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
build/annotated/bbr/examples/my-building-block/_visited_properties.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
path @id | ||
/properties/a https://example.org/my-bb-model/a | ||
/properties/b https://example.org/my-bb-model/b |
31 changes: 31 additions & 0 deletions
31
build/annotated/bbr/examples/my-building-block/schema-oas3.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"x-defs": { | ||
"ogc.bbr.examples.my-building-block": { | ||
"description": "Schema for my building block", | ||
"type": "object", | ||
"properties": { | ||
"a": { | ||
"type": "string", | ||
"format": "uri", | ||
"x-jsonld-id": "https://example.org/my-bb-model/a", | ||
"x-jsonld-type": "@id" | ||
}, | ||
"b": { | ||
"type": "number", | ||
"x-jsonld-id": "https://example.org/my-bb-model/b" | ||
} | ||
}, | ||
"required": [ | ||
"a", | ||
"b" | ||
], | ||
"x-schema-version": "https://json-schema.org/draft/2020-12/schema", | ||
"x-schema-source": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema-oas3.0.json" | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema-oas3.0.json#/x-defs/ogc.bbr.examples.my-building-block" | ||
} | ||
] | ||
} |
20 changes: 20 additions & 0 deletions
20
build/annotated/bbr/examples/my-building-block/schema-oas3.0.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
x-defs: | ||
ogc.bbr.examples.my-building-block: | ||
description: Schema for my building block | ||
type: object | ||
properties: | ||
a: | ||
type: string | ||
format: uri | ||
x-jsonld-id: https://example.org/my-bb-model/a | ||
x-jsonld-type: '@id' | ||
b: | ||
type: number | ||
x-jsonld-id: https://example.org/my-bb-model/b | ||
required: | ||
- a | ||
- b | ||
x-schema-version: https://json-schema.org/draft/2020-12/schema | ||
x-schema-source: https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema-oas3.0.yaml | ||
allOf: | ||
- $ref: https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema-oas3.0.yaml#/x-defs/ogc.bbr.examples.my-building-block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 104 additions & 1 deletion
105
build/generateddocs/json-full/bbr/examples/my-building-block/index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,105 @@ | ||
|
||
{"itemIdentifier": "ogc.bbr.examples.my-building-block", "name": "My Building Block", "abstract": "This Building Block serves as a template to create new ones", "status": "invalid", "dateTimeAddition": "2023-04-05T00:00:00Z", "itemClass": "schema", "register": "ogc-building-block-register", "version": "0.1", "dateOfLastChange": "2023-04-05", "link": "https://github.com/opengeospatial/bblock-template", "sources": [{"title": "Sample source document", "link": "https://example.com/sources/1"}], "maturity": "mature", "scope": "unstable", "tags": ["templates"], "shaclRules": [], "schema": {"application/yaml": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema.yaml", "application/json": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema.json"}, "ldContext": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/context.jsonld", "sourceFiles": "https://ogcincubator.github.io/bblocks-examples/_sources/my-building-block/", "validationPassed": false, "testOutputs": "https://github.com/ogcincubator/bblocks-examples/blob/master/build/tests/bbr/examples/my-building-block/", "description": "## Qui hastarum tectus Cithaeron iuvabat\n\nLorem markdownum vestigia sanguine rursus undis, suspenderat meo mox conlegerat\ntemperat sucos. Est graves dant sentire sanguinis flores respondent testari.\n\n> Videri vias quid Ausoniae sua flores ante, reminiscitur fuit est. Semel\n> [hectora](http://silvaque.org/) peregrinaeque rudem exercent in, Troiana si\n> Asida instabilesque somno sed.\n\n## Iam vota cui dilataque peterem\n\nTinxit lumina lacer liquidarum Aiax si mergitur sed fueris capitisque **et\ncadit** contigerant rectum [ferar](http://prosternit.com/quoque.html) temperat.\nMonet caput adsensere Ityn furentibus gelidos.", "examples": [{"title": "This is an example with just a description and no code snippets.", "content": "This is the content of the example.\n\nIn **Markdown** format."}, {"title": "Examples can have content and/or code snippets.", "content": "The content of this example. ", "snippets": [{"language": "ttl", "code": "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n<http://example.com/my/resource> rdfs:label \"My Label\" .", "url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_2_1.ttl"}], "transforms": [{"type": "shacl", "input-language": "text/turtle", "output-language": "text/turtle", "ref": "transforms/sample.shacl", "code": "@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n\n<urn:example:LabelToDCTERMS>\n a sh:NodeShape ;\n sh:targetSubjectsOf rdfs:label ;\n sh:rule [\n a sh:SPARQLRule ;\n sh:construct \"\"\"\n prefix dcterms: <http://purl.org/dc/terms/>\n prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n CONSTRUCT {\n $this dcterms:title ?label\n } WHERE {\n $this rdfs:label ?label\n }\n \"\"\"\n ] ;\n.", "output-extension": "ttl", "idx": 0}]}, {"title": "Transforms can be performed on uplifted snippets", "snippets": [{"language": "json", "code": "{\n \"a\": 1,\n \"b\": 2\n}\n", "url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_3_1.json"}, {"language": "jsonld", "code": "{\n \"a\": 1,\n \"b\": 2,\n \"@context\": \"https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/context.jsonld\"\n}", "url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_3_1.jsonld"}, {"language": "ttl", "code": "@prefix ns1: <https://example.org/my-bb-model/> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n[] ns1:a 1 ;\n ns1:b 2 .\n\n", "url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_3_1.ttl"}], "transforms": [{"type": "jq", "input-language": "application/json", "output-language": "application/json", "code": ".b2 = .b * .b", "output-extension": "json", "idx": 0}, {"type": "shacl", "input-language": "text/turtle", "output-language": "text/turtle", "ref": "transforms/sample2.shacl", "code": "@prefix sh: <http://www.w3.org/ns/shacl#> .\n\n<urn:example:custom>\n a sh:NodeShape ;\n sh:targetSubjectsOf <https://example.org/my-bb-model/a> ;\n sh:rule [\n a sh:SPARQLRule ;\n sh:construct \"\"\"\n CONSTRUCT {\n $this <https://example.org/my-bb-model/c> ?c\n } WHERE {\n $this <https://example.org/my-bb-model/a> ?a .\n BIND(?a + 5 AS ?c)\n }\n \"\"\"\n ] ;\n.", "output-extension": "ttl", "idx": 1}]}], "annotatedSchema": "$schema: https://json-schema.org/draft/2020-12/schema\ndescription: Schema for my building block\ntype: object\nproperties:\n a:\n type: string\n format: uri\n x-jsonld-id: https://example.org/my-bb-model/a\n x-jsonld-type: '@id'\n b:\n type: number\n x-jsonld-id: https://example.org/my-bb-model/b\nrequired:\n- a\n- b\n", "gitRepository": "https://github.com/ogcincubator/bblocks-examples", "gitPath": "_sources/my-building-block"} | ||
|
||
{ | ||
"itemIdentifier": "ogc.bbr.examples.my-building-block", | ||
"name": "My Building Block", | ||
"abstract": "This Building Block serves as a template to create new ones", | ||
"status": "under-development", | ||
"dateTimeAddition": "2023-04-05T00:00:00Z", | ||
"itemClass": "schema", | ||
"register": "ogc-building-block-register", | ||
"version": "0.1", | ||
"dateOfLastChange": "2023-04-05", | ||
"link": "https://github.com/opengeospatial/bblock-template", | ||
"sources": [ | ||
{ | ||
"title": "Sample source document", | ||
"link": "https://example.com/sources/1" | ||
} | ||
], | ||
"maturity": "mature", | ||
"scope": "unstable", | ||
"tags": [ | ||
"templates" | ||
], | ||
"shaclRules": {}, | ||
"schema": { | ||
"application/yaml": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema.yaml", | ||
"application/json": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/schema.json" | ||
}, | ||
"ldContext": "https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/context.jsonld", | ||
"sourceFiles": "https://ogcincubator.github.io/bblocks-examples/_sources/my-building-block/", | ||
"validationPassed": false, | ||
"testOutputs": "https://github.com/ogcincubator/bblocks-examples/blob/master/build/tests/bbr/examples/my-building-block/", | ||
"description": "## Qui hastarum tectus Cithaeron iuvabat\n\nLorem markdownum vestigia sanguine rursus undis, suspenderat meo mox conlegerat\ntemperat sucos. Est graves dant sentire sanguinis flores respondent testari.\n\n> Videri vias quid Ausoniae sua flores ante, reminiscitur fuit est. Semel\n> [hectora](http://silvaque.org/) peregrinaeque rudem exercent in, Troiana si\n> Asida instabilesque somno sed.\n\n## Iam vota cui dilataque peterem\n\nTinxit lumina lacer liquidarum Aiax si mergitur sed fueris capitisque **et\ncadit** contigerant rectum [ferar](http://prosternit.com/quoque.html) temperat.\nMonet caput adsensere Ityn furentibus gelidos.", | ||
"examples": [ | ||
{ | ||
"title": "This is an example with just a description and no code snippets.", | ||
"content": "This is the content of the example.\n\nIn **Markdown** format." | ||
}, | ||
{ | ||
"title": "Examples can have content and/or code snippets.", | ||
"content": "The content of this example. ", | ||
"snippets": [ | ||
{ | ||
"language": "ttl", | ||
"code": "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n<http://example.com/my/resource> rdfs:label \"My Label\" .", | ||
"url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_2_1.ttl" | ||
} | ||
], | ||
"transforms": [ | ||
{ | ||
"type": "shacl", | ||
"input-language": "text/turtle", | ||
"output-language": "text/turtle", | ||
"ref": "transforms/sample.shacl", | ||
"code": "@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n\n<urn:example:LabelToDCTERMS>\n a sh:NodeShape ;\n sh:targetSubjectsOf rdfs:label ;\n sh:rule [\n a sh:SPARQLRule ;\n sh:construct \"\"\"\n prefix dcterms: <http://purl.org/dc/terms/>\n prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n CONSTRUCT {\n $this dcterms:title ?label\n } WHERE {\n $this rdfs:label ?label\n }\n \"\"\"\n ] ;\n.", | ||
"output-extension": "ttl", | ||
"idx": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Transforms can be performed on uplifted snippets", | ||
"snippets": [ | ||
{ | ||
"language": "json", | ||
"code": "{\n \"a\": 1,\n \"b\": 2\n}\n", | ||
"url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_3_1.json" | ||
}, | ||
{ | ||
"language": "jsonld", | ||
"code": "{\n \"a\": 1,\n \"b\": 2,\n \"@context\": \"https://ogcincubator.github.io/bblocks-examples/build/annotated/bbr/examples/my-building-block/context.jsonld\"\n}", | ||
"url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_3_1.jsonld" | ||
}, | ||
{ | ||
"language": "ttl", | ||
"code": "@prefix ns1: <https://example.org/my-bb-model/> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n[] ns1:a 1 ;\n ns1:b 2 .\n\n", | ||
"url": "https://ogcincubator.github.io/bblocks-examples/build/tests/bbr/examples/my-building-block/example_3_1.ttl" | ||
} | ||
], | ||
"transforms": [ | ||
{ | ||
"type": "jq", | ||
"input-language": "application/json", | ||
"output-language": "application/json", | ||
"code": ".b2 = .b * .b", | ||
"output-extension": "json", | ||
"idx": 0 | ||
}, | ||
{ | ||
"type": "shacl", | ||
"input-language": "text/turtle", | ||
"output-language": "text/turtle", | ||
"ref": "transforms/sample2.shacl", | ||
"code": "@prefix sh: <http://www.w3.org/ns/shacl#> .\n\n<urn:example:custom>\n a sh:NodeShape ;\n sh:targetSubjectsOf <https://example.org/my-bb-model/a> ;\n sh:rule [\n a sh:SPARQLRule ;\n sh:construct \"\"\"\n CONSTRUCT {\n $this <https://example.org/my-bb-model/c> ?c\n } WHERE {\n $this <https://example.org/my-bb-model/a> ?a .\n BIND(?a + 5 AS ?c)\n }\n \"\"\"\n ] ;\n.", | ||
"output-extension": "ttl", | ||
"idx": 1 | ||
} | ||
] | ||
} | ||
], | ||
"annotatedSchema": "$schema: https://json-schema.org/draft/2020-12/schema\ndescription: Schema for my building block\ntype: object\nproperties:\n a:\n type: string\n format: uri\n x-jsonld-id: https://example.org/my-bb-model/a\n x-jsonld-type: '@id'\n b:\n type: number\n x-jsonld-id: https://example.org/my-bb-model/b\nrequired:\n- a\n- b\n", | ||
"gitRepository": "https://github.com/ogcincubator/bblocks-examples", | ||
"gitPath": "_sources/my-building-block" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.