Using SPARQL, I am trying the get the list of all english novels and their properties.
I would also like to find if a movie was taken based on that novel and get the movie name and its director, If a movie relationship exists.
Code:
SELECT ?movie ?director ?book ?author ?publisher ?illustrator
WHERE {
?movie dcterms:subject <http://dbpedia.org/resource/Category:films> ;
dbpedia-owl:basedOn ?book .
?movie dbp:director ?director .
?book a dbpedia-owl:Book .
?book dbp:author ?author .
?book dbp:publisher ?publisher .
?book dbp:illustrator ?illustrator .
}
limit 200
You can get a lot of correct results, if you modify your query like this...
...but keep in mind that there are many movies that are not classified as
dbpedia-owl:Film
. Then of course you make aunion
with a few other popular classifications but that would still not guarantee there there won't be a movie based on a book, which will not be omitted.And by the way what do you call "English novels" -- those written originally in English or those by English authors?