W3C home > Mailing lists > Public > public-cwm-talk@w3.org > October to December 2004

Question on uri generation in N3

From: Jones, David H <david.h.jones@boeing.com>
Date: Thu, 4 Nov 2004 10:43:47 -0800
Message-ID: <80A0914E4AFDE145B3888E6A107CF65A06B16099@xch-nw-05.nw.nos.boeing.com>
To: <public-cwm-talk@w3.org>

I'd like to know what techniques are available in N3 for generating uri's.

The way that I figured out is as follows:

{?x a ace:Document. ("http://www.congo.org/book#" ?x.ace:Document_ID) string:concatenation ?y. ?z log:uri ?y} => {?z a congo:Book.}.

Does N3 provide any other alternatives for geneating uri's?

Is there a way to use a prefix (by itself) in a rule?  Along the lines below (which doesn't work).

@prefix congo: <http://www.congo.org/book#>.
{?x a ace:Document. (<congo> ?x.ace:Document_ID) string:concatenation ?y. ?z log:uri ?y} => {?z a congo:Book.}.

> Regards,
> 
> David H. Jones
> Boeing Phantom Works, 
> Mathematics & Computing Technology
> 425-865-6924 
> 425-865-2964 (FAX)
> david.h.jones@boeing.com
> 
> 
Received on Thursday, 4 November 2004 18:44:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:01 GMT