query-452187512b45fd399adc9035c657c98c

rq turtle/ttl

Chain graph

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#>
#defaultView:Graph
#title:Ancestors (fathers only) of Charles V - inspired from Wikidata Graph Builder
SELECT ?persona ?personaLabel ?padre ?padreLabel
WHERE {
  wd:Q32500 wdt:P22* ?persona .
  OPTIONAL { ?persona wdt:P22 ?padre } .
  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; v2("?padre"):::projected v1("?persona"):::projected c4(["bd:serviceParam"]):::iri c1(["wd:Q32500"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal c1 --"wdt:P22"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P22".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end