query-37ba90ed6de341558271235d197e3142

rq turtle/ttl

Ottima query per iniziare (questa รจ la versione alla fine)

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 ?item ?itemLabel ?born_name ?itemDescription ?coniugeLabel ?datainizio ?image 
WHERE
{
  ?item wdt:P26 wd:Q76;   # coniuge di Barack Obama
  wdt:P18 ?image;   # Immagine
  wdt:P1477 ?born_name.   # nome di nascita
  wd:Q13133 p:P26 ?statement. 
  ?statement ps:P26 ?coniuge.   # ha coniuge
  ?statement pq:P580 ?datainizio.    # qualificatore data inizio (del matrimonio)

  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; v3("?born_name"):::projected v5("?coniuge") v6("?datainizio"):::projected v2("?image"):::projected v1("?item"):::projected v4("?statement") c5(["wd:Q13133"]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q76"]):::iri v1 --"p:direct/P26"--> c2 v1 --"p:direct/P18"--> v2 v1 --"p:direct/P1477"--> v3 c5 --"p:P26"--> v4 v4 --"p:statement/P26"--> v5 v4 --"p:qualifier/P580"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end