|
I ran the query given below:
In this, one of the results was
I think that this means that
So now I want to know the SPARQL to be written to be able to get the IMDb_title for every film:
This gives me the result which includes:
The second row gives me an ID to IMDb_title:
But when I search this ID on IMDb - 390733276, I dont get the movie. Could anyone explain? Regards, Bonson |
|
Looks like you have misinterpreted the dbpprop:wikiPageUsesTemplate property. As far as i know it is stating that the corresponding wikipedia page uses the template Template:IMDb_title. ie. http://en.wikipedia.org/wiki/Template:IMDb_name. The id that you are getting is the http://www.w3.org/ns/prov#wasDerivedFrom object ie. the wikipedia page for the infobox - http://en.wikipedia.org/wiki/Template:IMDb_title?oldid=390733276 the oldid querystring is to do with the revision history of wikipedia IMDB ids are rather poorly represented in DBPedia (and indeed in Wikipedia): try the properties: http://dbpedia.org/property/imdbTitle, http://dbpedia.org/property/imdbId unfortunately this will yield only a handfull of ids IMDB related properties:
Hello, Thanks for the information. I would like to understand how you are able to get the information about the different attributes? Is there a help or something from where we can get this information? Regards Bonson It can be a bit tricky at times. Usually I look at a few pages to see what kind of data is available eg. http://dbpedia.org/page/Pulp_Fiction, and use the query in my answer (usually without regex filter) to see what else might be available. The property pages (eg. http://dbpedia.org/property/imdbId) of some datasets will have a helpful comment etc. Otherwise it can be a case of simply checking what a property does manually. eg.
This makes it very difficult to use the correct attributes. So now in the below query, I am trying to filter on the film title "Toy" so that I find the details of "Toy Story". I am not sure what would be the right attribute to search. select distinct ?t ?d ?s where { ?film a dbpedia-owl:Film. ?film foaf:name ?t. ?film dbpedia2:director ?d. ?film dbpedia2:starring ?s. FILTER regex(?t, "Toy", "i") } Is foaf:name the correct attribute to use in a search when filtering on titles of movies on dbpedia? rdfs:label is probably better to use. although foaf:name seems widely used throughout dbpedia films too. Possibly better again is to search for both (either) foaf:name and rdfs:label using UNION to get more comprehensive results (although I suspect you won't get many more results - you could experiment a bit to check if the more complex query is necessary). |

