template.navtable.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.
prefix o:
template st:glocate {
st:call-template-with(st:navlab, st:gmap, ?in, ?lat, ?lon, xt:list())
}
where {
?in p:longitude ?lon ;
p:latitude ?lat
}
limit 1
]]>
prefix o:
template st:main {
format {
ft:frame.html
coalesce(?label, us:display(?uri))
coalesce(st:format('', ?icon), "")
st:apply-templates(?uri)
}
st:call-template(st:glocate, ?uri)
}
where {
bind (st:focus() as ?uri)
optional { ?uri o:thumbnail ?icon }
optional { ?uri rdfs:label ?label }
}
limit 1
]]>
template {
format {
ft:triple.html
us:display(?p)
if (isLiteral(?y), ?y,
st:format(ft:link.html, st:pplink(?y), us:display(?y)))
}
}
where {
?in ?p ?y
}
order by ?in us:sort(?p, ?y) ?p ?y
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy