title: How to select all items of OWLList in original order?
body: <p>I was wondering, how to select all list (<a href="https://protege.stanford.edu/conference/2006/submissions/abstracts/7.1_Drummond_listsInProtegeOWL.pdf" rel="nofollow noreferrer">OWLList based structure</a>) items in the order they are presented in OWLList structure using SPARQL.</p>
  
  <p>Let's consider the example from the paper:</p>
  
  <pre><code>OWLList ANDhasContents SOME Ser AND
     hasNext SOME ( OWLList ANDhasContents SOME Gly AND
         hasNext SOME (OWLList ANDhasContents SOME Lys AND
             hasNext SOME EmptyList))
  </code></pre>
  
  <p>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).</p>