W3C home > Mailing lists > Public > www-rdf-interest@w3.org > January 2002

Graphotron and RDF

From: Miloslav Nic <nicmila@systinet.com>
Date: Fri, 11 Jan 2002 16:46:15 +0100 (CET)
To: <www-rdf-interest@w3.org>
Message-ID: <Pine.LNX.4.33.0201111628340.14921-100000@mail.idoox.com>


Hello, 

when I started to  work on Graphotron 
( http://zvon.org/ZvonSW/ZvonGraphotron/index.html )

I though of RDF as one of its possible targets.


Graphotron outputs at this moment to graphviz, vcg, and daVinci ,

(SVG output can be achieved via Graphviz).

I have started to play with :
An RDF Schema for the XML Information Set
(http://www.w3.org/TR/xml-infoset-rdfs)

and it proved to be rather easy to generated graphs for this 
document.

Unfortunately, number of projects I am at this moment involved
grows in a geometric row and so it can take a long time before I 
can do  some real work on this subject.

I am looking for collaborators who would experiment with 
graphotron and RDF. I can help with writing graphotron files and XPaths,
and as prototyping in Graphotron is very fast 
we can test quite a few ideas how to represent RDF data graphically.



There is an example of graphotron file I wrote for XML Information Set 
schema below. It is a generic file which could be applicable 
to many different RDF described domains. It was an hour work and so there 
are probably many omissions, but as a prove of concept it can serve :

<graphotron version="1.0"
xmlns="http://zvon.org/graphotron"
xmlns:dot="http://zvon.org/graphotron/dot"
xmlns:vcg="http://zvon.org/graphotron/vcg"
xmlns:daVinci="http://zvon.org/graphotron/daVinci"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>

<key name="class" match="rdfs:Class" use="@ID"/>
<key name="subClassOf" match="rdfs:subClassOf" use="@resource"/>

<global-settings>
<vcg:orientation>left_to_right</vcg:orientation>
</global-settings>

<vertex match="//rdfs:Property">
<name select="@ID"/>
<dot:shape>ellipse</dot:shape>
<vcg:shape>ellipse</vcg:shape>
<vcg:color>black</vcg:color>
<vcg:textcolor>yellow</vcg:textcolor>
<daVinci:_GO>ellipse</daVinci:_GO>
</vertex>

<vertex match="//rdfs:Class">
<name select="@ID"/>
<dot:shape>box</dot:shape>
<vcg:shape>box</vcg:shape>
</vertex>

<vertex match="//rdfs:subClassOf[substring(@resource,1,1)!='#']">
<name select="@resource"/>
<vcg:shape>box</vcg:shape>
</vertex>


<edge match="//rdfs:Class"
      select="key('subClassOf',concat('#',@ID))/parent::*"/>

<edge match="//rdfs:subClassOf[substring(@resource,1,1)!='#']"
      select="parent::*"/>

<edge match="//rdfs:Property" 
select="key('class',substring-after(rdfs:domain/@resource,'#'))">
<vcg:color>red</vcg:color>
<dot:color>red</dot:color>
<daVinci:EDGECOLOR>red</daVinci:EDGECOLOR>
</edge>

<edge match="//rdfs:Property" 
select="key('class',substring-after(rdfs:range/@resource,'#'))">
<vcg:color>blue</vcg:color>
<dot:color>blue</dot:color>
<daVinci:EDGECOLOR>BLUE</daVinci:EDGECOLOR>
</edge>


</graphotron>

   

-- 
******************************************
<firstName> Miloslav </firstName>
<surname>   Nic      </surname>

<mail>    nicmila@systinet.com    </mail>
<support> http://www.zvon.org  </support>
Received on Friday, 11 January 2002 10:46:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:52 GMT