Graph Style Sheets


GSS is an RDF vocabulary for representation of data in a model of labeled directed graph. Using it will make a relatively complex data resource modeled in RDF, much easier to understand by declaring simple styling and visibility instructions to be applied on selected resources, literals and properties.

Introduction

GSS are proposed in order to visually transform the graphs: filtering information, providing alternative layouts for specific elements, and using all available visual variables to encode information, so as to visualise data in a way that better lends itself to human perception. In summary, GSS have been designed for the purpose of filtering, grouping and styling of information elements through specification of declarative transformation rules.
GSS not only associate styles to node-edge representation of RDF models, but also can be used to hide part of the graph and offer alternative layouts for some intended elements. The language lets you change the shape of nodes in the graph, change font attributes or stroke properties, and group some or all properties associated with a resource in a table and sort them. a relatively complex RDF model easier to understand by declaring simple styling and visibility instructions to be applied to selected resources and properties.

The GSS Language

GSS is a stylesheet language for styling data modeled in RDF and features a cascading mechanism. Its transformation model is loosely based on that of XSLT and its instructions resemble some existing W3C Recommendations such as CSS and SVG. In particular most of the GSS properties accept all values defined by the and Recommendations.
Any transformation rule of GSS is made of a selector-instruction pair. The left-hand side of a rule is called selector and the right-hand side is called the instruction. Such sets of rules are collected in a stylesheet and the application responsible for styling RDF model, evaluates relevant rules on data model while walking it; that is, if the selector of a rule matches a node in the data model, its set of styling instructions are applied to that node. Conflicts between rules matching the same node are resolved by giving different priority to rules in the stylesheets and most specific selector if conflicting rules are in the same stylesheet.

Tools for manipulating GSS

is equipped with a , which lets you create stylesheets without writing a single line of RDF.