How to resolve the execution limits in Linkedmdb

前端 未结 1 1837
清酒与你
清酒与你 2020-12-21 09:58

I was trying to extract all movies from Linkedmdb. I used OFFSET to make sure I wont hit the maximum number of results per query. I used the following scrip in python

<
相关标签:
1条回答
  • 2020-12-21 10:51

    Your current query is legal, but but there's no specified ordering, so the offset doesn't bring you to a predictable place in the results. (A lazy implementation could just return the same results over and over again.) When you use limit and offset, you need to also use order by. The SPARQL 1.1 specification says (emphasis added):

    15.4 OFFSET

    OFFSET causes the solutions generated to start after the specified number of solutions. An OFFSET of zero has no effect.

    Using LIMIT and OFFSET to select different subsets of the query solutions will not be useful unless the order is made predictable by using ORDER BY.

    0 讨论(0)
提交回复
热议问题