query-a9cd3886a8157adb0a189c34b8d8c4dc

rq turtle/ttl

requête permettant de lister les direct-rice-eur-s artistique comme fonction dans employeur. SELECT ?itemLabel ?organisationLabel ?remplaceLabel ?début ?fin ?remplacéparLabel ?item WHERE { ?item wdt:P31 wd:Q5 ; # L'élément est un humain p:P108 ?employeur . ?employeur ps:P108 ?organisation ; pq:P39 wd:Q706364 . #directeur artistique optional {?employeur pq:P580 ?début .} #a commencé optional {?employeur pq:P582 ?fin .} #a terminé optional {?employeur pq:P1365 ?remplace .} #a remplacé optional {?employeur pq:P1366 ?remplacépar .} #a été remplacé par SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

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#>
#requête permettant de lister les direct-rice-eur-s artistique comme fonction dans employeur.
SELECT ?itemLabel ?organisationLabel ?remplaceLabel ?début ?fin ?remplacéparLabel ?item
WHERE 
{
  ?item wdt:P31 wd:Q5 ;  # L'élément est un humain
        p:P108 ?employeur .
  ?employeur ps:P108 ?organisation ;
             pq:P39 wd:Q706364 . #directeur artistique
  optional {?employeur pq:P580 ?début .} #a commencé
  optional {?employeur pq:P582 ?fin  .} #a terminé
  optional {?employeur pq:P1365 ?remplace .} #a remplacé
  optional {?employeur pq:P1366 ?remplacépar .} #a été remplacé par
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?début"):::projected v2("?employeur") v5("?fin"):::projected v1("?item"):::projected v3("?organisation") v6("?remplace") v7("?remplacépar") c12(["bd:serviceParam"]):::iri c6(["wd:Q706364"]):::iri c2(["wd:Q5"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"p:direct/P31"--> c2 v1 --"p:P108"--> v2 v2 --"p:statement/P108"--> v3 v2 --"p:qualifier/P39"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P580".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P582".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P1365".-> v6 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P1366".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end