sttl.dbedit.dbpediafortest.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.
#
# Generate a table with DBpedia topmost resource updates
# given month/year ?date
#
#
prefix swp:
prefix dbfr:
prefix dc:
prefix xsd:
prefix o:
template st:dbpediafortest(?date) {
us:table(aggregate(us:cell(?l, ?c, ?res, ?i)), 5)
}
where {
bind (st:get(st:date) as ?date)
filter kg:slice(100)
service {
select distinct ?res ?x ?c ?date
where {
?rev dc:date ?date
?x dbfr:revPerMonth ?rev
?rev rdf:value ?c
?x foaf:primaryTopic ?res
}
order by desc(?c)
limit 50
}
# split in two services appears to be much more efficient !
service {
?res o:thumbnail ?i
?res rdfs:label ?l filter langMatches(lang(?l), "fr")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy