Re: SPARQL: sorting resources by label?

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