Get the latest tech news
From Datalog to SVG
Exporting graph data to text file and SVG with Datalog
And importing it again is just a matter of reading the data back in, looping over the properties, and adding them to a fresh graph. While experimenting with the export I decided to make a small DSL for drawing SVGs directly from Datalog queries. I won't go into the DSL in detail here, but you can recognize the Datalog queries pretty easily as they still use the prefixed variables?x and?y as we saw above.
Or read this on Hacker News