W3C home > Mailing lists > Public > semantic-web@w3.org > October 2010

Re: Limiting a query by setting a maximum number of distinct values for a given variable.

From: Damian Steer <pldms@mac.com>
Date: Sat, 16 Oct 2010 10:51:05 +0100
Cc: Semantic Web <semantic-web@w3.org>
Message-id: <11F6ED26-236A-4110-A3CD-5A810143C8E6@mac.com>
To: Olivier Rossel <olivier.rossel@gmail.com>

On 15 Oct 2010, at 21:23, Olivier Rossel wrote:

> Is there a way to constrain my SPARQL queries to return all the data for the
> first 100 towns, then all the data for the second 100 towns, etc ?
> 
> Note: oh, by the way, in my app, I use CONSTRUCT and SELECT ! I don't know if
> that is an important point. But anyway... :)

It is important since you could do this using describe :-)

DESCRIBE ?town {
   ...
} LIMIT 100

One of the many things I like about describe.

Damian
Received on Saturday, 16 October 2010 09:51:40 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:41:24 UTC