API检索有关名人的信息 [英] API to retrieve info about famous people

查看:91
本文介绍了API检索有关名人的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种可调用的方式来获取有关名人和名人的信息.给定一个字符串,我想确定它是否是一个名人的名字,如果是,是否还活着,以及他们可能属于哪一类(例如,演员,音乐家,运动员).

I'm looking for some callable way to get information about famous people and celebrities. Given a string, I'd like to determine if it's the name of a famous person, and if so, if they're alive and perhaps what category they fall into (e.g. Actor, Musician, Athlete).

有人知道这样做的任何公开可用的API吗?我能想到的最好的是Wikipedia,但这很成问题,因为很多信息必须经过解析,而且格式也不可靠且可预测.

Does anyone know of any publicly available APIs to do such a thing? The best I can come up with is Wikipedia, but it's pretty problematic because much of the info must be parsed, and isn't in a reliable and predictable format.

当初始搜索没有任何结果时,我还希望能够为可能的名称提供建议(因为字符串将来自人,并且可能包含拼写错误).

I'd also like to be able to offer suggestions for possible names when the initial search turns up nothing (since the strings will be from people and may contain misspellings).

推荐答案

尝试 DBpedia ,即准备好的"(RDF)版本的Wikipedia.可以使用 SPARQL 进行查询.它包含英语维基百科中的许多信息.

Try DBpedia, the "preparsed" (RDF) version of Wikipedia. It can be queried using SPARQL. It includes much of the info in the English-language Wikipedia.

这篇关于API检索有关名人的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆