|
From: Rob V. <rv...@do...> - 2010-02-22 12:03:04
|
Hi Alexander I have added an additional property as of revision 626 which allows you to get elements by index plus a Count property that lets you find out how many values a result contains. SPARQL queries in general don't necessarily guarantee any order for Variables although if you've specified specific variables in the SELECT clause they should in theory be returned in order. From an API standpoint it's more convenient to have the values in a dictionary associated with their variable names. Thanks, Rob Vesse From: Alexander Sidorov [mailto:ale...@gm...] Sent: 22 February 2010 10:07 To: dotNetRDF Bug Report tracking and resolution Subject: [dotNetRDF-bugs] SparqlResult by index Hello! SparqlResult doesn't support choosing element by index. As I understand the reason for that is using Dictionary as results storage (and dictionary doesn't guarantee any order). Replacing Dictionary by List could solve this problem (but maybe bring some new :) ). I think such a functionality would be useful (and I think performance would be better). Regards, Alexander |