Graph-based Selectors

Semantic Web Interest Group,

Hello. I am pleased to share with the group a CSS-based syntax for selecting and styling both nodes and edges from graphs. While the motivating use case involves styling  adding properties and values to  the states and transitions of finite-state machines, the syntax can also be useful for selecting nodes and edges from Semantic Web graphs.

A document describing the syntax is available here: .

For an example, here is some RDF/XML content:

<rdf:Description rdf:about=""
        <rdf:Description rdf:about="" />
      <ex:fullName>Dave Beckett</ex:fullName>
  <dc:title>RDF 1.1 XML Syntax</dc:title>

With the new syntax, one could select and style a node or edge:

@namespace rdf url(
@namespace ex  url(

   color: blue;

Best regards,
Adam Sobieski

Received on Monday, 23 October 2023 09:15:38 UTC