Re: SPARQL: sorting resources by label?

On Sat, 2010-03-13 at 04:16 +0100, Axel Rauschmayer wrote:
> > OPTIONAL {
> >             ?subj ?labelPred ?label .
> >             FILTER (
> >                 (?labelPred =
> > <http://www.w3.org/2000/01/rdf-schema#label>) # (1)
> >             )
> >             FILTER( isLiteral(?label) )
> >         }

I use something like:

 OPTIONAL {
   ?subject ?labelprop ?label .
   GRAPH <http://buzzword.org.uk/2009/label-properties> {
     ?labelprop a <http://buzzword.org.uk/2009/label-properties#LabelProperty> .
   }
   FILTER( isLiteral(?label) )
 }

Having first loaded http://buzzword.org.uk/2009/label-properties into
the store.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Sunday, 14 March 2010 19:05:35 UTC