Ci-dessous, les différences entre deux révisions de la page.
thatcamp_2014:requete_dbpedia [2014/08/30 23:07] Francesco Beretta |
thatcamp_2014:requete_dbpedia [2014/10/29 12:03] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Chercher toutes les univesités | ||
- | <code> | ||
- | select count(*) | ||
- | where{ | ||
- | select distinct * | ||
- | where {?s dbpprop:type dbpedia:Public_university; | ||
- | georss:point ?localisation} | ||
- | #limit 10 | ||
- | } | ||
- | |||
- | </code> | ||
- | |||
- | |||
- | <code> | ||
- | select distinct * | ||
- | where { | ||
- | ?s dbpprop:type dbpedia:Public_university. | ||
- | ?s dbpprop:city ?city. | ||
- | ?city dbpedia-owl:type dbpedia:City | ||
- | |||
- | # optional {?s dbpprop:city ?city} | ||
- | # optional {?s georss:point ?localisation} | ||
- | |||
- | |||
- | } | ||
- | limit 20 | ||
- | |||
- | |||
- | </code> |