Re: [Wikidata-l] Python bot framework for wikidata

2014-08-31 Thread Artem Korzhimanov
https://www.wikidata.org/wiki/Wikidata:Bots is about bots in general,
regardless of their actual implementation. However, it, of course, contains
link to https://www.wikidata.org/wiki/Wikidata:Creating_a_bot (in See
also section) which in turn contains quite detailed description of
pywikibot (and some others platforms as well).

I don't think that Wikidata:Bots needs to have detailed description of how
to create bot, this page is for ordinary users and not for botmakers.
However, it would be probably a good idea to make a section with brief
description where to look for information about creating bots.

Best regards,
Artem.

Dr. Artem Korzhimanov
Research Scientist
Institute of Applied Physics
of the Russian Academy of Sciences
46 Ulyanov st., Nizhny Novgorod, Russia
Email: korzhimanov.ar...@gmail.com


2014-08-31 1:07 GMT+04:00 Maarten Dammers maar...@mdammers.nl:

  Benjamin Good schreef op 29-8-2014 19:39:

 It does, but only on the very bottom with a see also.

 Hmm, that doesn't look very good. Pywikibot has full Wikidata support and
 contains several scripts you can run without writing a line of python, see
 https://www.mediawiki.org/wiki/Manual:Pywikibot/Scripts#Wikidata

 Maybe we should update the bots page to make it clearer and easier to find.

 Maarten


  Somehow I ended up on
 https://github.com/jcreus/pywikidata
  first.

  which is two years out of date and very similarly named..
 -ben



 On Fri, Aug 29, 2014 at 10:17 AM, Derric Atzrott 
 datzr...@alizeepathology.com wrote:

  There is https://www.wikidata.org/wiki/Wikidata:Bots which is the
  first hit on Google for me when searching for bots wikidata. Maybe
  it needs to be linked more on the site itself though.

  I may just be blind, but it actually doesn't look like that page
 mentions pywikibot anywhere.  I wonder if he may have found that
 page, but it didn't answer all of the questions he had?

 Thank you,
 Derric Atzrott


 ___
 Wikidata-l mailing list
 Wikidata-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikidata-l




 ___
 Wikidata-l mailing 
 listWikidata-l@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/wikidata-l



 ___
 Wikidata-l mailing list
 Wikidata-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikidata-l


___
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l


[Wikidata-l] breaking changes for gadgets

2014-08-31 Thread Lydia Pintscher
Hey folks,

We are working on re-vamping a lot of the underlying code for the user
interface at the moment. These changes are the first major steps for
the new user interface. They are necessary to allow editing all
sitelinks or label/description/alsiases at once for example.
Unfortunately some gadgets will need to be adapted to these changes.
Specifically it is the introduction of sitelinkview and aliasview.

We are aware of the following gadgets that will need to be adapted but
those might not be all:

MediaWiki:Gadget-DraggableSitelinks.js
MediaWiki:Gadget-KeyShortcuts.js
MediaWiki:Gadget-MainLangFirst.js
MediaWiki:Gadget-Move.js
MediaWiki:Gadget-Preview.js
MediaWiki:Gadget-SimpleTransliterate.js

The new code is live on test.wikidata.org for you to test your gadgets
against. The changes will go live on wikidata.org on Tuesday.
Sorry for the breaking change. I hope the new UI will be worth it for
you though :)


Cheers
Lydia

-- 
Lydia Pintscher - http://about.me/lydia.pintscher
Product Manager for Wikidata

Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin
www.wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.

Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das
Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.

___
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l


[Wikidata-l] Commons Categories again (was Re: Commons Wikibase)

2014-08-31 Thread James Heald

Hi everybody,

Sorry to open up an old thread again after ten days, but there were some 
things in Lydia's reply below that I wanted to come back to.


So, first, a couple of examples of the kind of Commons Categories I had 
in mind:


https://commons.wikimedia.org/wiki/Category:Images_released_by_British_Library_Images_Online

https://commons.wikimedia.org/wiki/Category:Metropolitan_Improvements_%281828%29_Thomas_Hosmer_Shepherd

Despite their names, both these cats effectively identify images from 
particular photosets on Flickr.  The first category relates to a 
particular set of images released by a particular institution on a 
particular date.  The second relates to a particular set of scans from a 
particular edition of a particular book.  Both (IMO) would (and, 
moreover *should*) currently fail Wikidata:Notability.


The book, and even the edition, might be notable. But a particular set 
of scans surely would not. Similarly, the first category is really just 
a photoset from Flickr, again something that wouldn't currently get a 
Wikidata Q-number.


Now in the email below, Lydia effectively said: no problem, just give 
each Commons Category a Wikidata Q-number anyway.  (Imho they should be 
on Wikidata. I fear if we introduce another layer it'll be considerably 
harder to use and maintain.)


GerardM, in sessions at Wikimania, also argued strongly simply for 
putting everything in Wikidata.


But I think this would be a mistake, because IMO Wikidata:Notability is 
a positive virtue, which should be defended.  It is *useful* to people 
that they can download a dump of Wikidata for their own purposes, and 
get real-world relevant items, rather than the dump being bloated with 
wiki junk.


So in my opinion, Commons categories should generally *not* get 
Q-numbers on Wikidata (unless they pass WD:N), but should instead get 
items on the Commons Wikibase which is being created expressly for the 
purpose of holding structured data on things which really only have a 
commonswiki significance, and are not real-world notable.




A second point relates to Magnus's issue about how much of this could be 
replaced by queries.


Yes, if one were progressively building up a topic search on images from 
books in the 1-million image BL Mechanical Curator release, one might 
ask for books about London, then books published in a particular date 
range.  But within that, the natural query to specify scans from this 
particular copy of 'Metropolitan Improvements' is the image's membership 
of this particular set -- membership of the set in itself is something 
that should be queryable, and such a query is the kind of query that, at 
the right stage, should be offerable to the user trying to refine their 
search.



In fact, most current Commons categories will not be WD-notable.  But 
even for the most egregious of Commons intersection categories, IMO it 
will still be worth the Commons Wikibase tracking category membership 
for an image, not least for the ability that will give to easily present 
the category's files in different ways -- eg perhaps sorted by filename; 
or by original creation date; or by upload date; or by uploader; or by 
geographical proximity... etc.  Holding the category membership in the 
wikibase then allows people to write gadgets to sort or filter or 
re-present the category in multiple ways.  So it's useful to have the 
category as an entity that can be a target for a property.



But there are also reasons for a category to have an item in its own 
right -- because there is structured data that one may wish to associate 
with the category:  one example would be access stats to members of the 
category (eg which categories in the Mechanical Curator collection have 
had the most file views?) -- the kind of thing of great interest to GLAMs.


Many categories also contain information defining them -- for example, 
for the book scans category, one would want a property that this 
category contained scans of the particular book (pointed to by its 
Q-number), probably a particular edition (probably a qualifier).  One 
might also want to associate linked data -- pointers to entries for the 
book in (possibly multiple) catalogues of its original host institution.


So for all these reasons it may well be useful, as a matter of course, 
to have a container for structured information associated with each 
commonscat.


This is why I think each and every category on Commons should have its 
own Commons Wikibase item, with an associated C-number.



Queries are important, but I'd suggest they are best seen as an 
*addition* to the present category system, rather than a *replacement* 
for it.


A particular way forward, it seems to me,  might be to allow categories 
to be *augmented* with specific queries -- i.e. to allow rules to be 
specified for particular categories, so that files whose structured-data 
topic information matched the rules would automatically be added to the 
categories, alongside