W3C home > Mailing lists > Public > public-lod@w3.org > March 2010

Re: SPARQL: sorting resources by label?

From: Axel Rauschmayer <axel@rauschma.de>
Date: Sat, 13 Mar 2010 05:00:10 +0100
Message-Id: <D3CE6A5F-BC4B-4539-990F-87F239141478@rauschma.de>
Cc: public-lod@w3.org
To: Danny Ayers <danny.ayers@gmail.com>
I have a GUI data structure that is a pair (resource, label). The label is used for humans, the resource is used to process RDF.

If I want SPARQL to produce list of these pairs ordered by label, this is the simplest query that I can think of.

This is but a start, I will later insert more FILTERs (for faceted navigation etc.).

Axel

On Mar 13, 2010, at 4:51 , Danny Ayers wrote:

> On 13 March 2010 04:16, Axel Rauschmayer <axel@rauschma.de> wrote:
> 
>> Thanks for any comments or suggestions...
> 
> I'm a little perturbed that you have to use something so convoluted to
> get labels....
> 
> Why not something just like (whatever graph)  SELECT ?o WHERE { ?s
> rdfs:label ?o } , or at worse an OPTIONAL on maybe dc:label or
> whatever..?
> 
> - are the objects of any labels resources?
> 
> Can you please clarify what you are looking for, and explain further -
> I honestly hope you are missing something there.
> 
> If there is something wrong with the material, the problems should be
> surfaced and fixed (and no doubt will be for the next rev, if need be)
> 
> Cheers,
> Danny.
> 
> http://danny.ayers.name
> 

-- 
Axel.Rauschmayer@ifi.lmu.de
http://www.pst.ifi.lmu.de/~rauschma/
Received on Saturday, 13 March 2010 04:00:39 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 31 March 2013 14:24:25 UTC