query-849e9b17300c58a8806a4b0076b27826

rq turtle/ttl

Magyarország összes települése MNN azonosítóvalA közigazgatási hovatartozással és a hivatalos honlappal:

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 ?item ?itemLabel ?mnnf ?kozig ?kozigLabel ?web ?webLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu". }
  { ?item wdt:P31 wd:Q2590631. }  UNION  { ?item wdt:P31 wd:Q13218690. } UNION { ?item wdt:P31 wd:Q851110. }
  OPTIONAL { ?item wdt:P6987 ?mnnf. }
#  OPTIONAL { ?item wdt:P131 ?kozig. }
#  OPTIONAL { ?item wdt:P856 ?web. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?mnnf"):::projected c2(["bd:serviceParam"]):::iri c8(["wd:Q851110"]):::iri c4(["#91;AUTO_LANGUAGE#93;,hu"]):::literal c7(["wd:Q13218690"]):::iri c6(["wd:Q2590631"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c8 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c7 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c6 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P6987".-> v2 end