epimorphics / elda

Epimorphics implementation of the Linked Data API
Other
53 stars 27 forks source link

acceleration: Sorting on URI nodes. #90

Closed skwlilac closed 7 years ago

skwlilac commented 10 years ago

I see that you can sort on property values, even URI nodes. Sorting URI nodes on the 'spelling' of the URI may not be the best approach. It's probably more useful to sort on an rdfs:label or skos:prefLabel associated with the URI. Give appropriate shortname decls and some non-literal valued property, :

&sort=<prop>.prefLabel,<prop>.label

will sort by prefLabel and (in the absence of a prefLabel) by label.

ijdickinson commented 10 years ago

I've added a fix for this. I've made the sort order for property p be _sort=p.label,p.prefLabel,p, so that some stable order is achieved even if the resource has no labels

ijdickinson commented 10 years ago

I've decided to back out this change for now. Arguably it will give unexpected results in other ways (sorting by bathing water URI will cluster the results geographically), and it makes calculating the sort removal links complicated. My suggestion is that we leave it as sorting lexically by URI, and see what user feedback we get.

ijdickinson commented 7 years ago

There hasn't been any negative feedback on this, so closing.