template.hturtle.rul Maven / Gradle / Ivy
\n"
st:tail()
}
where {
}
]]>
template st:mainshape {
st:clean(st:prolog("prefix"))
st:nl()
str(?main)
}
where {
bind (st:apply-templates-with(tt:startshape) as ?main)
}
]]>
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)
}
]]>
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 ]
bind (st:get(st:dataset) as ?g)
graph ?g { # eng:dataset {
bind (st:apply-templates-with(st:turtlehtml, ?val) as ?res)
}
}
order by ?i ?var
]]>
\n"
}
where {
}
]]>
0)
}
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy