Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-16 Thread Magnus Manske
I strongly support "native" Wikipedia lists using Wikidata queries, and by that I mean proper SPARQL, not Lua hacks. Listeria is used "in production", e.g. on Welsh (about 17.000 lists in articles, see https://tools.wmflabs.org/listeria/botstatus.php), but it was always intended as a proof of conc

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-15 Thread Stas Malyshev
Hi! > Actually, specifically for list of presidents you don't need bot. Yeah, you are right, I was thinking about going through query route, but if your list is contained in one property (like Q30/P6) then using Lua is just fine. It's not always the case (e.g. "list of all movies where Brad Pitt

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-15 Thread Eran Rosenthal
TL;DR: The ONLY practical solution today it to use Lua. This sucks,but it works and scale well [in WP sense] - hewiki uses it heavily in infoboxs - to show list of actors in movies, or musical band members etc. Long version: Actually, specifically for list of presidents you don't need bot. Here is

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-15 Thread Stas Malyshev
Hi! > Sure, but I'm not really worried about potential false positives. I'm > worried that we're building a giant write-only data store. Fortunately, we are not doing that. >> Unless you're talking about pulling a small set of values, in which case >> Lua/templates are probably the best venue. >

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-15 Thread MZMcBride
Thank you for this e-mail. It was informative. Stas Malyshev wrote: >No, and there are tricky parts there. Consider >https://www.wikidata.org/wiki/Q735712. Yes, Lex Luthor held the office >of the President of the USA. In a fictional universe, of course. But the >naive query - every Wikidata item w

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-14 Thread Daniel Kinzler
Very well put, Stas, thank you! Am 13.12.2016 um 07:23 schrieb Stas Malyshev: > Hi! > >> If I wanted to make a page on the English Wikipedia using wikitext called >> "List of United States presidents" that dynamically embeds information >> from and >>

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-12 Thread Stas Malyshev
Hi! > If I wanted to make a page on the English Wikipedia using wikitext called > "List of United States presidents" that dynamically embeds information > from and > and other similar items, is this > currently possible? I

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-11 Thread Eran Rosenthal
Currently it is only possible with Lua. The documentation is in: https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua it is quite ugly to write such module (not cool SPARQL...) but it works, and you can expose it with nice interface to be used in wikipages. On Sun, Dec 11, 2016 at 6:

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-10 Thread Gergo Tisza
On Sat, Dec 10, 2016 at 5:30 PM, MZMcBride wrote: > A more advanced form of this Wikidata querying would be dynamically > generating a list of presidents of the United States by finding every > Wikidata item where position held includes "President of the United > States". Is this currently possib

Re: [Wikitech-l] Arbitrary Wikidata querying

2016-12-10 Thread Yuri Astrakhan
AFAIK, you can query data from Wikidata, but you cannot put it into a page, unless its a graph. Graphs can do it - https://www.mediawiki.org/wiki/Extension:Graph/Demo/Sparql As of last Thursday, you can also create a table on Commons Data namespace, and make a simple Lua script on your favorite wi

[Wikitech-l] Arbitrary Wikidata querying

2016-12-10 Thread MZMcBride
Hi. If I wanted to make a page on the English Wikipedia using wikitext called "List of United States presidents" that dynamically embeds information from and and other similar items, is this currently possible? I consider t