queryall/queryall — pull request #23 by ansell (2012-04-19 05:38:55+00:00)
Title: Fix bugs including multiple duplicate query bundles and duplicate statements

Duplicate query bundles were a result of not overriding equals and hashCode in QueryBundle, and not using a HashSet to ensure duplicates were ignored

Duplicate statements were a relatively old issue caused by the introduction of contexts to all statements to support nquads and other quads based RDF formats. The fix for these statements required duplication in memory, as java does not offer a duplicate fixing solution with ordering, so the duplicates were filtered out using a HashSet and then the statements were exported to an ArrayList and the results were sorted using a context-insensitive comparator.

Other bugs fixed since yesterday include removing the RDF/XML parsing of HTML error pages that come back with HTTP 200 as a result of misconfigured servers, none of which shall be named.

Also fixed a situation where a QueryType was being recognised even though it didn't actually correspond to anything, and the test for this behaviour which assumed that the top level query type existed, and that it would then be empty below that.