query-62dfb6a615d387a8c8197b1a85176483
TODO
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?pim ?pimLabel ?szul ?foglalkozs ?foglalkozsLabel ?citizen ?citizenLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu". }
?pim wdt:P31 wd:Q5;
wdt:P3973 ?y_22.
FILTER(NOT EXISTS {
?wfr schema:about ?pim;
schema:isPartOf <https://hu.wikipedia.org/>.
})
OPTIONAL { ?pim wdt:P27 ?citizen. }
OPTIONAL { ?pim wdt:P19 ?foglalkozs. }
OPTIONAL { ?pim wdt:P569 ?szul. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?citizen"):::projected
v5("?foglalkozs"):::projected
v2("?pim"):::projected
v6("?szul"):::projected
v1("?wfr")
v3("?y_22")
c3([https://hu.wikipedia.org/]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,hu"]):::literal
c9(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v2("?pim"):::projected
e0v1("?wfr"):::projected
e0c3([https://hu.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
v2 --"wdt:P31"--> c9
v2 --"wdt:P3973"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P27".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P19".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v6
end