#228 Support Wikidata for Commons

v0.10.*
closed
nobody
v0.10.2
2013-10-21
2013-09-25
Anonymous
No

Commons now uses language links from Wikidata. wikidata.js shows these links among the Wikipedia links, which isn't ideal, but yet another group like on Wikidata isn't ideal either, so I didn't change anything yet. But on Common pages the links to Wikipedia can and should now be fetched from Wikidata when available. --Schnark

Discussion

  • gnosygnu

    gnosygnu - 2013-09-26
    • labels: --> wikidata, commons, javascript
    • status: new --> investigating
    • Expected release: --> v0.10.*
    • Milestone: PFE --> v0.10.*
     
  • gnosygnu

    gnosygnu - 2013-09-26

    Thanks for the head's up.

    XOWA should be able to handle commonswiki, as long as it's placed in the "links" section of the json doc.

    I checked for https://www.wikidata.org/wiki/Q5296 and there is a "commonswiki" in the links section. Unfortunately, the change didn't make it into the 09-22 wikidata dump, so I won't know for certain until the next dump. (The language links data is only generated from the xml during the wikidata import)

    On the other hand, "Category:Nature" of www.wikidata.org/wiki/Q4049293 does not have a commonswiki, but it does list language links at http://commons.wikimedia.org/wiki/Category:Nature. I'm hoping they aren't using Property:P373 (Commons category=Nature). If so, I will have to change the importer to handle this specific case.

    I'll look at the latter later. "Wikidata.js" is up to you. Ultimately, it should probably go into its own "Wikimedia Commons page linked to this item", but it's fine for it to sit in the Wikipedia section for now.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2013-09-26

    The automatic language links only use the data from the links in JSON, not the Property:?373.

    Ultimately, it should probably go into its own "Wikimedia Commons page linked to this item", but it's fine for it to sit in the Wikipedia section for now.

    From https://www.wikidata.org/wiki/Wikidata:Project_chat#Turning_.22English.22_in_Commons_Sitelink_to_-_with_a_hack_for_now:

    ... 2) making the group a group for all such special wikis that have only one link ... 3) something completely different we have not thought of yet. It currently looks like we'll do 1 for now and later 2.

    I'm inclined to wait for that "later", and then create a group for the special wikis as well. --Schnark

     
  • gnosygnu

    gnosygnu - 2013-09-27
    • status: investigating --> queued
     
  • gnosygnu

    gnosygnu - 2013-09-27

    The automatic language links only use the data from the links in JSON, not the Property:?373.

    I hope so. The only problem is the current commonswiki Category:Nature page

    The only thing I can think of is that the wikidata page is to Category:nature. (There is no Category:Nature page.) Maybe the lowercase threw off one of the two bots.

    • BotMultichill: The bot responsible for updating the www.wikidata.org json
    • (UnknownBot?): The bot that ultimately makes the correct registration in page_props (which I recall is where MediaWiki gets its language links from)

    At any rate, I checked for Category:Earth (https://www.wikidata.org/wiki/Q1458521) and Category:Science (https://www.wikidata.org/wiki/Q1458521) and they both have "commonswiki" in its links sections. Hopefully Category:Nature is an aberration.

    From https://www.wikidata.org/wiki/Wikidata:Project_chat#Turning_.22English.22_in_Commons_Sitelink_to_-_with_a_hack_for_now:

    Thanks for the link. I completely see what you're saying. There's little point to implementing a temporary hack.


    I'm going to mark this item as queued for now. I'll mark it done when the next wikidata dump is available and I verify that the new links are picked up properly.

     
  • gnosygnu

    gnosygnu - 2013-10-14

    I'm marking this item done for now. I've checked with the latest wikidata import and the following pages:

    In both cases, XOWA shows the Wikipedia links on the Commons pages.

    If there's nothing else to be done, I'll mark this ticket closed in the v0.10.2 sweep.

    Thanks again.

     
  • gnosygnu

    gnosygnu - 2013-10-14
    • status: queued --> done
    • Expected release: v0.10.* --> v0.10.2
     
  • gnosygnu

    gnosygnu - 2013-10-21
    • status: done --> closed
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks