SPARQL中计数列的总和

问题描述 投票:0回答:1

嗨,我是SPARQL的新手,并且需要帮助。.我编写了一个查询,查询了我的图像GROUP_CONCAT,然后对图像字段进行了计数,得出的结果如下所示

enter image description here

我现在想要的是imageCount字段的总和,如下图所示。在此示例中,总数为6

enter image description here

SELECT ?id  
       (GROUP_CONCAT(?images; separator=";") as ?images) 
       (count( ?images) as ?imageCount )   
{
  GRAPH <virtual://sample> {
     ....
    ....

  }
      GROUP BY ?id
      LIMIT 10

对此有任何帮助!!谢谢

count sum sparql
1个回答
0
投票

@@ fasalshah的评论数量有限,因此请发布相关数据作为答案

© www.soinside.com 2019 - 2024. All rights reserved.