Page MenuHomePhabricator

Add “no bounds” constraint
Closed, ResolvedPublic

Description

As a data maintainer I want to be able to find problematic values that have a explicitly defined bound but should not. I want to be able to define per property if it should take bounds or not.

We should have a new constraint type No bounds for quantity properties that are about non-physical quantities without uncertainty. This is in fact a substantial fraction of Wikidata quantity properties. Since use of bounds indicates uncertainty and we cannot use novalue for bounds, we need to indicate the absence of uncertainty by using no bounds at all, rather than ±0 bounds.

Transferred to phabricator from wikidata.

See README for the steps to add a new constraint type.

Event Timeline

Do you think some properties that are definitely physical might also need the opposite, a constraint that says the values should always have uncertainty? In that case we could perhaps merge the constraint types into one, and have a parameter that determines whether values should have bounds or not…

Change 425332 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/extensions/WikibaseQualityConstraints@master] Add “no bounds” constraint

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

Change 425332 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@master] Add “no bounds” constraint

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

Change 427900 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseQualityConstraints@master] Add NoBoundsChecker in DelegatingConstraintCheckerTest

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

Change 427900 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@master] Add NoBoundsChecker in DelegatingConstraintCheckerTest

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