sttl.spin.update.update.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()
if (bound(?g), concat("with ", ?g, "\n"), "")
if (bound(?d),
concat("delete {", st:call-template(sp:listnl, ?d), "} \n"), "")
if (bound(?i),
concat("insert {", st:call-template(sp:listnl, ?i), "} \n"), "")
st:call-template(sp:using, ?in)
st:call-template(sp:usingNamed, ?in)
"where {"
st:call-template(sp:listnl, ?w)
"}"
}
where {
?in a sp:Modify ;
sp:where ?w
optional { ?in sp:graphIRI ?g }
optional { ?in sp:deletePattern ?d }
optional { ?in sp:insertPattern ?i }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy