Re: SPARQL: restricting DESCRIBE queries

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