query-536924b01f1cf966fc82246bb7c4a6a1
check for potential wrong Hungarian transcription of 上 in Japanese names
居/宇
SELECT * WHERE { ?item wdt:P31 wd:Q5; wdt:P1814 []; rdfs:label ?jaLabel; rdfs:label ?huLabel . FILTER( lang(?jaLabel) = "ja" && CONTAINS(?jaLabel,"上") ) FILTER( lang(?huLabel) = "hu" && CONTAINS(lcase(?huLabel),"ó") ) #MINUS{ ?item rdfs:label ?huLabel . # FILTER( lang(?huLabel) = "hu" # && (CONTAINS(lcase(?huLabel),"ue")|| CONTAINS(lcase(?huLabel),"ka")) # ) # } }
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#check for potential wrong Hungarian transcription of 上 in Japanese names
#居/宇
SELECT * WHERE { ?item wdt:P31 wd:Q5; wdt:P1814 []; rdfs:label ?jaLabel; rdfs:label ?huLabel .
FILTER( lang(?jaLabel) = "ja" && CONTAINS(?jaLabel,"上") )
FILTER( lang(?huLabel) = "hu" && CONTAINS(lcase(?huLabel),"ó") )
#MINUS{ ?item rdfs:label ?huLabel .
# FILTER( lang(?huLabel) = "hu"
# && (CONTAINS(lcase(?huLabel),"ue")|| CONTAINS(lcase(?huLabel),"ka"))
# )
# }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?huLabel"):::projected
v3("?item"):::projected
v2("?jaLabel"):::projected
a1((" "))
c6(["wd:Q5"]):::iri
f0[["?huLabel = 'hu'contains(lower-case(?huLabel),'ó')"]]
f0 --> v1
f1[["?jaLabel = 'ja'contains(?jaLabel,'上')"]]
f1 --> v2
v3 --"wdt:P31"--> c6
v3 --"wdt:P1814"--> a1
v3 --"rdfs:label"--> v2
v3 --"rdfs:label"--> v1