This transformation groks a limited subset of RDF:
  -- just one level of nesting (no Description/typedNodes
     as values of properties)
  -- properties are sorted by subject, collected
     in a Description element for that subject
  -- rdf:ID is not used; only rdf:about
  -- only absolute URIs are used

Arbitrary RDF can be converted to this form using
          cwm --rdf foo.rdf --bySubject --base=bogus: > foo-limited.rdf

see Semantic Web Area for Play
for details about cwm.
Dan Connolly
$Id: rdf2dot.xsl,v 1.19 2005/11/12 00:18:34 connolly Exp $

Norman Walsh updated this stylesheet on 16 Jan 2002 so that edges between nodes in different clusters are generated outside of any cluster. This prevents nodes from automatically inheriting cluster semantics. I also switched to keys() as a comment suggested.

/* transformed by by */ digraph { =" "; subgraph } " " [ =" ", ]; propertyElt in nodeElt: subj: pred: is an EdgeProperty. A given property might be used to make edges in one graph and not in another; so EdgeProperty(p) isn't well-defined those p's. It seems that edge-ness is a function of the graph and the property; i.e. a relation between them. So EdgeProperty is deprecated... use hasEdgeProperty. @@oops... what about g:style, g:label, etc... should those be a function of the property and the graph? Or should we have edgeLabel and nodeLabel properties? Hmm... is an EdgeProperty. A given property might be used to make edges in one graph and not in another; so EdgeProperty(p) isn't well-defined those p's. It seems that edge-ness is a function of the graph and the property; i.e. a relation between them. So EdgeProperty is deprecated... use hasEdgeProperty @@oops... what about g:style, g:label, etc... should those be a function of the property and the graph? Or should we have edgeLabel and nodeLabel properties? Hmm... maybe my:graph g:nodeType my:Marbles; g:edgeType my:GEdgeProp; g:labelProp my:label; g:styleProp my:styleProp; EdgeProperty: pred: obj: from: to: " " -> " " [ /* edge attributes */ =" ", =cluster , ];