query-84de13ba1cfeb3a108cd258b31eb9b76

rq turtle/ttl

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

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 }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?form") v1("?l"):::projected v3("?lemma"):::projected c3(["wd:Q150"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"ontolex:lexicalForm"--> e0v2 e0v2("?form"):::projected e0v1("?l"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"ontolex:lexicalForm"--> v2 v1 --"dct:language"--> c3 v1 --"wikibase:lemma"--> v3