
query.sortconcat.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-gui Show documentation
Show all versions of corese-gui Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint)
implementing RDF, RDFS, SPARQL 1.1 Query and Update, Shacl. STTL. LDScript.
The newest version!
#
# Custom Aggregate: group_concat with sort
# Olivier Corby - Wimmics Inria I3S - 2015
#
select (aggregate(?v, us:sort_concat) as ?res)
where {
?x rdf:value/rdf:rest*/rdf:first ?v
}
function us:sort_concat(?list){
reduce(us:concat, xt:sort(?list))
}
function us:concat(?x, ?y){
concat(?x, ' ', ?y)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy