问题描述
我正在尝试使用 Freebase 数据转储.我尝试通过搜索以film.film"开头的谓词来仅获取电影 ID.但就这样我得到了很多不相关的项目.这是一个谓词,例如:
I am trying to work with Freebase data dumps. I try to get only the films Ids by searching the predicates that starts with "film.film". But like that I got alot of unrelated items.this is a predicate for example:
film.film_character.portrayed_in_films_dubbed..film.dubbing_performance.film
带来这个网址的Id:
http://www.freebase.com/m/0pc731y
这不是电影,而是电影中的角色.有人可以帮我吗???
which is not a movie but a character in a movie.Can anybody help me please???
推荐答案
如果您进行前缀搜索,您将得到与前缀匹配的任何内容.
If you do a prefix search, you're going to get anything which matches the prefix.
如果您想要 IMDB id,就像您的其他问题一样,您可以搜索:
If you want IMDB ids, like your other question, you could search for:
ns:type.object.key "/authority/imdb/title
如果您想要所有电影类型的主题 ID,您可以搜索:
If you want all subject IDs of type film, you could search for:
rdf:type ns:film.film.$
换句话说,让您的搜索表达式与您要查找的内容相匹配.
In other words, make your search expression match what you're trying to find.
这篇关于Freebase 谷歌数据转储搜索所有电影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!