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

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

Go to download

Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update.

There is a newer version: 4.6.1
Show newest version
#
# 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