query-62a8950474b33253f73641586a85bb5d
Településrészek, anyaközségek, MNNF azonosítók
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?kezd ?eze ?ezeLabel ?mnn ?abcd WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu". }
?item wdt:P31 wd:Q2983893;
wdt:P17 wd:Q28;
p:P31 ?statement.
?statement ps:P31 ?beosztas.
OPTIONAL { ?statement pq:P580 ?kezd. }
OPTIONAL { ?statement pq:P642 ?eze. }
OPTIONAL { ?item wdt:P6987 ?mnn. }
OPTIONAL { ?item wdt:P11620 ?abcd. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?abcd"):::projected
v3("?beosztas")
v5("?eze"):::projected
v1("?item"):::projected
v4("?kezd"):::projected
v6("?mnn"):::projected
v2("?statement")
c8(["wd:Q28"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,hu"]):::literal
c6(["wd:Q2983893"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:direct/P31"--> c6
v1 --"p:direct/P17"--> c8
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P580".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P642".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P6987".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P11620".-> v7
end