Open KonradHoeffner opened 2 years ago
In the result above, "AmigaOS_4" is sorted before "AmigaOS", although it should come afterwards
Perhaps this is because of the following comment specified in the _QB.py file.
order: URIRef
# indicates a priority order for the components of sets with this structure, used to guide presentations - lower order numbers come before higher numbers, un-numbered components come last
See algebra.py
for more.
The following query produces the same ordering whether I sort between ?suffix or ?uri on the Virtuoso SPARQL endpoint http://hitontology.eu/sparql:
However when I perform the same query using RDFLib and when ordering by ?uri I get a different result:
In the result above, "AmigaOS_4" is sorted before "AmigaOS", although it should come afterwards.
Strangely, this problem goes away when I add ?uri to the SELECT clause:
Where does this problem originate? Does it treat "rows" as a set with undefined ordering and when converting to a list it uses some RDFLib internal sorting mechanism?
According to https://www.w3.org/TR/sparql11-query/#modOrderBy: