query-2dccaf1ad9df554e6b43fe80c8e6282f
Requête avec les articles wp Requête des lauréats de l'Acfas incluant les articles Wikipédia
Use at
- https://query.wikidata.org/sparql
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 (YEAR(?date) AS ?year) (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 ?genderLabel ?awardLabel
Query found at
- https://www.wikidata.org/wiki/User:Brochon99/M%C3%A9moire
- https://www.wikidata.org/wiki/User_talk:Thekidpossum
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?article")
v3("?award")
v2("?awardLabel"):::projected
v6("?awardStatement")
v7("?date"):::projected
v5("?gender")
v1("?genderLabel"):::projected
v4("?item"):::projected
v9("?language"):::projected
v11("?languages")
v10("?year")
c8(["schema:Article"]):::iri
c14(["fr"]):::literal
c12(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
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 optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v8 -."a".-> c8
v8 --"schema:about"--> v4
v8 --"schema:inLanguage"--> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind2[/"year-from-dateTime(?date)"/]
v7 --o bind2
bind2 --as--o v10
bind3[/"?language"/]
v9 --o bind3
bind3 --as--o v11