query-b6dfa88143b960f2f7dece8362590937

rq turtle/ttl

Informations privées sur les participants au Prix de Lausanne

SELECT ?item ?itemLabel ?genreLabel ?employerLabel ?dateofbirth ?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 } . OPTIONAL { ?item wdt:P108 ?employer } . # afficher l'employeur si connu

SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,ja,es,fr,en,[AUTO_Language]" . }

}

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 ?employerLabel ?dateofbirth ?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 } .
    OPTIONAL { ?item wdt:P108 ?employer } .   # afficher l'employeur si connu

    SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,ja,es,fr,en,[AUTO_Language]" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?dateofbirth"):::projected v4("?dateofdeath"):::projected v6("?employer") v2("?genre") v1("?item"):::projected v5("?spouse") c14(["ru,ja,es,fr,en,#91;AUTO_Language#93;"]):::literal c12(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri 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 optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P108".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end