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 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.