EBernhardson added a comment.

i wonder if we could rather have some sort of relationship (name tbd) keyword field that encodes both parts

That would depend on whether we could use such things for boosting/de-boosting. If yes, this certainly could be a way to go. That, however, makes it harder to do queries like "has P31" but maybe it's ok.

I think we can come up with an analysis chain that will split on the : such that we can query a separate field (relationship.pieces? i dunno) for P31 or Q4167410 if we don't care about what the exact relationship is, just that it possibly exists. We could certainly use this sort of thing for boosting/deboosting, it would probably be another constant score query with an appropriate filter set to provide the boost/deboost when the relationship exists.

cannot possibly encode all the possible relationships, especially qualifiers

I intend to ignore qualifiers for now. I planned to add this to task desc and forgot, thanks for reminding!


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

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

To: EBernhardson
Cc: EBernhardson, dcausse, daniel, Aklapper, Smalyshev, GoranSMilovanovic, QZanden, EBjune, 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