query-edb2d800e55bbf6adea99346ea1f3fdd

rq turtle/ttl

Subclass tree of ancient Roman archeological sites located in Hungary SELECT ?item ?itemLabel ?coord WHERE { ?item wdt:P31/wdt:P279* wd:Q21752084 . ?item wdt:P17 wd:Q28 . OPTIONAL { ?item wdt:P625 ?coord }

SERVICE wikibase:label { 
  bd:serviceParam wikibase:language "hu" }

}

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#>
# Subclass tree of ancient Roman archeological sites located in Hungary
SELECT ?item ?itemLabel ?coord
WHERE
{
    ?item wdt:P31/wdt:P279* wd:Q21752084 .
    ?item wdt:P17 wd:Q28 .
    OPTIONAL { ?item wdt:P625 ?coord }

    SERVICE wikibase:label { 
      bd:serviceParam wikibase:language "hu" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?coord"):::projected v1("?item"):::projected a1((" ")) c5(["wd:Q28"]):::iri c8(["bd:serviceParam"]):::iri c3(["wd:Q21752084"]):::iri c10(["hu"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P17"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end