query-84de13ba1cfeb3a108cd258b31eb9b76
Adding forms with LexDataHi, : (thanks!) and I wanted to share it here since it may be useful to other people. MichaelSchoenitzerSince every Lexemes should have - at least - one form, since most Lexemes in French didn't have one form and since the Lemma is itself one form, I created a very simple script in Python that added these lemmata as a form using the library LexData created by @ ])"Q110786",[lemma.L(createForm.L )i ,repo(Lexeme.LexData = L : EditList in i for ]"L1234" ,"L123" ,"L entity where I want to add a form"[=EditList )"myverysekretpassword" ,"VIGNERON"(WikidataSession.LexData = repo en import LexData.languages from LexData import #!/usr/bin/python3 16:23, 2 March 2020 (UTC)) talk (VIGNERONCheers, : good question, I created it with a SPARQL query :So9q@ 23:19, 2 March 2020 (UTC)) talk (So9qHow did you generate the editlist?--
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT ?l ?lemma WHERE {
?l dct:language wd:Q150 ; wikibase:lemma ?lemma .
FILTER NOT EXISTS {?l ontolex:lexicalForm ?form }
}