On Sun, Jan 26, 2014 at 1:10 AM, Lydia Pintscher < lydia.pintscher@wikimedia.de> wrote:
On Fri, Jan 24, 2014 at 10:53 AM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
Hi, I am thinking of implementing a
#CATQUERY <query>
magic keyword for the category pages.
When this keyword is present, the category page would execute a query against the search backend instead of normal category behavior and show result as if those pages were actually marked with this category.
For example, this would allow Greek Philosophers category page to be quickly redefined as a cross-section of greeks & philosophers categories:
#CATQUERY incategory:Greek incategory:Philosopher
Obviously the community will be able to define much more elaborate
queries,
including the ordering (will be supported by the new search backend)
In the future this will be possible using Wikidata and queries. My dream is that categories will to a very large extend go away then and be replaced with better Wikidata-based tools. I'd _really_ like us not to introduce more incentives to use categories like this one. Also it'd be quite a source for confusion to have both.
Indeed. I think it would be very shortsighted to introduce any sort of new syntax here for this right now as proposed.
There's lots of exciting query opportunities coming with Wikidata as Lydia says (which will very likely end up using Elasticsearch in some manner).
On Sun, Jan 26, 2014 at 10:21 AM, Brian Wolff bawolff@gmail.com wrote:
Category intersection proposals seem to appear on this list about once every 2 years as far as i remember. Usually they dont succede because nobody ends up writing any efficient code to implement it.
Yep, we've been here before. Because category intersection isn't easy with the schema we've got. However, it's incredibly trivial to do in Elasticsearch. So I imagine if we invest more effort in helping Wikidata expand its syntax and uses we'll likely end up with what Yuri's wanting--if maybe in a different form.
I'll also note we've already solved category intersection in Cirrus ;-)
https://en.wikipedia.org/w/index.php?search=incategory%3A%221941+births%22+i...
-Chad