Skip to content

Commit

Permalink
Updating examples and tests
Browse files Browse the repository at this point in the history
The examples should pass validation.
Added test profiles
  • Loading branch information
antony-wilson committed Apr 16, 2024
1 parent bfe3def commit 98ac27b
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 17 deletions.
6 changes: 3 additions & 3 deletions _sources/mod-dcat-ap-bblock/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"register": "ogc-building-block-register",
"version": "0.1",
"dateOfLastChange": "2023-12-12",
"link": "https://github.com/opengeospatial/bblock-template",
"link": "https://github.com/FAIR-IMPACT/MOD-DCAT-AP-profile/",
"sources": [
{
"title": "Sample source document",
"link": "https://example.com/sources/1"
"title": "MOD Ontology",
"link": "https://github.com/fair-IMPACT/mod"
}
],
"maturity": "mature",
Expand Down
2 changes: 1 addition & 1 deletion _sources/mod-dcat-ap-bblock/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
schema-ref: "#/$defs/mod:SemanticArtefact"
- language: json
ref: examples/mod-ex2.json
schema-ref: "#/$defs/mod:SemanticArtefact"
schema-ref: "#/$defs/mod:SemanticArtefactDistribution"
9 changes: 3 additions & 6 deletions _sources/mod-dcat-ap-bblock/examples/mod-ex1.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"mod:acronym": "mySA",
"dct:title": "my semantic artefact"
}




"dct:title": "my semantic artefact",
"dcat:landingPage": "https://example.org"
}
10 changes: 3 additions & 7 deletions _sources/mod-dcat-ap-bblock/examples/mod-ex2.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"mod:acronym": "mySA",
"description": "my semantic artefact"
}




"mod:hasSyntax": "ttl",
"mod:hasRepresentationLanguage": "en"
}
4 changes: 4 additions & 0 deletions _sources/mod-dcat-ap-bblock/tests/no-acronym-fail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dct:title": "my semantic artefact",
"dcat:landingPage": "https://example.org"
}
4 changes: 4 additions & 0 deletions _sources/mod-dcat-ap-bblock/tests/no-landingpage-fail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"mod:acronym": "mySA",
"dct:title": "my semantic artefact"
}
4 changes: 4 additions & 0 deletions _sources/mod-dcat-ap-bblock/tests/no-title-fail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"mod:acronym": "mySA",
"dcat:landingPage": "https://example.org"
}
5 changes: 5 additions & 0 deletions _sources/mod-dcat-ap-bblock/tests/pass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"mod:acronym": "mySA",
"dct:title": "my semantic artefact",
"dcat:landingPage": "https://example.org"
}

0 comments on commit 98ac27b

Please sign in to comment.