Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我之前在这里问过这个问题!那时,我担心使用 Google-Api 获得输出效果很好。
实际上,问题在于超时,更重要的是,查询基于 Web 的 API。我想使用 Freebase 数据转储离线进行。有什么简单的方法可以解决吗?
谢谢
zegrep $'\tns:type\.object\.name\t.*Bush.*' freebase-rdf-<date>.gz | cut -f 1
将为您提供名称中包含字符串“Bush”(来自您之前的示例)的主题的所有 MID 列表。
根据需要扩展正则表达式以包含别名、更高级的名称匹配等内容。