query-444f62ddd55ce427e557a9d58b7b5f27
We should be using Hanyu Pinyin transliteration (P1721) in senses instead of forms in forms, but I think we should use it in senses, and not in forms. (P1721)Hanyu Pinyin transliteration TL; DR: Currently, we are using should be used in forms. (P1721)Hanyu Pinyin transliteration The following query shows the count of uses in each type of entity (i.e. form, sense, Wikidata item). As of the time of this writing, the query shows 1695 uses in forms and 28 uses in Wikidata items. This indicates that there's a common belief that
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?type (COUNT(*) AS ?count)
{
{
SELECT ?entity ?type {
{
SELECT DISTINCT ?entity {
?entity wdt:P1721 [].
}
} BIND(COALESCE(IF(REGEX(STR(?entity), '/L[0-9]+-F[0-9]+$'), "form", 1/0),
IF(REGEX(STR(?entity), '/S[0-9]+-S[0-9]+$'), "sense", 1/0),
IF(REGEX(STR(?entity), '/Q[0-9]+$'), "item", 1/0),
IF(TRUE, "other", 1/0))
AS ?type)
}
}
}
GROUP BY ?type
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count")
v1("?entity")
v2("?type"):::projected
a1((" "))
v1 --"wdt:P1721"--> a1
bind0[/"if(regex(str(?entity),'/L#91;0-9#93;+-F#91;0-9#93;+$'),'form','1^^xsd:integer' / '0^^xsd:integer')if(regex(str(?entity),'/S#91;0-9#93;+-S#91;0-9#93;+$'),'sense','1^^xsd:integer' / '0^^xsd:integer')if(regex(str(?entity),'/Q#91;0-9#93;+$'),'item','1^^xsd:integer' / '0^^xsd:integer')if('true^^xsd:boolean','other','1^^xsd:integer' / '0^^xsd:integer')"/]
v1 --o bind0
bind0 --as--o v2
bind2[/"count(*)"/]
bind2 --as--o v3