query-5eae245bcf6b4e1f21381bf9242b6a6b
title: (Belgische) federaal administratief openbaar ambten SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P31/wdt:P279* wd:Q2397571. OPTIONAL { ?item wdt:P576 ?dis } OPTIONAL { ?item wdt:P1366 ?rep } BIND(!(BOUND(?dis)||BOUND(?rep)) AS ?active) FILTER(?active) SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,de,en". } } ORDER BY ?itemLabel
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#>
#title: (Belgische) federaal administratief openbaar ambten
SELECT DISTINCT ?item ?itemLabel WHERE {
?item wdt:P31/wdt:P279* wd:Q2397571.
OPTIONAL { ?item wdt:P576 ?dis }
OPTIONAL { ?item wdt:P1366 ?rep }
BIND(!(BOUND(?dis)||BOUND(?rep)) AS ?active)
FILTER(?active)
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,de,en". }
} ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?active")
v4("?dis")
v3("?item"):::projected
v1("?itemLabel"):::projected
v5("?rep")
a1((" "))
c7(["bd:serviceParam"]):::iri
c3(["wd:Q2397571"]):::iri
c9(["nl,fr,de,en"]):::literal
f0[["?active"]]
f0 --> v6
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P576".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1366".-> v5
end
bind1[/"not (bound(?dis) || bound(?rep))"/]
v4 --o bind1
v5 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end