W3C home > Mailing lists > Public > public-lod@w3.org > September 2009

Re: SPARQL: restricting DESCRIBE queries

From: Toby Inkster <tai@g5n.co.uk>
Date: Mon, 7 Sep 2009 16:19:06 +0100
Message-Id: <BD7F6F48-6CBF-43CA-B732-6E49D49FBC1F@g5n.co.uk>
Cc: dbpedia-discussion@lists.sourceforge.net, public-lod@w3.org
To: Bernhard Schandl <bernhard.schandl@univie.ac.at>
On 7 Sep 2009, at 15:36, Bernhard Schandl wrote:

> DESCRIBE ?concept WHERE { ?concept rdfs:label "Berlin"@en . } LIMIT 2
>
> returns some ~4500 triples because it includes the description of  
> dbpedia:Berlin.
>
> Any suggestions how I could limit the number of triples returned by  
> such a query?


Fake it with CONSTRUCT?

CONSTRUCT { ?concept ?p ?o . }
WHERE { ?concept rdfs:label "Berlin"@en ; ?p ?o . }
LIMIT 2

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Monday, 7 September 2009 15:19:49 UTC

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