我可以从 freebase.com 导出地名翻译吗
所以我查看了 这种使用 freebase API,它的名称翻译给我留下了深刻的印象成立。 IE 罗马,Roma,Rom,Rzym,Rooma,로마,罗马市。 这是因为我有一个大约 5000 多个地点名称的数据库,我非常希望这些英文名称的所有法语、德语或韩语翻译。
问题是我花了大约两个小时在 freebase 上点击,却找不到方法来查看映射到英语的不同语言的城市/位置名称。 因此,如果有人了解 freebase 是什么以及它是如何组织的,可以为我提供该视图的链接,理论上我可以导出该视图,我会很高兴。
另外,我只是想分享这个问题,因为我对 freebase 印象深刻,并且认为如果人们还没有看过它,他们应该看看。
So I've looked at this use of the freebase API and I was really impressed with the translations of the name that it found. IE Rome, Roma, Rom, Rzym, Rooma,로마, 罗马市. This is because I have a database of some 5000+ location names and I would very much like all French, German or Korean translations for these English names.
The problem is I spent about two hours clicking around freebase, and could find no way to get a view of city/location names in a different language mapped to English. So I'd love it if someone who understands what freebase is and how it's organized could get me a link to that view which theoretically I could then export.
Also I just wanted to share this question because I'm totally impressed with freebase and think if people haven't looked at it they should.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该查询
针对每个位置和每种语言返回该位置在该语言中的名称。 结果按语言组织。 例如,下面是返回值的非常一小部分:
对于无需编程的解决方案,请将以下内容复制粘贴到 HTML 文件中,然后使用浏览器打开它:
当然,这只会包括前 10 个结果。 如果您想要更多,请提高上述限制。 (顺便说一句,不仅 Freebase 很酷,这种 mjt 模板语言也很酷!)
The query
returns for every location and every language, the name of that location in that language. The results are organized by language. For example, here is a very small segment of the return value:
For a no-programming solution, copy-paste the following into an HTML file and open it with your browser:
Of course, that will only include the first 10 results. Up the limit above if you want more. (By the way, not only is Freebase cool, so is this mjt templating language!)
您发布的链接使用 mjt,一个为 Freebase 设计的 JavaScript 框架。
他们使用的查询。
在哪里:
qlang - 也是您想要翻译的语言。
qname - 是要查询的位置。
要获取您想要的链接,您需要 API,并且您可以转换上述查询将返回一个包含已翻译字符串的 JSON 对象的链接。
The link you posted uses mjt, a javascript framework designed for Freebase.
The Query they use.
Where:
qlang - is your desired language to translate too.
qname - is is the location to query.
To get the link you want, you'll need the API, and you can convert the above query to a link that will return a JSON object containing the translated string.