query-a3911801fbf566fabc356d6d5c2e20e0

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
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 ?date (GROUP_CONCAT(DISTINCT ?language; separator=", ") AS ?languages) {
  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. }
  OPTIONAL {
    ?article a schema:Article;
               schema:about ?item;
               schema:inLanguage ?language.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
GROUP BY ?item ?itemLabel ?genderLabel ?itemDescription ?award ?awardLabel ?date
ORDER BY ?award

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?article") v2("?award") v4("?awardStatement") v5("?date"):::projected v3("?gender") v2("?item"):::projected v7("?language"):::projected v8("?languages") c8(["schema:Article"]):::iri c14(["fr"]):::literal c12(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri bind0[/VALUES ?award/] bind0-->v2 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 v2 --"p:direct/P31"--> c2 v2 --"p:direct/P21"--> v3 v2 --"p:P166"--> v4 v4 --"p:statement/P166"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P585".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v6 -."a".-> c8 v6 --"schema:about"--> v2 v6 --"schema:inLanguage"--> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end bind2[/"?language"/] v7 --o bind2 bind2 --as--o v8