query-e911fd44e1b61ca817e2e7e6dd389ebf
Magyarország összes minisztériuma (a megszűntek is)
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?alap ?megsz ?elod ?elodLabel ?utod ?utodLabel ?poz ?pozLabel ?vezet ?vezetLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,hu". }
?item wdt:P31 wd:Q52063153.
OPTIONAL { ?item wdt:P571 ?alap. }
OPTIONAL { ?item wdt:P576 ?megsz. }
OPTIONAL { ?item wdt:P1365 ?elod. }
# OPTIONAL { ?item wdt:P1037 ?vezet. }
OPTIONAL { ?item wdt:P1366 ?utod. }
OPTIONAL { ?item wdt:P2388 ?poz. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?alap"):::projected
v4("?elod"):::projected
v1("?item"):::projected
v3("?megsz"):::projected
v6("?poz"):::projected
v5("?utod"):::projected
c4(["#91;AUTO_LANGUAGE#93;,en,hu"]):::literal
c2(["bd:serviceParam"]):::iri
c6(["wd:Q52063153"]):::iri
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:P576".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1365".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1366".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2388".-> v6
end