template.sparql.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.
%s" str(?uri) str(?title)
}
}
where {
}
]]>
template st:pageask {
format {
us:format("ask.html")
?b
}
}
where {
?r rs:boolean ?b
}
]]>
template st:variable {
format {
us:format("variable.html")
str(?v)
}
; separator = " "
}
where {
?x rs:resultVariable ?v
}
order by ?v
]]>
{ "Test" }
st:call-template(st:page)
}
where {
bind (st:set(st:profile, coalesce(st:get(st:profile), st:sparql)) as ?p)
}
]]>
template st:page {
st:call-template(?page)
}
where {
bind (
if (exists { ?x a rs:ResultSet },
if (exists { ?x rs:boolean ?b }, st:pageask, st:pageselect),
st:pagecons)
as ?page)
}
]]>
template st:table {
format {
us:format("table.html")
st:number()
st:apply-templates(?s)
}
}
where {
?x rs:solution ?s
?s rs:index ?i
}
order by ?i
]]>
template {
format {
us:format("value.html")
coalesce(st:display(?val), " ")
}
; separator = " "
}
where {
?x rs:solution ?in
?x rs:resultVariable ?var
optional {
?in rs:binding [ rs:variable ?var ; rs:value ?val ]
}
}
order by ?var
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy