Last modified: 2014-09-18 10:32:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57005, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55005 - Create pagegenerators for Wikidata (items from file, items using a given property, items linking to items, etc)
Create pagegenerators for Wikidata (items from file, items using a given prop...
Status: NEW
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Normal enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:03 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-18 10:32 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:03:11 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/341/
Reported by: apac1
Created on: 2013-08-29 03:50:31.994000
Subject: Create pagegenerators for Wikidata (items from file, items using a given property, items linking to items, etc)
Assigned to: legoktm
Original description:
Currently pagegenerators.py doesn't seem to work for Wikidata. Either existing generators would need to be adapted or new ones created.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:03:13 UTC
What do you mean? The pagegenerators work exactly the same. Can you please provide a code sample for something that doesn't work?
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:03:15 UTC
Something like 

pwb.py claimit -ref:"Property:P1234" P123 Q1234567 -namespace:0

throws an error:

pywikibot.data.api.APIError: param-missing: Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages.

Maybe it was fixed in last weeks update.
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:03:16 UTC
Actually, it also has 

WARNING: API warning (wbgetentities): Unrecognized value for parameter 'sites':
wikidatawiki

config is set with:

family = 'wikidata'
mylang = 'wikidata'
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:03:18 UTC
- **assigned_to**: Legoktm
Comment 5 Kunal Mehta (Legoktm) 2013-10-05 04:03:20 UTC
Ok, I see the issue here. claimit.py was designed to be run on a client site, not on the datasite itself. I'll get around to fixing this soon.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links