From 23f87d9f0a939de2515f685f6636bbd7f0f5b426 Mon Sep 17 00:00:00 2001 From: Gregory Saumier-Finch Date: Wed, 2 Oct 2024 12:40:21 -0400 Subject: [PATCH] Create quebecdanse-rqd-membres --- sparql/quebecdanse-rqd-membres | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 sparql/quebecdanse-rqd-membres diff --git a/sparql/quebecdanse-rqd-membres b/sparql/quebecdanse-rqd-membres new file mode 100644 index 0000000..fe8d32f --- /dev/null +++ b/sparql/quebecdanse-rqd-membres @@ -0,0 +1,38 @@ +# quebecdanse.org - membres du RQD + +PREFIX schema: +PREFIX wdt: +PREFIX rdfs: +PREFIX wd: +CONSTRUCT { + ?item wdt:P31 ?nature ; + a ?artsdata_type ; + schema:description ?description ; + schema:name ?itemLabel ; + schema:memberOf wd:Q71859269 ; + schema:url ?site . +} +WHERE { + { + SERVICE { + select distinct ?item ?nature ?itemLabel ?description ?artsdata_type where { + ?item wdt:P31 ?nature ; + rdfs:label ?itemLabel ; + schema:description ?description ; + wdt:P463 wd:Q3423698 . + OPTIONAL{ ?item wdt:P856 ?site .} + FILTER(CONTAINS(str(?string), "quebecdanse")) . + OPTIONAL { + ?item wdt:P31/wdt:P279* wd:Q43229 . + bind( schema:Organization as ?artsdata_type ) + } + OPTIONAL { + ?item wdt:P31/wdt:P279* wd:Q5 . + bind( schema:Person as ?artsdata_type ) + } + FILTER(LANG(?itemLabel) IN ("fr")). + FILTER(LANG(?description) IN ("fr")). + } + } + } +}