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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of SVG

SVG

Photo of Datalog

Datalog

Related news:

News photo

An Overview of Datalog (2010)

News photo

KDE Rolling Out SVG-Based Cursor Themes, Performance Improvements

News photo

SVG Triangle of Compromise