query-d2d41385e9b70bf59b5205cb8d617333

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 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 DISTINCT ?item ?itemLabel ?naissance ?archives ?archivesLabel ?archivesDescription ?inventaire ?filmLabel ?recompenseLabel 
{
  ?item wdt:P106 wd:Q2526255; #un élément dont l'une des occupations est d'être un réalisateur.
        wdt:P569 ?naissance. #date de naissance
  OPTIONAL {?item p:P485 ?statement. 
            ?statement ps:P485 ?archives. #option avoir déposé ses archives dans une institution
            OPTIONAL {?statement pq:P217 ?inventaire.} #option avoir pour qualificatif un numéro d'inventaire.
           }
  FILTER (year(?naissance) > 1920).#être né après 1920
  FILTER (year(?naissance) < 1930).#être né avant 1930
  ?film wdt:P166 ?recompense. #un film ayant reçu une récompense.
  ?film wdt:P57 ?item. #que ce film aille été réalisé par l'élément recherché plus haut.
  ?recompense wdt:P31 wd:Q28444913. #que la récompense soit attribuée par le Festival de Cannes.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,it". }
}
ORDER BY DESC(?archivesLabel) #trier par ordre décroissant de titre d'institution

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?archives"):::projected v1("?archivesLabel"):::projected v7("?film") v6("?inventaire"):::projected v3("?item"):::projected v2("?naissance"):::projected v8("?recompense") v4("?statement") c14(["bd:serviceParam"]):::iri c4(["wd:Q2526255"]):::iri c12(["wd:Q28444913"]):::iri c16(["#91;AUTO_LANGUAGE#93;,en,de,it"]):::literal f0[["year-from-dateTime(?naissance) < '1930^^xsd:integer'"]] f0 --> v2 f1[["year-from-dateTime(?naissance) > '1920^^xsd:integer'"]] f1 --> v2 v3 --"p:direct/P106"--> c4 v3 --"p:direct/P569"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:P485".-> v4 v4 --"p:statement/P485"--> v5 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P217".-> v6 end end v7 --"p:direct/P166"--> v8 v7 --"p:direct/P57"--> v3 v8 --"p:direct/P31"--> c12 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end