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

query.sortconcat.rq Maven / Gradle / Ivy

Go to download

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