ordered results in the results format specs

I'm trying to encode some simple test cases for sorting and need a way 
to encode ordered query results.

As we discussed at the last telcon, the RDF variable binding results 
format could be extended with an :index property (with an integer 
value) to capture this:

[]    rdf:type    rs:ResultSet ;
       rs:resultVariable  "n" ;
       rs:solution
                   [ rs:index "1"^^xsd:integer ;
                     rs:binding  [ rs:value     "John" ;
                                   rs:variable  "n"
                                 ]
		  ] ;
       rs:solution
                   [ rs:index "2"^^xsd:integer ;
                     rs:binding  [ rs:value     "George" ;
                                   rs:variable  "n"
                                 ]
		  ] ;

...etc.

One question that was raised is how this affects current testing 
tools. I personally do not see much of a problem provided this 
property is part of the actual query result - testing can still be 
done using graph matching. Any comments?

Another issue is the XML result format. An option is to not specify 
anything explicitly and simply rely on XML's element ordering, but I 
understood from Dave that the current WD explicitly specifies that the 
result is unordered. There are two options here that I can see:

  1. amend the WD to say that in the case of a query using sort, the
     xml result _is_ ordered implicitly.
  2. add an explicit tag to the XML result to indicate that the result
     is ordered.

My preference would be option 2.


Jeen
-- 
Jeen Broekstra          Aduna BV
Knowledge Engineer      Julianaplein 14b, 3817 CS Amersfoort
http://aduna.biz        The Netherlands
tel. +31 33 46599877

Received on Monday, 18 April 2005 10:26:45 UTC