Last modified: 2014-09-09 14:34:13 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 T56543, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54543 - get datatype of a Wikibase property via API
get datatype of a Wikibase property via API
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
compat-(1.0)
All All
: Low enhancement
: ---
Assigned To: Amir Ladsgroup
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-24 22:28 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-09 14:34 UTC (History)
3 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-09-24 22:28:41 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/patches/618/
Reported by: beta16
Created on: 2013-06-07 10:04:39
Subject: WikiData: property datatype
Assigned to: amird
Original description:
in file attached there's a simple function for determine datatype of a wikidata property via API, instead use of "isinstance".
Useful in DataPage.editclaim\(\)
Comment 1 Kunal Mehta (Legoktm) 2013-09-24 22:28:43 UTC
property datatype
Comment 2 Kunal Mehta (Legoktm) 2013-09-24 22:28:45 UTC
- **assigned_to**: nobody --> amird
Comment 3 Kunal Mehta (Legoktm) 2013-09-24 22:28:47 UTC
Looks good, I will commit and make related changes 

I want to add a comment but the new system don't let me
"It's seems a bad idea because getting datatype each time we want to make a edit put lots of pressure on server I think using a cache for properties would be better (like featured.py)"
Comment 4 Kunal Mehta (Legoktm) 2013-09-24 22:28:49 UTC
Now I can post a new comment, so I'll respond here too.

Your idea is really interesting, would be a good thing the use of the cache, either for speed and for the bandwidth.
Comment 5 Gerrit Notification Bot 2013-10-26 15:54:53 UTC
Change 92074 had a related patch set uploaded by Gerrit Patch Uploader:
Add function to determine datatype of a wikidata property via API instead of via "isinstance"

https://gerrit.wikimedia.org/r/92074
Comment 6 Gerrit Notification Bot 2014-09-09 14:34:13 UTC
Change 92074 merged by jenkins-bot:
Add function to determine datatype of a wikidata property via API instead of via "isinstance"

https://gerrit.wikimedia.org/r/92074

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


Navigation
Links