update.optional.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.
#
# Embed statements of select where inside optional
# Olivier Corby, Wimmics Inria I3S, 2013
#
prefix sp:
delete { ?e rdf:first ?s }
insert { ?e rdf:first [ a sp:Optional ; sp:elements( ?s ) ]}
where {
?q a sp:Select ;
sp:where/rdf:rest* ?e
?e rdf:first ?s
filter not exists { ?s a ?t values ?t {sp:Minus sp:Optional }}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy