sttl.calcontent.date.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.
#
# Display a day in the calendar of a month
# May be a link or a number
#
template st:date(?date) {
if (?b, st:call-template(st:link, ?date), day(?date))
}
where {
values ?date { UNDEF }
bind (
exists {
values ?date { UNDEF }
?x ?p ?dd
filter (datatype (?dd) in (xsd:date, xsd:dateTime))
filter (year(?dd) = year(?date)
&& month(?dd) = month(?date)
&& day(?dd) = day(?date)) }
as ?b)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy