RTX
RTX copied to clipboard
Don't update meta map if SmartAPI returns nothing
this stems from #1928
from @edeutsch:
I wonder if it is worth putting in a little snippet of code into ARAX that IF SmartAPI yields NOTHING (or perhaps just less than some floor number of results from the query, e.g 10 or 20), then do nothing to the current cache. Just reuse it because SmartAPI is clearly not running correctly and instead of damaging existing metaKG information, just continue to operate with previous values. ?
this is a great idea. think we'll just need to update KPSelector
(and possibly smartapi.py
) to make it skip deleting 'stale' KPs from the meta map if SmartAPI returns nothing (or something tiny).