I'm finding all the superclasses of a type, and all the superclasses of that type, and so on all the way up. I'm doing this using the + operator:
SELECT ?superclass WHERE{
<myType> <superclassPredicate>+ ?superclass
}
I would like to get these superclasses back in a reasonable order (eg most specific to least specific). Is there a way to guarantee this? I'm familiar with ORDER BY, but I'm not sure what to put into it.
To put it another way: can I keep track of how many "jumps" are made by the + operator?
EDIT
It does seems to do this by itself (at least in my implementation), but I'd like to know if this is always the case.