More gRSShopper (2)

This post is for those participants of #EL30 who like to play with graphs or/and with gRSShopper.

ScreenshotWithout modifying my own tool yet, I was able to generate interactive maps like this directly out of gRSShopper: with just two new tables, two new views and two pages.

The two tables can be obtained from here, in the .sql format that can be imported into cPanel > phpMyAdmin (a more detailed description was here).

The first of the pages, x28map.html, is used for all such maps; it just fetches the Javascript:

<!DOCTYPE html>
<body onLoad="main()">
<s cript src="h ttp://"></s cript>

The content page loaded from there, epis.xml, is mainly in XML syntax (shown in blue) and looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<keyword db=x28node;format=condensr;>
<keyword db=x28edge;format=condensr;>


where the  green <keyword> construct is gRSShopper syntax and will be replaced by contents of the two tables (nodes and edges), formatted with the following two views:


‘Topic’ is just another term for the node, which has an x and y coordinate on the map, a label, a detail field, a color, and an ID. The ID is also abused as a very initial value for the coordinates (they get 10 pixels apart by simply appending a ‘0’). The green [*x28table_column*] variables will be filled from the respective columns.


‘Assoc’iation is another term for the edge, which has two end nodes n1 and n2 (just like the original ‘graph’ table shipped with gRSShopper, has an ID ‘one’ and an ID ‘two’), plus a color, and here no details.

(If you like the demo data, here is more.)

This entry was posted in EL30 and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.