Use case: chunking

An airline booking system. The client (to the airline KB) requests the 10
cheapest options for a user who wishes to fly from Heathrow to Schipol
between 09:00 and 21:00 on the 21st. The client wishes to only receive the
10 best matches, to avoid waiting on all possible matches being received.
In a RDQL+bits of SQL syntax:

SELECT ?flight, ?price, ?depart
WHERE (?f, <x:hasFlightCode>, ?flight),
      (?f, <x:from>, "LHR"),
      (?f, <x:to>, "AMS"),
      (?f, <x:hasPrice>, ?price),
      (?f, <x:hasDepartureTime>, ?depart)
AND ?depart >= "2004-04-21T09:00"
AND ?depart <= "2004-04-21T21:00"
ORDER by ?price ASC
LIMIT 10 OFFSET 0;

to find the 10 next best matches the client could execute
... LIMIT 10 OFFSET 10;

and so on.

- Steve

Received on Sunday, 11 April 2004 06:31:08 UTC