W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2005

ordered results in the results format specs

From: Jeen Broekstra <jeen@aduna.biz>
Date: Mon, 18 Apr 2005 12:28:40 +0200
Message-ID: <42638BD8.4020609@aduna.biz>
To: public-rdf-dawg@w3.org

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:index "1"^^xsd:integer ;
                     rs:binding  [ rs:value     "John" ;
                                   rs:variable  "n"
		  ] ;
                   [ rs:index "2"^^xsd:integer ;
                     rs:binding  [ rs:value     "George" ;
                                   rs:variable  "n"
		  ] ;


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 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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:47 UTC