kgtk icon indicating copy to clipboard operation
kgtk copied to clipboard

`kgtk query` Process the graph cache without accidentally loading a file.

Open CraigMiloRogers opened this issue 4 years ago • 3 comments

Enhance kgtk query to process graphs in the graph cache without running the risk of accidentally reloading them with an operating system file.

CraigMiloRogers avatar Sep 01 '21 03:09 CraigMiloRogers

Create a new option, say --cache-only.

Plumb it through to sqlstore.py:has_graph(...)

CraigMiloRogers avatar Sep 01 '21 03:09 CraigMiloRogers

The safety issue is addressed in commit 80a2f4ff along with a few other small issues with potentially incorrect aliases. So now a spurious file that matches an existing alias will not wipe out the cache for that graph by accident. Allowing locking of individual inputs or graphs or the whole cache DB to prevent modification might be a useful enhancement down the road, so I'll leave this issue open for now.

chalypso avatar Sep 03 '21 00:09 chalypso

The branch issue/460/kypher-force-reuse has my strawperson changes.

CraigMiloRogers avatar Sep 03 '21 02:09 CraigMiloRogers