SPARQL 1.1 Property Paths in Marklogic 8
<p>The MarkLogic semantics documentation mentions that all SPARQL 1.1 property paths are supported, with the exception of negation.  I have been unable to get the syntax where path length is specified to work, i.e.</p>

<pre><code>elt{n,m}    A path between n and m occurrences of elt.
elt{n}      Exactly n occurrences of elt. A fixed length path.
elt{n,}     n or more occurrences of elt.
elt{,n}     Between 0 and n occurrences of elt.
</code></pre>

<p>If I try something like:</p>

<pre><code>select ?leaf ?distance {
      select  ?leaf (count(?mid) as ?distance) { 
        ?leaf &lt;http://schemas.abbvienet.com/ontologies/infrastructure.owl#manager&gt;{1,2} ?mid .
        ?mid &lt;http://schemas.abbvienet.com/ontologies/infrastructure.owl#manager&gt;{1,2} &lt;http://rdf.abbvienet.com/infrastructure/person/10019933&gt; .
      }
      group by ?leaf
    }
</code></pre>

<p>I get the following error:</p>

<blockquote>
  <p>XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected {</p>
</blockquote>

<p>Does this work for anyone else, or does anyone know whether this path syntax is supported or not in MarkLogic?</p>