Wikidata:Property proposal/selma'o

structure word class edit

Originally proposed at Wikidata:Property proposal/Lexemes

   Not done
Descriptiona group of Lojban structure words that have the same grammatical use (can appear interchangeably in sentences, as far as the grammar is concerned) but differ in meaning or other usage
RepresentsCategory:Lojban selma'o (Q31732340)
Data typeItem
Domainlexeme, where Lexical class == function word (Q2120608). See for example zo (L299039), (L299541), (L299538), bau (L299042).
Allowed valuesthe jbo-language label of any item that is an instance of Category:Lojban selma'o (Q31732340). (SPARQL query)
Example 1zo (L299039)Q93923538
Example 2 (L299541)Q93920876
Example 3 (L299538)Q93920876
Example 4bau (L299042)Q93923669
SourceThe Complete Lojban Language, v1.2.6, section 2.18, Lojban wiktionary entry
Planned useEntering Lojban cmavo lexemes
Expected completenesseventually complete (Q21873974)
Robot and gadget jobsYes

Motivation edit

As part of an effort to provide a dictionary between Lojban and other languages, we want to add data about Lojban structure words (called cmavo in Lojban, and very roughly equivalent to English prepositions). All Lojban structure words are categorized into classes called selma'o in Lojban. The set of selma'o is closed and limited. So, we would like to have a selma'o or (in English) "structure word class" property that we can add to any cmavo lexeme. --Robert.Baruch (talk) 02:27, 11 May 2020 (UTC)[reply]

Discussion edit

I'm not sure if the allowed values should reference Category:Lojban selma'o (Q31732340) or if I should make a new item that isn't a Category? For example, currently Q93923538 is an instance of Category:Lojban selma'o (Q31732340), but should it instead be an instance of a new item called just "Lojban selma'o"? I should be able to make that change... --Robert.Baruch (talk) 21:51, 17 May 2020 (UTC)[reply]

(Answering my own question) Looking at various bits of documentation, I think this help article is most relevant: "All items that represent Wikimedia categories should use category's main topic (P301) to link to the item that is the subject of the Category." In fact, Category:Lojban selma'o (Q31732340) does not have such a property, so I think it's clear I should create the item appropriate for that property, and then link all selma'o to that item rather than to Category:Lojban selma'o (Q31732340). --Robert.Baruch (talk) 15:39, 23 May 2020 (UTC)[reply]

Looking over some of the other property proposals, I wonder if we should use instance of (P31) instead. Then, if you want to search for all cmavo for a given selma'o, a SPARQL query that looks for all X such that X instance-of Y and Y instance-of Category:Lojban selma'o (Q31732340) should work. This is the equivalent of X belongs-to-structure-word-class Y. --Robert.Baruch (talk) 15:19, 23 May 2020 (UTC)[reply]