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()
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)"
Last edit: Amir 2013-06-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
property datatype
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)"
Last edit: Amir 2013-06-13
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.