I was wondering, how to select all list (OWLList based structure) items in the order they are presented in OWLList structure using SPARQL.
Let's consider the example from the paper:
OWLList ANDhasContents SOME Ser AND
hasNext SOME ( OWLList ANDhasContents SOME Gly AND
hasNext SOME (OWLList ANDhasContents SOME Lys AND
hasNext SOME EmptyList))
This structure describes the list (Ser, Gly, Lys). So then one can ask the question "give me the original sequence" and the answer must be (Ser, Gly, Lys).