Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for parsing quantity datatype #29

Merged
merged 5 commits into from Jul 30, 2020
Merged

Conversation

nelson-liu
Copy link
Contributor

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.

Copy link
Owner

@dahlia dahlia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rebase your commits on the current master?

docs/changes.rst Outdated Show resolved Hide resolved
amount=12,
lower_bound=None,
upper_bound=None,
unit=None)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't you miss an assert statement to compare decoded with gold?

nelson-liu and others added 2 commits July 30, 2020 12:23
Co-authored-by: Hong Minhee (洪 民憙) <hong.minhee@gmail.com>
@nelson-liu
Copy link
Contributor Author

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

@dahlia dahlia merged commit a5f60ec into dahlia:master Jul 30, 2020
@dahlia
Copy link
Owner

dahlia commented Jul 30, 2020

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants