sttl.cdn.indexelem.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.
#
# Generate Century Index
# Hypertext link may trigger Corese server
# Answer using SPARQL Template Transformation
#
prefix cn:
template cn:elem(?title) {
format {
us:format("index.html")
st:plink(?century)
if (?show, "bold", "undefined")
?date
}
}
where {
bind (coalesce(st:get(st:min), -1000) as ?fst)
bind (coalesce(st:get(st:max), 3000) as ?rst)
?century cn:start ?min ; cn:finish ?max ; rdfs:label ?date
filter (?min >= ?fst && ?max <= ?rst)
bind (?date = ?title as ?show)
}
order by ?min
© 2015 - 2025 Weber Informatics LLC | Privacy Policy