DL2204 added a comment.

  In T338255#8909023 <https://phabricator.wikimedia.org/T338255#8909023>, 
@DL2204 wrote:
  
  > My bot has indeed created 24,007 new Latin lexemes 
<https://www.wikidata.org/wiki/Property_talk:P11033#Second_batch:_new_Latin_lexemes>.
 It uses python Wikibaseintegrator (WBI 12.0). And, indeed, the value I passed 
for dct:language was "wd:Q397" (as found in the source the bot used). That is 
my fault; I should have passed "Q397" to WBI, and not "wb:Q397". WBI accepted 
that and wrote it to these lexemes, which Wikidata accepted (WBI and/or 
Wikidata should have raised an error, since the value expected here is just a 
numeral preceded by a Q, I have notified the WBI developer 
<https://github.com/LeMyst/WikibaseIntegrator/issues/552>)... I will fix that 
for all affected Latin lexemes.
  
  I have fixed this for all Latin lexemes using this script 
<https://github.com/dlindem/wikibase/blob/main/LiLa/write-fixed-lexeme.py> 
(deploying WBI again). The "wd:Q397" (instead of "Q397") values for the lexeme 
language were showing up only in the JSON representation, while SPARQL gave the 
correct complete URI also in these cases (http://www.wikidata.org/entity/Q397), 
so that I have iterated through all lexemes my bot had changed, and fixed the 
value in all 24,000+ cases. In the interface, the lexeme language was correctly 
displayed as "Latin", also with the bad value, but the lexeme weren't indexed 
for search (did not show up in any search results).

TASK DETAIL
  https://phabricator.wikimedia.org/T338255

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: DL2204
Cc: Lydia_Pintscher, Nikki, DL2204, Lucas_Werkmeister_WMDE, dcausse, Aklapper, 
gonzalez.actor, Astuthiodit_1, karapayneWMDE, Invadibot, MPhamWMF, maantietaja, 
Wilmanbeno, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, 
Mahir256, QZanden, EBjune, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, jayvdb, Mbch331, jeremyb
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to