query-c821ff6a64eff884999d4905fd42717e
Shisma TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
SELECT ?lexeme ?lemma ?derived_from ?lexeme_de_lemma
{
?lexeme a ontolex:LexicalEntry .
?lexeme wikibase:lemma ?lemma .
FILTER REGEX(?lemma, "^[\u30A0-\u30FF]+$") # Katakana main unicode range
?lexeme wdt:P5191 ?derived_from .
?lexeme_de wdt:P5191? ?derived_from .
?lexeme_de wikibase:lemma ?lexeme_de_lemma .
FILTER (LANG(?lexeme_de_lemma) = "de")
}
Query found at
- https://www.wikidata.org/wiki/User:Shisma/katakana.sparql
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2022/01
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?derived_from"):::projected
v2("?lemma"):::projected
v3("?lexeme"):::projected
v5("?lexeme_de")
v1("?lexeme_de_lemma"):::projected
c4(["ontolex:LexicalEntry"]):::iri
f0[["?lexeme_de_lemma = 'de'"]]
f0 --> v1
f1[["regex(?lemma,'^#91;゠-ヿ#93;+$')"]]
f1 --> v2
v3 --"a"--> c4
v3 --"wikibase:lemma"--> v2
v3 --"wdt:P5191"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P5191"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
v5 --"wikibase:lemma"--> v1