tatuylonen / wikitextprocessor

Python package for WikiMedia dump processing (Wiktionary, Wikipedia etc). Wikitext parsing, template expansion, Lua module execution. For data extraction, bulk syntax checking, error detection, and offline formatting.
Other
90 stars 23 forks source link

Implement `mw.wikibase.getEntity` Lua API #260

Closed xxyzz closed 4 months ago

xxyzz commented 4 months ago

Cache entity data JSON string to SQLite file.

Hard code the language code and site id as "en" and "enwiki", should use values in the Wtp object, not sure how to setup the object like the MediaWiki code(Entity.setupInterface).

mw.wikibase.entity:formatPropertyValues and mw.wikibase.entity:formatStatements are not implemented, they use php code to format values.

Some methods of the entity object call not implemented functions of the mw.wikibase table, errors are expected.

kristian-clausal commented 3 months ago

Thank you very much for taking this on!