query-8f2ffe771614d68accdc37b1db76d57d

rq turtle/ttl

10:24, 29 September 2019 (UTC)) talk (Juandev 10:37, 29 September 2019 (UTC) JuraNot sure how to answer. Currently, it repeats twice the same with Q811979. Maybe it's just the typo in "?somehting" --- 13:09, 29 September 2019 (UTC)) talk (Juandev. --(Q811979)architectural structure Its not the typo, I don't know SPARQL and I am learning SPARQL. The goal is to list all items which are

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 DISTINCT ?archstruct ?archstructLabel ?something ?somethingLabel
WHERE
{
  ?archstruct  wdt:P131/wdt:P131* wd:Q2444636.  #architectural structure located in Prague 2
  ?archstruct  wdt:P31/wdt:P279* wd:Q811979 . #and "something" is architectural structure, or...
  ?archstruct  wdt:P31 ?something .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],cs". }
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?archstruct"):::projected v2("?something"):::projected a1((" ")) a2((" ")) c9(["#91;AUTO_LANGUAGE#93;,cs"]):::literal c2(["wd:Q2444636"]):::iri c7(["bd:serviceParam"]):::iri c5(["wd:Q811979"]):::iri v1 --"wdt:P131"--> a1 a1 --"wdt:P131"--> c2 v1 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c5 v1 --"wdt:P31"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end