All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xsparql.base.distribution.xsparql Maven / Gradle / Ivy

The newest version!
prefix :     
prefix foaf: 
prefix dct:  

declare function local:_distribution_count($s, $i, $c) {
  let $x :=
    if ($i > count($s)) then
      ()
    else if ($s[$i] eq $s[$i + 1]) then
      local:_distribution_count($s, $i + 1, $c + 1)
    else
      fn:concat( fn:concat($s[$i], ", ", $c) , "
", local:_distribution_count($s, $i + 1, 1) )
  return $x
};

let $days  := 
  for $entry $date
  from 
  where {$entry dct:created $date}
  let $day := day-from-dateTime(xs:dateTime($date))
  order by $day
  return $day

return local:_distribution_count($days, 1, 1)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy