We provide a context menu entry to save the underlying kgraph of a klighd view. However, at the moment it is only possible to save to the workspace. It would be nice to be able to save to the filesystem as well.
The current behavior is implemented in the KlighdSaveKGraphHandler.
It might help to have a look at the two following methods that implement a similar behavior: