Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The class ResultSet only allows indirect access to the variables in the query results. There are a number of drawbacks to the current solution:
1) the iterator needs to be accessed to get the varNames from SolutionMapping.getKeySet()
2) I suspect that optional variable present in the Query but not in the resultset data will not appear in SolutionMapping.getKeySet()
3) If the RestultSet is empty there is no way to determine the variables;
Both Jena and Sesame support retrieving the varNames from their respective ResultSet.
See also the mailing list conversation at: http://mail-archives.apache.org/mod_mbox/clerezza-dev/201303.mbox/%3CCALvhUEUzSAoQpNXVmpTcVvR=DxZrFiDJexPgwB=JEhc7pJf7sA@mail.gmail.com%3E