Christian Weiske wrote:
>Enrico,
>
>
>
>
>>but the result is not the one I expect.
>>I got under 50 solutions (so i thought there are not more than 50
>>solutions) but if use an OFFSET of 50 or so, i got more results.
>>
>>
>
>Is this when iterating from 0 to 50 over the array? The result keys are
>not in a row, they may have "holes" in them:
>array(0 => (), 1 => (), 5 => (), 6 => (), 7 =>())
>
>Or is the count($array) wrong?
>
>
>
The count($array) is wrong and the first index of $array should go 0 up
to 50. If the index is greater than 50 the process is stopped. The
problem is that the sparql-query specification say's:
"If |DISTINCT| and |LIMIT| or |OFFSET| are specified, then duplicates
are eliminated before the limit or offset is applied."
but the RAP do not so. I think the RAP works so. The Limit and OFFSET
restrict the Statements and now DISTINCT operates on these "subgraph".
Enrico
|