-
Notifications
You must be signed in to change notification settings - Fork 15
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
8 changed files
with
95 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
22 changes: 22 additions & 0 deletions
22
shacl-sparql-query-gen/target-override-example/eli-ep_parliamentary-questions_2019.ttl
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,22 @@ | ||
@prefix questions: <https://data.europarl.europa.eu/def/parliamentary-questions#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
|
||
questions:Question sh:target questions:Question-target . | ||
|
||
questions:Question-target sh:select """PREFIX eli: <http://data.europa.eu/eli/ontology#> | ||
PREFIX resource-type: <http://publications.europa.eu/resource/authority/resource-type/> | ||
SELECT ?this | ||
WHERE { | ||
?this eli:work_type ?type . | ||
VALUES ?type { | ||
# all narrower terms of QUEST_EP | ||
resource-type:INTERPELL_G | ||
resource-type:INTERPELL_K | ||
resource-type:QUEST_ORAL | ||
resource-type:QUEST_PRIORITY | ||
resource-type:QUEST_TIME | ||
resource-type:QUEST_WRITTEN | ||
} | ||
# additional criteria to select only questions from a certain year | ||
?this <http://data.europa.eu/eli/ontology#date_document> ?date . FILTER(year(?date) = 2019) | ||
}""" . |
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