query-9da91693835a375b964d469026e0bab1

rq turtle/ttl

Informations privées sur les participants au Prix de Lausanne

SELECT ?item ?itemLabel ?genreLabel ?dateofbirthLabel ?dateofdeath ?spouseLabel # affiche les résultats de ces labels (en langage id Q ou en langage humain si on ajoute Label au label), on peut aussi préciser ici les item

WHERE { # Item Property Value Stop ?item wdt:P31 wd:Q5 . # ajouter instance of human { ?item wdt:P1344 wd:Q673014 . } # participant à Prix de Lausanne UNION { ?item wdt:P2522 wd:Q673014 . } # victoire à Prix de Lausanne ?item wdt:P21 ?genre OPTIONAL { ?item wdt:P569 ?dateofbirth } . OPTIONAL { ?item wdt:P570 ?dateofdeath } . OPTIONAL { ?item wdt:P26 ?spouse } .

SERVICE wikibase:label { bd:serviceParam wikibase:language "fr, en, [AUTO_Language]" . } # affiche résultats d'abord en espagnol, puis en français, si non en anglais

}

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Informations privées sur les participants au Prix de Lausanne

SELECT ?item ?itemLabel ?genreLabel ?dateofbirthLabel ?dateofdeath ?spouseLabel  # affiche les résultats de ces labels (en langage id Q ou en langage humain si on ajoute Label au label), on peut aussi préciser ici les item

WHERE
{
    # Item Property Value Stop
    ?item wdt:P31 wd:Q5 .  # ajouter instance of human
      { ?item wdt:P1344 wd:Q673014 . } # participant à Prix de Lausanne
    UNION
      { ?item wdt:P2522 wd:Q673014 . } # victoire à Prix de Lausanne
    ?item wdt:P21 ?genre
    OPTIONAL { ?item wdt:P569 ?dateofbirth } .
    OPTIONAL { ?item wdt:P570 ?dateofdeath } .
    OPTIONAL { ?item wdt:P26 ?spouse } .   

    SERVICE wikibase:label { bd:serviceParam wikibase:language "fr, en, [AUTO_Language]" . } # affiche résultats d'abord en espagnol, puis en français, si non en anglais
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?dateofbirth") v4("?dateofdeath"):::projected v2("?genre") v1("?item"):::projected v5("?spouse") c11(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c13(["fr, en, #91;AUTO_Language#93;"]):::literal c4(["wd:Q673014"]):::iri v1 --"wdt:P31"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P2522"--> c4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1344"--> c4 end union0r <== or ==> union0l end v1 --"wdt:P21"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P569".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P570".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P26".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end