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

查看:32
本文介绍了检索名人信息的 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 来做这样的事情?我能想到的最好的是维基百科,但它有很大的问题,因为很多信息必须被解析,而且不是可靠和可预测的格式.

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)) 版本的维基百科.可以使用 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天全站免登陆