template.content.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.
%s"
st:plink(concat("st:d2000-", month(?date), "-", day(?date)))
day(?date)
}
}
where {
}
]]>
" day(?date) ""
}
where {
}
]]>
" st:get(st:title) ""
st:call-template-with(st:calendar, st:main, ?year)
st:call-template(st:content, ?year)
}
where {
bind (st:get(st:uri) as ?uri)
bind (substr(?uri, strlen(st:) + 2) as ?str)
bind (if (contains(?str, "-"), strbefore(?str, "-"), ?str)
as ?tmp)
bind (coalesce(xsd:integer(?tmp), year(now())) as ?year)
bind (st:export(st:service, st:get(st:service)) as ?serv)
bind (st:export(st:profile, st:get(st:profile)) as ?prof)
}
]]>
template st:content(?year) {
format {
"""
%s
%s
"""
str(?dd)
str(?dd)
group {
format {
"%s"
st:plink(?x, st:dbpedia)
str(?title)
}
; separator = "
"
}
}
}
where {
bind (coalesce(st:get(st:allyear), false) as ?all)
{select distinct ?x ?date
where {
?x ?p ?date
filter (datatype(?date) in (xsd:date, xsd:dateTime))
}}
filter (?all || year(?date) = ?year)
bind (cal:date(year(?date), month(?date), day(?date)) as ?dd)
?x rdfs:label ?l
bind (if (bound(?l), ?l, ?x) as ?title)
}
group by ?date
order by ?date
]]>
template st:profile {
}
where {}
function us:format2(?name) {
st:getFormat("calcontent", ?name)
}
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy