Grailog embodies a systematics to visualize knowledge sources by graphical elements. Its main benefit is that the resulting visual presentations are easier to read for humans than the original symbolic source code. In this paper we introduce a methodology to handle the mapping from Datalog RuleML, serialized in XML, to an SVG representation of Grailog, also serialized in XML, via eXtensible Stylesheet Language Transformations (XSLT) 2.0/XML; the SVG is then rendered visually by modern Web browsers. This initial mapping is realized to target Grailog's "fully node copied" normal form. Elements can thus be translated one at a time, separating the fundamental Datalog-to-SVG translation concern from the concern of merging node copies for optimal (hyper)graph layout and avoiding its high computational complexity in this online tool. The resulting open source Grailog Knowledge-Source Visualizer (Grailog KS Viz) supports Datalog RuleML with positional relations of arity n>1. The on-the-fly transformation was shown to run on all recent major Web browsers and should be easy to understand, use, and extend.
[1]
Letizia Tanca,et al.
What you Always Wanted to Know About Datalog (And Never Dared to Ask)
,
1989,
IEEE Trans. Knowl. Data Eng..
[2]
Ismail Akbari,et al.
Visualizing SWRL's Unary/Binary Datalog RuleML in Grailog
,
2012
.
[3]
Harold Boley.
Grailog 1.0: Graph-Logic Visualization of Ontologies and Rules
,
2013,
RuleML.
[4]
Andreas Neumann.
Scalable Vector Graphics (SVG)
,
2008,
Encyclopedia of GIS.
[5]
C. M. Sperberg-McQueen,et al.
Extensible Markup Language (XML)
,
1997,
World Wide Web J..