W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2009

Re: ProjectExpressions without concat

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 16 Jun 2009 12:24:35 +0100
Cc: "Seaborne, Andy" <andy.seaborne@hp.com>, Kjetil Kjernsmo <Kjetil.Kjernsmo@computas.com>, "public-rdf-dawg@w3.org" <public-rdf-dawg@w3.org>
Message-Id: <E9DC10D3-F927-440C-BC82-3FE445436B9C@garlik.com>
To: Axel Polleres <axel.polleres@deri.org>
On 15 Jun 2009, at 23:27, Axel Polleres wrote:

> Kjetil was concerned since fn:concat wasn't supported yet in  
> standard SPARQL. An alternative would be to resort to something  
> else, like e.g. STR():
>
> e.g.
>
>   CONSTRUCT { ?x ex:mailstring STR(?mbox) . }
>   WHERE { ?x foaf:mbox ?mbox }

My feeling is that combining Projection and construct expressions is a  
bad idea, these are distinct features.

> or (using subqueries)
>
>   CONSTRUCT { ?x ex:mailstring ?m . }
>   WHERE {
>     { SELECT ?x, STR(?mbox) AS ?m
>       ?x foaf:mbox ?mbox
>     }
>
> but I am quite unsure... is there anyone supporting this?

Anyone who supports subselects will support the latter, by default.

- Steve

-- 
Steve Harris
Garlik Limited, 2 Sheen Road, Richmond, TW9 1AE, UK
+44(0)20 8973 2465  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10  
9AD
Received on Tuesday, 16 June 2009 11:25:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:39 GMT