0

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).

SVS
  • 61
  • 5
  • Like this: https://stackoverflow.com/a/17530689 – Stanislav Kralin Sep 17 '19 at 19:08
  • The only way in SPARQL to process nested complex OWL constructs is by means of property paths. – UninformedUser Sep 17 '19 at 19:09
  • @StanislavKralin your link just provides the common way of parsing RDF collections which are used in e.g. `owl:intersectionOf` constructs. That won't be enough here given that it is some OWL way of modelling lists. Clearly, the authors never had in mind that it should be processed by SPARQL. I'm not saying it's impossible, but at least the property paths are more complex – UninformedUser Sep 17 '19 at 19:10

0 Answers0