All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttl.dbedit.dbpediafortest.rq Maven / Gradle / Ivy

Go to download

Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update.

There is a newer version: 4.6.1
Show newest version
#
# 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