Skip to content

Commit

Permalink
Fix names and swap buildings-present and roads-present
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jan 21, 2025
1 parent f88502a commit be0fa50
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions _sources/profiles/common/buildings-present/bblock.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "Roads present",
"abstract": "Profile that requires that roads are present in a dataset",
"name": "Buildings present",
"abstract": "Profile that requires that buildings are present in a dataset",
"status": "stable",
"dateTimeAddition": "2024-11-10T00:00:00Z",
"dateTimeAddition": "2024-12-12T00:00:00Z",
"itemClass": "schema",
"version": "1.0",
"dateOfLastChange": "2024-11-18",
"dateOfLastChange": "2025-01-07",
"tags": ["chek-validation-profile"]
}
10 changes: 5 additions & 5 deletions _sources/profiles/common/buildings-present/rules.shacl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@prefix : <urn:chek:profiles/roads-present#> .
@prefix : <urn:chek:profiles/buildings-present#> .
@prefix chek: <urn:chek:vocab/> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down Expand Up @@ -35,19 +35,19 @@ ex:
] ;
.

:RoadsPresent
:BuildingsPresent
a sh:NodeShape ;
sh:targetNode chek:document ;
sh:not [
sh:sparql [
sh:prefixes ex: ;
sh:select """
SELECT $this (rdf:type as ?path) (city:Road as ?value) WHERE {
?s a city:Road
SELECT $this (rdf:type as ?path) (city:Building as ?value) WHERE {
?s a city:Building
} LIMIT 1
""" ;
] ;
] ;
sh:message "Dataset contains no Road objects" ;
sh:message "Dataset contains no Building objects" ;
sh:severity sh:Violation ;
.
8 changes: 4 additions & 4 deletions _sources/profiles/common/roads-present/bblock.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "Buildings present",
"abstract": "Profile that requires that buildings are present in a dataset",
"name": "Roads present",
"abstract": "Profile that requires that roads are present in a dataset",
"status": "stable",
"dateTimeAddition": "2024-12-12T00:00:00Z",
"dateTimeAddition": "2024-11-10T00:00:00Z",
"itemClass": "schema",
"version": "1.0",
"dateOfLastChange": "2025-01-07",
"dateOfLastChange": "2024-11-18",
"tags": ["chek-validation-profile"]
}
2 changes: 1 addition & 1 deletion _sources/profiles/common/roads-present/data.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .

chekp:roads-present a prof:Profile, chekp:Profile ;
dct:title "Buildings present" ;
dct:title "Roads present" ;
dct:description "This profile checks that roads are present in at least one dataset" ;
dct:hasVersion "0.1" ;
prof:isProfileOf chekp:chek ;
Expand Down
10 changes: 5 additions & 5 deletions _sources/profiles/common/roads-present/rules.shacl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@prefix : <urn:chek:profiles/buildings-present#> .
@prefix : <urn:chek:profiles/roads-present#> .
@prefix chek: <urn:chek:vocab/> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down Expand Up @@ -35,19 +35,19 @@ ex:
] ;
.

:BuildingsPresent
:RoadsPresent
a sh:NodeShape ;
sh:targetNode chek:document ;
sh:not [
sh:sparql [
sh:prefixes ex: ;
sh:select """
SELECT $this (rdf:type as ?path) (city:Building as ?value) WHERE {
?s a city:Building
SELECT $this (rdf:type as ?path) (city:Road as ?value) WHERE {
?s a city:Road
} LIMIT 1
""" ;
] ;
] ;
sh:message "Dataset contains no Building objects" ;
sh:message "Dataset contains no Road objects" ;
sh:severity sh:Violation ;
.
4 changes: 2 additions & 2 deletions _sources/profiles/czechia/prague/bblock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Lisbon profile",
"abstract": "Profile for the Lisbon municipality",
"name": "Prague profile",
"abstract": "Profile for the Prague (CZ) municipality",
"status": "stable",
"dateTimeAddition": "2024-12-20T00:00:00Z",
"itemClass": "schema",
Expand Down
2 changes: 1 addition & 1 deletion _sources/profiles/italy/ascoli-piceno/bblock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Ascoli Piceno profile",
"abstract": "Profile for the Ascoli Piceno municipality",
"abstract": "Profile for the Ascoli Piceno (IT) municipality",
"status": "stable",
"dateTimeAddition": "2024-11-10T00:00:00Z",
"itemClass": "schema",
Expand Down
4 changes: 2 additions & 2 deletions _sources/profiles/portugal/gaia/bblock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Lisbon profile",
"abstract": "Profile for the Lisbon municipality",
"name": "Vila Nova de Gaia profile",
"abstract": "Profile for the Vila Nova de Gaia (PT) municipality",
"status": "stable",
"dateTimeAddition": "2024-12-20T00:00:00Z",
"itemClass": "schema",
Expand Down
2 changes: 1 addition & 1 deletion _sources/profiles/portugal/lisbon/bblock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Lisbon profile",
"abstract": "Profile for the Lisbon municipality",
"abstract": "Profile for the Lisbon (PT) municipality",
"status": "stable",
"dateTimeAddition": "2024-12-20T00:00:00Z",
"itemClass": "schema",
Expand Down

0 comments on commit be0fa50

Please sign in to comment.