sttl.spin.query.main.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:main {
?in
if (?t in (sp:Select, sp:Construct, sp:Ask, sp:Describe), "", ";")
; separator = "\n\n"
}
where {
?in a ?t
values ?t {
sp:Select sp:Construct sp:Ask sp:Describe
sp:SPARQLUpdate
sp:InsertData sp:DeleteData sp:Modify sp:DeleteWhere
sp:Load sp:Drop sp:Clear sp:Create sp:Copy sp:Move sp:Add
}
filter( not exists { { ?a sp:query ?in } union { ?a rdf:first ?in } } )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy