sttl.spin.query.construct.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-core Show documentation
Show all versions of corese-core Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
#
# SPARQL-based RDF AST Pretty-printer
# Olivier Corby, Wimmics Inria I3S, 2013
#
prefix sp: .
template {
st:prolog()
st:kw("construct") " " st:call-template(sp:construct, ?in)
st:nl()
st:kw("where") " {"
box {
st:call-template(sp:listnl, ?where)
}
"}"
st:nl()
?group
?order
if (bound(?l), concat(st:kw("limit"), " ", ?l, st:nl()), "")
if (bound(?o), concat(st:kw("offset"), " ", ?o, st:nl()), "")
?having
st:call-template(sp:values, ?in)
}
where {
?in a sp:Construct ;
sp:where ?where
optional { ?in sp:groupBy ?group }
optional { ?in sp:orderBy ?order }
optional { ?in sp:having ?having }
optional { ?in sp:limit ?l }
optional { ?in sp:offset ?o }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy