All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttl.cdn.indexelem.rq Maven / Gradle / Ivy

#
# Generate Century Index
# Hypertext link may trigger Corese server 
# Answer using SPARQL Template Transformation
#
prefix cn: 
prefix ft: 

template cn:elem(?title) {
  format {
      ft: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