dahlia / wikidata

Wikidata client library for Python
https://pypi.org/project/Wikidata/
GNU General Public License v3.0
337 stars 31 forks source link

Add support for parsing quantity datatype #29

Closed nelson-liu closed 4 years ago

nelson-liu commented 4 years ago

This PR introduces changes to support parsing quantities. See https://www.wikidata.org/wiki/Help:Data_type#Quantity for official wikidata docs

I've been using the unitless quantity at https://www.wikidata.org/wiki/Q605704 for testing, as well as the unit-bearing (and uncertain) quantity at https://www.wikidata.org/wiki/Q520.

nelson-liu commented 4 years ago

thanks for catching that, must have messed up the merge.

dahlia commented 4 years ago

Thanks again!