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

sttl.spin.update.update.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.

There is a newer version: 4.6.1
Show newest version
#
# 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