This would require a locally installable Lua library, which currently does not exist. It would be a great project to do something like this!
The same is true for other languages, but I understand the particular use case you have in mind. On Thu, Jan 2, 2014 at 1:43 PM, Voß, Jakob <[email protected]> wrote: > Hi, > > I'd like to access Wikidata via Lua scripts, so the scripts can later be > used in MediaWiki. I only know how to create Lua scripts in the > module-namespace in Wikimedia wikis, but I want command line scripts that > do not require a full MediaWiki installation. To give a minimal example, > this script: > > language="en" > label=mw.wikibase.label("Q42") > print(label) > > if somehow (?) called from command line (!) should print "Douglas Adams" > to stdout. > > How to do so? > Jakob > > -- > Jakob Voß > Verbundzentrale des GBV (VZG) > Abteilung Digitale Bibliothek > Platz der Göttinger Sieben 1 > 37073 Göttingen > Telefon: (49)551 39-10242 > Internet: www.gbv.de > > _______________________________________________ > Wikidata-tech mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikidata-tech >
_______________________________________________ Wikidata-tech mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
