Is it possible to get the position of an element in an RDF Collection in SPARQL?
A Pure SPARQL 1.1 Solution I’ve extended the data to make the problem a little harder. Let’s add a duplicate element to the list, e.g., an additional :a at the end: @prefix : <http://example.org#> . :ls :list (:a :b :c :a) . Then we can use a query like this to extract each list node … Read more