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

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

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

template cn:index(?title) {

format {
  """
  %s %s %s
""" if (bound(?before), st:format("Avant  ", st:plink(?before)), "") st:call-template(cn:elem, ?title) if (bound(?after), st:format("Après", st:plink(?after)), "") } st:call-template(cn:list) } where { ?century rdfs:label ?title ; cn:start ?min bind (if (?min = 1, 0, ?min) - 100 as ?be) bind (if (?min = -100, -99, ?min) + 100 as ?af) bind (coalesce(st:get(st:min), -1000) as ?fst) bind (coalesce(st:get(st:max), 3000) as ?rst) optional { ?before cn:start ?be filter (?be >= ?fst) } optional { ?after cn:start ?af filter (?af <= ?rst) } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy