TriplyDB / Yasgui

Yet Another Sparql GUI
https://yasgui.triply.cc
MIT License
178 stars 54 forks source link

How to override Sparql Response before calling any rendering plugins #218

Open EmmanuelDemey opened 1 year ago

EmmanuelDemey commented 1 year ago

Hi,

Before rendering the result of a Sparql query, I would like to do some processing on the JSON returned by the the sparql endpoint (in order to rewrite some data for example).

After looking to the code of Yasgui, Yasr and Yasqe, I did not find any configuration available for this kind of behavior.

Do you have any tips in order implement what I need ?

Thanks.

tfrancart commented 2 months ago

We have the same need and we do that in the YasR rendering plugin themselves : https://github.com/sparna-git/Sparnatural-yasgui-plugins/blob/main/src/sparnatural-yasr-tablex-plugin/index.ts#L81