openrefine-wikibase icon indicating copy to clipboard operation
openrefine-wikibase copied to clipboard

enable inverse path as additional prop

Open VladimirAlexiev opened this issue 4 years ago • 4 comments

Use case:

  • I have a table with Fortune 500 companies and their CEOs.
  • I first match the company, then match the CEO
  • When matching the CEO, I'd like to use P1037 director / manager. However, that prop goes in the other direction (company-CEO).

So I'd like to specify ^P1037 as additional prop of CEO, and select the reconciled Company as value.

VladimirAlexiev avatar Nov 16 '20 09:11 VladimirAlexiev

There's also P1875 represented by, so a combination of inverse and disjunction will also be useful: ^P1037|^P1875 or ^(P1037|P1875)

VladimirAlexiev avatar Nov 16 '20 10:11 VladimirAlexiev

@VladimirAlexiev Why not use P169 chief executive officer ?

thadguidry avatar Nov 16 '20 14:11 thadguidry

We would need to design a way to fetch these property values, probably via SPARQL, and assess the performance implications.

wetneb avatar Nov 16 '20 15:11 wetneb

@thadguidry that would mean we need ^(P1037|P1875|P169)

VladimirAlexiev avatar Nov 24 '20 19:11 VladimirAlexiev

No way to implement this in an efficient way given the current architecture, sadly.

wetneb avatar Nov 10 '22 19:11 wetneb