Page MenuHomePhabricator

Consider rank in haswbstatement search
Open, Needs TriagePublic

Description

Currently haswbstatement indexes all statements of some property including deprecated ones. We should have some semantic to refine the result. Proposed:

  • haswbstatement:P31=Q5 will return all items with P31=Q5 in all non-deprecated ranks
  • haswbstatement:P31a=Q5 will return all items with P31=Q5 in all ranks (the current behavior of haswbstatement)
  • haswbstatement:P31b=Q5 will return all items with P31=Q5 in the best rank among all P31 statements
  • haswbstatement:P31d=Q5 will return all items with P31=Q5 in the deprecated rank
  • haswbstatement:P31n=Q5 will return all items with P31=Q5 in the normal rank
  • haswbstatement:P31p=Q5 will return all items with P31=Q5 in the preferred rank

Note:

  • The behavior of free-text search does not change
  • Changing the behavior of haswbstatement (as proposed) should be considered as a breaking change

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 5 2019, 9:11 PM

This is more useful while searching Structured Data in Commons.

Sorry but i simply don't understand what this is. What is a preferred rank? normal? deprecated? Sorry, but I just don't know what this is