
webapp.data.query.dbpedia.dbpediadate2.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-server Show documentation
Show all versions of corese-server Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
The newest version!
prefix o:
prefix cal:
@bind kg:values
construct {
?x o:deathDate ?date ; rdfs:label ?l
}
where {
bind (st:get(st:uri) as ?uri)
bind (st:set(st:year, xsd:integer(substr(?uri, strlen(st:) + 2))) as ?y)
bind (xsd:date(concat(?y, "-01-01+02:00")) as ?start)
bind (xsd:date(concat(?y, "-12-31+02:00")) as ?end)
service {
select ?x ?d ?start ?end ?l where {
values (?start ?end) { (UNDEF UNDEF) }
?x o:deathDate ?d
filter (datatype(?d) = xsd:date)
filter (?d >= ?start && ?d <= ?end)
?x rdfs:label ?l
filter langMatches(lang(?l), "fr")
}
}
bind (cal:date(year(?d), month(?d), day(?d)) as ?date)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy