Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
thatcamp_2014:requete_dbpedia [2014/09/01 09:18] Francesco Beretta [Exploration] |
thatcamp_2014:requete_dbpedia [2014/10/29 12:03] (Version actuelle) |
||
---|---|---|---|
Ligne 45: | Ligne 45: | ||
- | Point d'accès : | + | Point d'accès SPARQL : http://dbpedia-live.openlinksw.com/sparql |
- | Jointure avec geonames | ||
- | <code> | ||
- | PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> | ||
- | PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | ||
- | PREFIX dbpedia: <http://dbpedia.org/resource/> | ||
- | PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
- | PREFIX dbpprop: <http://dbpedia.org/property/> | ||
- | |||
- | SELECT DISTINCT * | ||
- | WHERE | ||
- | { ?s dbpprop:type dbpedia:Public_university . | ||
- | ?s dbpprop:city ?city . | ||
- | ?city dbpedia-owl:type dbpedia:City . | ||
- | OPTIONAL {?city <http://www.w3.org/2002/07/owl#sameAs> ?geonames . | ||
- | # FILTER (substr(xsd:str(?geonames), 1, 15) = "http://sws.geon") | ||
- | } | ||
- | } | ||
- | |||
- | LIMIT 10 | ||
- | </code> | ||
===== Nombre d'universités dans dbpedia live ===== | ===== Nombre d'universités dans dbpedia live ===== | ||
Ligne 161: | Ligne 141: | ||
} | } | ||
}</code> | }</code> | ||
+ | | ||
+ | | ||
+ | | ||
+ | La fonction de filtre ne semble pas être activée : | ||
+ | | ||
+ | |||
+ | | ||
+ | <code> | ||
+ | PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> | ||
+ | PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | ||
+ | PREFIX dbpedia: <http://dbpedia.org/resource/> | ||
+ | PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
+ | PREFIX dbpprop: <http://dbpedia.org/property/> | ||
+ | |||
+ | |||
+ | SELECT DISTINCT * | ||
+ | WHERE | ||
+ | { ?s dbpprop:type dbpedia:Public_university . | ||
+ | ?s dbpprop:city ?city . | ||
+ | ?city dbpedia-owl:type dbpedia:City . | ||
+ | OPTIONAL {?city <http://www.w3.org/2002/07/owl#sameAs> ?geonames . | ||
+ | # FILTER (substr(xsd:str(?geonames), 1, 15) = "http://sws.geon") | ||
+ | } | ||
+ | } | ||
+ | |||
+ | LIMIT 10 | ||
+ | </code> |