SPARQL group by and order by: not ordered

前端 未结 2 1516
伪装坚强ぢ
伪装坚强ぢ 2021-01-23 14:08

I follow up on query where the schema.org database is used to find the number of children of a class - as a simpler database than my application. I want to get the names of the

2条回答
  •  囚心锁ツ
    2021-01-23 14:16

    18.5.1.7 GroupConcat:

    The order of the strings is not specified.


    From the horse's mouth:

    On 2011-04-22, at 19:01, Steve Harris wrote:

    On 2011-04-22, at 06:18, Jeen Broekstra wrote:

    However, looking at the SPARQL 1.1 query spec, I think this is not a guaranteed result: as far as I can tell the solution modifier ORDER BY should be applied to the solution sequence after grouping and aggregation, so it can not influence the order of the input for the GROUP_CONCAT.

    That's correct.

提交回复
热议问题