Return a nested data structure from a SPARQL query

前端 未结 3 859
不知归路
不知归路 2021-02-15 16:22

If I have a graph with this kind of structure:

@prefix  :        .
@prefix  rdf:     .
         


        
3条回答
  •  無奈伤痛
    2021-02-15 17:08

    Both answers do not mention the danger of Cartesian explosion. If you have mulivalued fields of the root person, these will be multiplied by the multiple related persons, creating unnecessary rows. A construct may collapse those extra rows, but still: the worry should not make them in the first place. So use Union instead of straight patterns.

提交回复
热议问题