
xsparql.base.distribution.xsparql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xsparql-test-suite Show documentation
Show all versions of xsparql-test-suite Show documentation
XSPARQL compliance test suite
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