template.hturtle.rul 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.
\n"
st:tail()
}
where {
}
]]>
\n"
}
where {
}
]]>
template st:main {
st:clean(st:prolog("prefix"))
st:nl()
str(?main)
}
where {
bind (exists { ?rs a rs:ResultSet } && ! st:get(st:param, "verbatim") as ?b)
bind (if (?b, true, st:export(st:uri, st:focus())) as ?e)
bind (if (?b,
st:call-template(st:resultset),
st:apply-templates-with(st:turtlehtml)) as ?main)
}
]]>
0)
}
]]>
template st:result {
"Turtle
\n"
st:call-template(st:start)
}
where {
}
]]>
template st:resultset {
str(?res)
; separator = "\n\n"
}
where {
?rs rs:solution ?s
?s rs:index ?i
?s rs:binding [ rs:variable ?var ; rs:value ?val ]
graph eng:dataset {
bind (st:apply-templates-with(st:turtlehtml, ?val) as ?res)
}
}
order by ?i ?var
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy