Ci-dessous, les différences entre deux révisions de la page.
thatcamp_2014:requete_dbpedia [2014/08/31 09:23] 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> | ||
- | PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> | ||
- | PREFIX dbpedia: <http://dbpedia.org/resource/> | ||
- | PREFIX dbpprop: <http://dbpedia.org/property/> | ||
- | |||
- | SELECT DISTINCT * | ||
- | WHERE | ||
- | { SERVICE <http://dbpedia-live.openlinksw.com/sparql> | ||
- | { ?s dbpprop:type dbpedia:Public_university . | ||
- | ?s dbpprop:city ?city . | ||
- | ?city dbpedia-owl:type dbpedia:City | ||
- | } | ||
- | } | ||
- | LIMIT 20 | ||
- | |||
- | |||
- | |||
- | </code> |