query-0870dd9924f0d217874a034ce2376adb
Propertiesinstance of (P31)country of citizenship (P27)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
?item wdt:P31 wd:Q5; wdt:P27 wd:Q884; rdfs:label ?koLabel, ?enLabel, ?huLabel.
FILTER(lang(?enLabel)="en")
FILTER(lang(?huLabel)="hu")
FILTER(lang(?koLabel)="ko")
FILTER(str(?enLabel) = str(?huLabel))
OPTIONAL{ [] schema:about ?item; schema:isPartOf <https://hu.wikipedia.org/>; schema:name ?huwiki }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?enLabel"):::projected
v2("?huLabel"):::projected
v5("?huwiki"):::projected
v4("?item"):::projected
v3("?koLabel"):::projected
a1((" "))
c11([https://hu.wikipedia.org/]):::iri
c7(["wd:Q884"]):::iri
c5(["wd:Q5"]):::iri
f0[["str(?enLabel) = str(?huLabel)"]]
f0 --> v1
f0 --> v2
f1[["?koLabel = 'ko'"]]
f1 --> v3
f2[["?huLabel = 'hu'"]]
f2 --> v2
f3[["?enLabel = 'en'"]]
f3 --> v1
v4 --"wdt:P31"--> c5
v4 --"wdt:P27"--> c7
v4 --"rdfs:label"--> v3
v4 --"rdfs:label"--> v1
v4 --"rdfs:label"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a1 -."schema:about".-> v4
a1 --"schema:isPartOf"--> c11
a1 --"schema:name"--> v5
end