W3C home > Mailing lists > Public > semantic-web@w3.org > June 2010

Re: What is it that's wrong with rdf:List

From: Pierre-Antoine Champin <swlists-040405@champin.net>
Date: Wed, 23 Jun 2010 19:10:04 +0200
Message-ID: <4C223FEC.2020203@champin.net>
To: Paul Gearon <gearon@ieee.org>
CC: Andy Seaborne <andy.seaborne@talis.com>, Semantic Web <semantic-web@w3.org>
On 23/06/2010 15:08, Paul Gearon wrote:
> On Wed, Jun 23, 2010 at 3:59 AM, Pierre-Antoine Champin
> <swlists-040405@champin.net> wrote:
>> By the way, is there a clean way in SPARQL to retrieve *all* items of an
>> rdf:Seq, which would preserve the order ?
>>
>> The only way I can think of involves FILTER, regex on URIs, and would
>> put item #11 before item #2...
> 
> I have to check, but I believe that substring will be a function in
> SPARQL 1.1 (perhaps with a domain). Some triplestores already have
> this. Once you have it you can say something like:
> 
> SELECT ?seq ?element WHERE {
>  ?seq ?prop ?element FILTER regex(?prop,
> "^http://www.w3.org/1999/02/22-rdf-syntax-ns#_")
> }
> ORDER BY xsd:int(substring(?prop, 45))

you can do that in an ORDER BY? Wow.

Thanks for the tip.

  pa
Received on Wednesday, 23 June 2010 17:10:44 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:36 GMT