EBernhardson added a comment. |
In T175199#3585954, @Smalyshev wrote: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!
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