sttl.dbedit.month.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.
#
# URI
# translated as "10/2015"^^xsd:gYearMonth
#
template st:month {
st:call-template(st:title, ?date)
format {
"""%s
"""
if (bound(?type),
st:call-template(st:dbpediafortype, ?date, ?type),
st:call-template(st:dbpediafortest, ?date))
}
st:call-template(st:title, ?date)
st:call-template(st:tail)
}
where {
bind (st:get(st:uri) as ?uri)
# type of resoures to focus on
bind (st:get(st:mode) as ?type)
bind (strafter(?uri, us:root()) as ?str)
bind (strdt(?str, xsd:gYearMonth) as ?date)
bind (st:set(st:date, ?date) as ?tmp)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy