query-cc3eb066ccc0816e10faa69d2a96ba37

rq turtle/ttl

Requête plus propre des lauréats de l'Acfas Requête sans les articles wp

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?genderLabel ?itemDescription ?awardLabel (YEAR(?date) AS ?year) {
  VALUES ?award { wd:Q3404296 wd:Q2365303 wd:Q28869834 wd:Q3404842 wd:Q3404891 wd:Q3404993 
                  wd:Q3405049 wd:Q24928963 wd:Q3405011 wd:Q21658579 wd:Q3405354 } . #award: 10 Acfas awards
  ?item wdt:P31 wd:Q5;
        wdt:P21 ?gender;
        p:P166 ?awardStatement.
  ?awardStatement ps:P166 ?award.
  OPTIONAL { ?awardStatement pq:P585 ?date. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
GROUP BY ?item ?itemLabel ?genderLabel ?itemDescription ?award ?awardLabel ?date
ORDER BY ?genderLabel ?awardLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?award") v2("?awardLabel"):::projected v6("?awardStatement") v7("?date"):::projected v5("?gender") v1("?genderLabel"):::projected v4("?item"):::projected v8("?year") c8(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c10(["fr"]):::literal bind0[/VALUES ?award/] bind0-->v3 bind00(["wd:Q3404296"]) bind00 --> bind0 bind01(["wd:Q2365303"]) bind01 --> bind0 bind02(["wd:Q28869834"]) bind02 --> bind0 bind03(["wd:Q3404842"]) bind03 --> bind0 bind04(["wd:Q3404891"]) bind04 --> bind0 bind05(["wd:Q3404993"]) bind05 --> bind0 bind06(["wd:Q3405049"]) bind06 --> bind0 bind07(["wd:Q24928963"]) bind07 --> bind0 bind08(["wd:Q3405011"]) bind08 --> bind0 bind09(["wd:Q21658579"]) bind09 --> bind0 bind010(["wd:Q3405354"]) bind010 --> bind0 v4 --"p:direct/P31"--> c2 v4 --"p:direct/P21"--> v5 v4 --"p:P166"--> v6 v6 --"p:statement/P166"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v6 -."p:qualifier/P585".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"year-from-dateTime(?date)"/] v7 --o bind1 bind1 --as--o v8