Page MenuHomePhabricator

New constraint type for type of snak
Open, Needs TriagePublic

Description

... so that we can specify whether we allow a property to have novalue or somevalue as value.

Event Timeline

Do you have some examples where we explicitly want to say that novalue and somevalue are not allowed? They should theoretically be allowed everywhere.

Quick example: biographical properties like date of birth are known or unknown but they always exist (everybody was born some time somewhere), so novalue doesn't make sense. This constraint could help catch this abuse, as well as somevalue × novalue confusions. I realize now this could be implemented together with T183092: Make an obvious way of blacklisting a value for a property.

Not really, both “one of” and “none of” are only for item values so far, not for other types of values (like time values).