Bugreporter added a comment.

I think we should replace the current "relation" property to two new properties A and B (don't know what's the suitable name)
A is like the 'instance of' property, B is like the 'subclass of' property. Item X is in class Y iff X <a> Y1 <b1> Y2 <b2> ... <bn> Y, where a is one of A's value (or X=Y1 if a=novalue), b1, b2, ... are one of B's value, n is non-negative integer.

e.g.
instance of relation => A=P31, B=P279
subclass of relation => A=novalue, B=P279 (A=P279, B=P279 if the type item itself should be excluded)
instance or subclass of relation => A=P31 and novalue, B=P279
T173593 (1) => A=novalue, B=P171
T173593 (2) => A=P31, B=P171
T173596 => A=P106, B=P279

I think hardcoded WBQualityConstraintsInstanceOfId and WBQualityConstraintsSubclassOfId should be removed so that it will be easy to check other properties with a interesting chain (e.g. P131, P22).


TASK DETAIL
https://phabricator.wikimedia.org/T169858

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Bugreporter
Cc: Bugreporter, Jheald, MisterSynergy, Lydia_Pintscher, Marsupium, Esc3300, Lucas_Werkmeister_WMDE, Aklapper, GoranSMilovanovic, QZanden, Agabi10, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to