
query.friday13.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-gui Show documentation
Show all versions of corese-gui Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint)
implementing RDF, RDFS, SPARQL 1.1 Query and Update, Shacl. STTL. LDScript.
The newest version!
#
# Find Friday 13rd prime years 20th Century
#
prefix cal:
select ?day where {
bind (unnest(mapmerge(xt:span, mapselect(xt:prime, xt:iota(1901, 2000)))) as ?day)
function xt:span(?y) {
mapselect (xt:check, "Friday", maplist(cal:date, ?y, xt:iota(1, 12), 13))
}
function xt:check(?d, ?x) {
xt:day(?x) = ?d
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy