diff --git a/CHANGELOG.md b/CHANGELOG.md index 21e87d6b..c6bba4e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,12 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - A favicon (#188). - A cache to remember the entire result table (useful when scrolling through pages of a lengthy result table) (#193). +- configs/oslo-kg: two class-related queries. ### Changed - Using new verification library v0.2.0 (#184). - Refactoring, avoiding the usage of an internal, undocumented react-admin component (#185). - Removed the loading indicator / refresh button in the appbar (#195). +- OSLO KG config: use smaller datasets for queries. ### Fixed diff --git a/main/configs/oslo-kg/config.json b/main/configs/oslo-kg/config.json index 0cf3f0b3..161f91b0 100644 --- a/main/configs/oslo-kg/config.json +++ b/main/configs/oslo-kg/config.json @@ -61,10 +61,10 @@ { "id": "104", "queryLocation": "all-aps-that-use-a-specific-property.rq", - "name": "All application profiles that use a specific-property", + "name": "All application profiles that use a specific property", "comunicaContext": { "sources": [ - "https://raw.githubusercontent.com/KNowledgeOnWebScale/data-vlaanderen-bundled-rdf/refs/heads/main/bundle.ttl" + "https://raw.githubusercontent.com/KNowledgeOnWebScale/data-vlaanderen-bundled-rdf/refs/heads/main/predicates-ap.ttl" ] }, "indirectVariables": { @@ -77,7 +77,33 @@ "name": "All properties used by a specific application profile", "comunicaContext": { "sources": [ - "https://raw.githubusercontent.com/KNowledgeOnWebScale/data-vlaanderen-bundled-rdf/refs/heads/main/bundle.ttl" + "https://raw.githubusercontent.com/KNowledgeOnWebScale/data-vlaanderen-bundled-rdf/refs/heads/main/predicates-ap.ttl" + ] + }, + "indirectVariables": { + "queryLocations": ["variableQueries/ap.rq"] + } + }, + { + "id": "106", + "queryLocation": "all-aps-that-use-a-specific-class.rq", + "name": "All application profiles that use a specific class", + "comunicaContext": { + "sources": [ + "https://raw.githubusercontent.com/KNowledgeOnWebScale/data-vlaanderen-bundled-rdf/refs/heads/main/classes-ap.ttl" + ] + }, + "indirectVariables": { + "queryLocations": ["variableQueries/class-in-ap.rq"] + } + }, + { + "id": "107", + "queryLocation": "all-classes-used-by-a-specific-ap.rq", + "name": "All classes used by a specific application profile", + "comunicaContext": { + "sources": [ + "https://raw.githubusercontent.com/KNowledgeOnWebScale/data-vlaanderen-bundled-rdf/refs/heads/main/classes-ap.ttl" ] }, "indirectVariables": { diff --git a/main/configs/oslo-kg/public/queries/all-aps-that-use-a-specific-class.rq b/main/configs/oslo-kg/public/queries/all-aps-that-use-a-specific-class.rq new file mode 100644 index 00000000..208433fe --- /dev/null +++ b/main/configs/oslo-kg/public/queries/all-aps-that-use-a-specific-class.rq @@ -0,0 +1,11 @@ +PREFIX shacl: +PREFIX rdfs: + +SELECT DISTINCT ?ap WHERE { + ?shape a shacl:NodeShape; + shacl:targetClass $class. + + ?ap rdfs:member ?shape. + + rdfs:member ?ap. +} diff --git a/main/configs/oslo-kg/public/queries/all-classes-used-by-a-specific-ap.rq b/main/configs/oslo-kg/public/queries/all-classes-used-by-a-specific-ap.rq new file mode 100644 index 00000000..c8f3dc29 --- /dev/null +++ b/main/configs/oslo-kg/public/queries/all-classes-used-by-a-specific-ap.rq @@ -0,0 +1,9 @@ +PREFIX shacl: +PREFIX rdfs: + +SELECT DISTINCT ?class WHERE { + ?shape a shacl:NodeShape; + shacl:targetClass ?class. + + $ap rdfs:member ?shape. +} diff --git a/main/configs/oslo-kg/public/queries/variableQueries/class-in-ap.rq b/main/configs/oslo-kg/public/queries/variableQueries/class-in-ap.rq new file mode 100644 index 00000000..0e0976d4 --- /dev/null +++ b/main/configs/oslo-kg/public/queries/variableQueries/class-in-ap.rq @@ -0,0 +1,12 @@ +PREFIX shacl: +PREFIX rdfs: + +SELECT DISTINCT ?class +WHERE { + ?shape1 a shacl:NodeShape; + shacl:targetClass ?class. + + ?ap1 rdfs:member ?shape1. + + rdfs:member ?ap1. +}