query-ddf4516671cf88f85c4628ef5c62e046
Propertiesinstance of (P31)country of citizenship (P27)name in kana (P1814)
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:Q17; wdt:P1814 ?kana; rdfs:label ?enLabel, ?huLabel.
FILTER(lang(?enLabel)="en")
FILTER(lang(?huLabel)="hu")
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
v3("?item"):::projected
v4("?kana"):::projected
a1((" "))
c6(["wd:Q17"]):::iri
c11([https://hu.wikipedia.org/]):::iri
c4(["wd:Q5"]):::iri
f0[["str(?enLabel) = str(?huLabel)"]]
f0 --> v1
f0 --> v2
f1[["?huLabel = 'hu'"]]
f1 --> v2
f2[["?enLabel = 'en'"]]
f2 --> v1
v3 --"wdt:P31"--> c4
v3 --"wdt:P27"--> c6
v3 --"wdt:P1814"--> v4
v3 --"rdfs:label"--> v1
v3 --"rdfs:label"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a1 -."schema:about".-> v3
a1 --"schema:isPartOf"--> c11
a1 --"schema:name"--> v5
end