query-a37f3bbc505d4dbd9abd23e61a1a3043
statements about lexeme. I don’t really know if it’s a good practice or not, or what it implies, but this is happening. This is an occasion to raise the question : should most name items be actually migrated to lexeme ? (P31)instance of It’s interesting to see that the « family name » item is used also for 09:35, 31 October 2018 (UTC) pagetalk / TomT0m author And even more personal names: 17:00, 31 October 2018 (UTC) pagetalk / TomT0m author : Suit yourself, I’m not really actively involved in discussions in neither place, just passing the information :) KaMan@ 16:48, 31 October 2018 (UTC)) talk (KaMan as well (I found this thread by accident). Wikidata talk:Lexicographical data: It can be worth to put this question to TomT0m@
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 ontolex: <http://www.w3.org/ns/lemon/ontolex#>
select ?nameEntity ?name (lang(?name) as ?lang) {
?nameEntity wdt:P31/wdt:P279* wd:Q202444 .
optional {
?nameEntity (wdt:P1705|wikibase:lemma) ?name .
}
?nameEntity a ontolex:LexicalEntry . # check the lexeme namespace only
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?lang")
v2("?name"):::projected
v1("?nameEntity"):::projected
a1((" "))
c7(["ontolex:LexicalEntry"]):::iri
c3(["wd:Q202444"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 -."wikibase:lemma".-> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1705"--> v2
end
union0r <== or ==> union0l
end
end
v1 --"a"--> c7
bind0[/"?name"/]
v2 --o bind0
bind0 --as--o v3