You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of our requirements is to have custom ranking on concepts, so we have implemented this by adding an optional ranking property on concepts, then in the query to fetch the list of concepts we simply ORDER BY this ranking as follows:
ORDER BY str(if(bound(?rank), ?rank, 'ZZZ')) str(?title) ?uri
The ranking is optional for us, but concepts with a ranking should be listed before those without, so to force this we check if the ?rank variable is bound and if not then give it a value ZZZ. Otherwise in sorting according to SPARQL 1.1 standard, unbound variables are sorted before bound variables.
It should be possible to sort Concepts (static or dynamic)
The text was updated successfully, but these errors were encountered: