Wikidata:Wiktionary/Categories
In Wiktionary there are very wide system of categories and supporting templates. It is important that these categories would be represented and interlinked correctly at Wikidata.
Russian Wiktionary has a complex but logic system. In briefly there are 4 big sets for lexemes: semantic - field (Q54662266), grammatic, lexical and etimological categories.
Parts of speech categories edit
Semantic categories edit
All semantic categories (32979 at 15.07.19):
SELECT ?cat ?catLabel ?langLabel WHERE {
?cat wdt:P971 wd:Q54662266.
OPTIONAL {?cat wdt:P971 ?lang.
?lang wdt:P31/wdt:P279* wd:Q315.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
There are many of them (and should be more), by all languages:
SELECT ?langLabel (COUNT(?cat) AS ?cnt) WHERE {
?cat wdt:P971 wd:Q54662266.
OPTIONAL {?cat wdt:P971 ?lang.
?lang wdt:P31/wdt:P279* wd:Q315.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
GROUP BY ?langLabel
ORDER BY DESC(?cnt)
Lexical categories edit
Grammatical categories edit
All (3075 at 15.07.19):
SELECT ?cat ?catLabel WHERE {
?cat wdt:P971 wd:Q980357.
OPTIONAL {?cat wdt:P971 ?lang.
?lang wdt:P31/wdt:P279* wd:Q315.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
Not to mix edit
tinyurl.com/2bst2zc6 - Orb is better
Language | Grammatical categories | "Grammar" (semcat) | Words by POS | Parts of speech (semcat) |
---|---|---|---|---|
Afrikaans (Q14196) | Q31832102 | Category:af:Grammar (Q30524943) | Q65568340 | Category:af:Parts of speech (Q65568447) |
English (Q1860) | Q31156736 | Category:en:Grammar (Q30578969) | Category:English lemmas by word class (Q65576801) | Category:en:Parts of speech (Q33531088) |
Russian (Q7737) | Q64778582 | Category:ru:Grammar (Q31156892) | Q65579409 | Category:ru:Parts of speech (Q33531945) |
and so on...
SELECT distinct ?langLabel ?cat1 ?cat1Label ?cods1 ?cat2 ?cat2Label ?cods2 ?cat3 ?cat3Label ?cods3 ?cat4 ?cat4Label ?cods4 WHERE {
?lang wdt:P31/wdt:P279* wd:Q20162172.
# VALUES ?lang {wd:Q9292}
OPTIONAL {?cat1 wdt:P971 wd:Q980357.
?cat1 wdt:P971 ?lang.
OPTIONAL {SELECT ?cat1 (GROUP_CONCAT(distinct ?cod1; separator=', ') as ?cods1) WHERE {
?wiktSitelink schema:isPartOf [ wikibase:wikiGroup "wiktionary" ];
schema:inLanguage ?cod1;
schema:about ?cat1. } GROUP BY ?cat1 ORDER BY ?cod1 }
}
OPTIONAL {?cat2 wdt:P971 wd:Q8091; wdt:P971 wd:Q54662266; wdt:P971 ?lang.
OPTIONAL {SELECT ?cat2 (GROUP_CONCAT(distinct ?cod2; separator=', ') as ?cods2) WHERE {
?wiktSitelink schema:isPartOf [ wikibase:wikiGroup "wiktionary" ];
schema:inLanguage ?cod2;
schema:about ?cat2. } GROUP BY ?cat2 ORDER BY ?cod2 }
}
OPTIONAL {?cat3 wdt:P971 wd:Q30434250; wdt:P971 wd:Q54734643; wdt:P971 ?lang.
OPTIONAL {SELECT ?cat3 (GROUP_CONCAT(distinct ?cod3; separator=', ') as ?cods3) WHERE {
?wiktSitelink schema:isPartOf [ wikibase:wikiGroup "wiktionary" ];
schema:inLanguage ?cod3;
schema:about ?cat3. } GROUP BY ?cat3 ORDER BY ?cod3 }
}
OPTIONAL {?cat4 wdt:P971 wd:Q82042; wdt:P971 wd:Q54662266; wdt:P971 ?lang.
OPTIONAL {SELECT ?cat4 (GROUP_CONCAT(distinct ?cod4; separator=', ') as ?cods4) WHERE {
?wiktSitelink schema:isPartOf [ wikibase:wikiGroup "wiktionary" ];
schema:inLanguage ?cod4;
schema:about ?cat4. } GROUP BY ?cat4 ORDER BY ?cod4 }
}
FILTER (STR(?cat1)!="" || STR (?cat2) != "" || STR(?cat3) != "" || STR(?cat4)!="")
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
ORDER BY ?langLabel
This list is periodically updated by a bot. Manual changes to the list will be removed on the next update!
WDQS | PetScan | TABernacle | Find images | Recent changes∑ 69 items.
End of automatically generated list.