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

Re: SPARQL: sorting resources by label?

From: Toby Inkster <tai@g5n.co.uk>
Date: Sun, 14 Mar 2010 19:04:54 +0000
To: Axel Rauschmayer <axel@rauschma.de>
Cc: public-lod@w3.org
Message-ID: <1268593494.27851.21.camel@ophelia2.g5n.co.uk>
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

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