Nowa wersja
|
Poprzednia wersja
|
pl:dydaktyka:semweb:2016:labs:sparql [2016/09/22 15:34] 127.0.0.1 edycja zewnętrzna |
pl:dydaktyka:semweb:2016:labs:sparql [2017/10/14 23:28] kkutt usunięto |
====== Querying the Semantic Web with SPARQL ====== | ====== Querying the Semantic Web with SPARQL ====== |
| |
^ Last verification: | 20151104 | | ^ Last verification: | 20160924 | |
^ Tools required for this lab: | -- | | ^ Tools required for this lab: | -- | |
| |
* {{:pl:dydaktyka:semweb:sparql-cheat-sheet.pdf|SPARQL by Example: the Cheat Sheet}} (from http://www.slideshare.net/LeeFeigenbaum/sparql-cheat-sheet) | * {{:pl:dydaktyka:semweb:sparql-cheat-sheet.pdf|SPARQL by Example: the Cheat Sheet}} (from http://www.slideshare.net/LeeFeigenbaum/sparql-cheat-sheet) |
* [[#if_you_want_to_know_more|If you want to know more...]] | * [[#if_you_want_to_know_more|If you want to know more...]] |
| |
| |
===== Lab instructions ===== | ===== Lab instructions ===== |
| |
* SPARQL queries may be asked against RDF file as we did in previous sections. But there is also possibility to use special purpose web service called SPARQL Endpoint. It wraps some data set and provides a service that responds to the SPARQL protocol, providing access to the data set. | * SPARQL queries may be asked against RDF file as we did in previous sections. But there is also possibility to use special purpose web service called SPARQL Endpoint. It wraps some data set and provides a service that responds to the SPARQL protocol, providing access to the data set. |
* Many SPARQL Endpoints are available today, providing information about a variety of subjects. In this section we will use [[http://dbpedia.org/|DBpedia]] SPARQL Endpoint at ''<nowiki>http://dbpedia.org/sparql</nowiki>''. | * Many SPARQL Endpoints are available today, providing information about a variety of subjects. In this section we will use [[http://dbpedia.org/|DBpedia]] SPARQL Endpoint at **http://dbpedia.org/sparql**. |
| |
- DBpedia is a dump of Wikipedia annotated using RDF. So, like Wikipedia, DBpedia should contain some information about Poland. What we can do? \\ We don't know what URI Poland has in DBpedia, but we know the name Poland, and from previous lab we know rdfs:label property. Maybe this will help us? Let's try! | - DBpedia is a dump of Wikipedia annotated using RDF. So, like Wikipedia, DBpedia should contain some information about Poland. What we can do? \\ We don't know what URI Poland has in DBpedia, but we know the name Poland, and from previous lab we know rdfs:label property. Maybe this will help us? Let's try! |
* [[http://www.w3.org/TR/sparql11-overview/|SPARQL 1.1 Overview]] | * [[http://www.w3.org/TR/sparql11-overview/|SPARQL 1.1 Overview]] |
* [[http://www.cambridgesemantics.com/semantic-university/learn-sparql|Learn SPARQL @Cambridge Semantics]] | * [[http://www.cambridgesemantics.com/semantic-university/learn-sparql|Learn SPARQL @Cambridge Semantics]] |
* {{..:..:2014:eis2014semweb-rdfsinuse.pdf|RDF/S in use}} -- lecture 2014/2015 (part about Querying RDF) | * {{pl:dydaktyka:semweb:2015:eis2015semweb-rdfsinuse.pdf|RDF/S in use}} -- lecture 2015/2016 (part about Querying RDF) |
| |
Exemplary queries in SPARQL: | Exemplary queries in SPARQL: |
* [[http://www.ldodds.com/projects/twinkle/|Twinkle: A SPARQL Query Tool]] | * [[http://www.ldodds.com/projects/twinkle/|Twinkle: A SPARQL Query Tool]] |
* [[http://jena.apache.org/tutorials/sparql.html|Apache Jena -- SPARQL]] | * [[http://jena.apache.org/tutorials/sparql.html|Apache Jena -- SPARQL]] |
* [[http://querybuilder.dbpedia.org/|DBpedia query builder]] | |
| |
Open Data Sets: | Open Data Sets: |
* http://news.ycombinator.com/item?id=1493768 | * [[http://news.ycombinator.com/item?id=1493768|List of open/public databases]] |
* [[http://www.s3space.com/?p=383|Long list of SPARQL Endpoints]] | * [[http://www.s3space.com/?p=383|Long list of SPARQL Endpoints]] |
| |