W3C home > Mailing lists > Public > www-rdf-interest@w3.org > September 2003

Re: [CWM] Question about notation, restoring trees out of triples

From: Graham Klyne <GK@ninebynine.org>
Date: Mon, 08 Sep 2003 11:18:28 +0100
Message-Id: <>
To: James Michael DuPont <mdupont777@yahoo.com>, www-rdf-interest@w3.org

I tried to do something vaguely similar a while ago, which seemed to 
require recursively-defined rules.  Unfortunately, CWM choked on these, and 
I came to the conclusion that what I wanted to do was not possible using 
CWM, though it's possible that things have changed since, so I've now gone 
off on a very different tack.

Some notes of my experiments are here:


At 00:26 08/09/03 -0700, James Michael DuPont wrote:

>Dear Rdf Interested,
>Can you please help think about this problem :
>I would like to transform a set of triples that form an a-cyclic graph,
>a tree even from this notation :
>_:foo     <#rel> _:bar .
>_:bar     <#rel> _:baz .
>Into this notation :
>_:foo     <#rel> [ <#id> _:bar;  <#rel> _:baz ].
>The problem is that i would also like to copy the attributes :
>_:bar     <#attr> "FooBar" .
>as well
>to make
>_:foo     <#rel> [ <#id> _:bar;  <#rel> _:baz;  <#attr> "FooBar" ].
>The rules I have tried are  :
>   ?X ?P ?Y.
>?X  ?P
>     [
>         :id ?Y.
>     ]
>But the produces lots on anonymous [id: <#blah>] objects that are not
>Is it possible to restore such a tree structure back in the [ a :tree;
>:branch [ a :branch]] notation using cwm?
>if so how can this be done? If not, does anyone else need this feature?
>James Michael DuPont
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software

Graham Klyne
Received on Monday, 8 September 2003 06:50:27 GMT

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