Page MenuHomePhabricator

Universally allowed qualifiers
Closed, ResolvedPublic

Description

The qualifiers P2241 (reason for deprecation), P7452 (reason for preferred rank) and P4390 (mapping relation type) should automatically be valid for all properties. Specifically:

  • They should never trigger a constraint violation regardless of the "allowed qualifiers" settings on any specific property
  • Property creators should not have to specify them as allowed qualifiers when creating new properties.

We need to understand how this could be accomplished, whether through creating a new class of qualifiers called "universally allowed qualifier" or something similar or if it needs to be accomplished through the back end on these specific properties.

If feasible, it would be nice to have if setting <instance of> "universally allowed qualifier" on a qualifier-property would allow an editor to add other qualifiers to this list.

See support discussion at https://www.wikidata.org/w/index.php?title=Wikidata:Project_chat&oldid=1098242119#Deprecation_and_preferred_rank

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This shouldn’t be too difficult to implement (though I’d strongly favor a version where the universally allowed qualifiers are just a static list in the extension configuration – a class statement on the property entities would be a lot worse for performance), but it might not happen soon. In the meantime, it might help to add those qualifiers to “allowed qualifiers” constraints explicitly, e. g. by plugging the results of this query into QuickStatements.

I understand the need but we are making the system more and more complicated. Would it be ok for the time being to follow Lucas' advice and do a quick quickstatements run?

Running the first batch now.

As @Esc3300 @Jura1 has already reverted a couple of these, I am holding off running more batches for now. Posted on their talk page.

Update: I plan to start running batches again today or tomorrow, manually removing any properties that have been reverted on prior runs. So far there are only 4 of them, so this approach should be manageable.

Completed for all properties through P6801 except for a few that have been reverted. Big thank you to whatever team got QuickStatements working again.

Lydia_Pintscher claimed this task.

Awesome. Thank you @PKM! Then I will close this and we'll keep the system simpler for now.