- From: Tim Berners-Lee <timbl@w3.org>
- Date: Mon, 23 Apr 2007 16:16:33 -0400
- To: Andrea Perego <andrea.perego@uninsubria.it>
- Cc: Public CWM <public-cwm-talk@w3.org>
You could use string:match and string:scrape with regexps. Tim BL On 2007-04 -23, at 04:52, Andrea Perego wrote: > > I'm trying to use N3+Cwm in order to decompose a URI into its > components > (scheme, authority, path, etc.). > > Suppose we have a resource > > <http://www.example.com/example1?sec=1#note2> a foaf:Document . > > and we wish to extend it as follows > > <http://www.example.com/example1?sec=1#note2> a foaf:Document; > uri:scheme "http"; > uri:host "www.example.com"; > uri:path "/example1"; > uri:query "sec=1"; > uri:fragment "note2" . > > Is it possible to obtain this through a rule? I checked Cwm's built- > ins > (especially LOG and STRING), but I couldn't find any tip explaining > how > this can be done. > > Thanks > > Andrea > >
Received on Monday, 23 April 2007 20:16:46 UTC