Note: these exercises assume that you have followed the instructions in sesame-setup.html
Enter the following query and click "execute":
Note: you can navigate the results by clicking on the links!
When I turn on TV and start watching a random movie, I'm often frustrated - I can name
one actor in the film - and I know what other films the costars have been in, but have no idea what I am watching!
In this case I recognized Richard Dreyfuss....and the other guy was in Mystery Men.
This query tells me what movie I was watching.:
Add some data to the repository
Run some SPARQL Queries
Click "query" (on the left)
PREFIX fb:<http://rdf.freebase.com/ns/>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?costar ?movie WHERE {
?movie fb:film.film.starring fb:en.john_travolta .
?movie fb:film.film.starring ?costar .
filter (?costar != fb:en.john_travolta)
}
PREFIX fb:<http://rdf.freebase.com/ns/>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?filmtitle ?releasedate ?actor WHERE {
?movie fb:type.object.name ?filmtitle .
?movie fb:film.film.initial_release_date ?releasedate .
?movie fb:film.film.starring fb:en.richard_dreyfuss .
?movie fb:film.film.starring ?actor .
fb:en.mystery_men fb:film.film.starring ?actor .
}