query-16e2b008ce17edeab71d453e94f09fd6

rq turtle/ttl

Spanish taifas

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#>
SELECT ?ta_fa ?ta_faLabel ?date_de_fondation_ou_de_cr_ation ?capitale ?capitaleLabel ?partie_de ?partie_deLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?ta_fa wdt:P31 wd:Q217177.
  OPTIONAL { ?ta_fa wdt:P571 ?date_de_fondation_ou_de_cr_ation. }
  OPTIONAL { ?ta_fa wdt:P36 ?capitale. }
  OPTIONAL { ?ta_fa wdt:P361 ?partie_de. } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?capitale"):::projected v2("?date_de_fondation_ou_de_cr_ation"):::projected v4("?partie_de"):::projected v1("?ta_fa"):::projected c2(["bd:serviceParam"]):::iri c6(["wd:Q217177"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P571".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P36".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P361".-> v4 end