使用 mediawiki 确定名称类型?

发布于 2024-09-10 19:55:57 字数 43 浏览 4 评论 0原文

如果这篇文章是关于勒布朗·詹姆斯的,那么我就会知道它是关于一名运动员的。

If the article is about Lebron_James, then i would know it's about an athelete.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪痕残 2024-09-17 19:55:59

类别很有用,但信息框更好。那么问题就变成了如何利用信息框中的信息?

看看 DBpedia 的魔力。在使用它之前,您必须阅读相当多的内容,然后 SPARQL 也有一个巨大的学习曲线:

SELECT ?property ?hasValue ?isValueOf
WHERE {
  { <http://dbpedia.org/resource/LeBron_James> ?property ?hasValue }
  UNION
  { ?isValueOf ?property <http://dbpedia.org/resource/LeBron_James> }
}

Stackoverflow 不喜欢这个 URL,但它有大量有用的信息供您处理:

http://dbpedia.org/snorql/?query=SELECT+%3Fproperty+%3FhasValue+%3FisValueOf %0D%0AWHERE+{%0D%0A++{+%3Chttp://dbpedia.org/resource/LeBron_James%3E+%3Fproperty+%3FhasValue+}%0D%0A++UNION%0D%0A++{+%3FisValueOf+% 3Fproperty+%3Chttp://dbpedia.org/resource/LeBron_James%3E+}%0D%0A}

Categories are useful but infoboxes are better. The problem then becomes how can you utilize the information in the infoboxes?

Have a look at the magic that is DBpedia. You'll have to read a fair chunk before you can play with it and then SPARQL has a hefty learning curve too:

SELECT ?property ?hasValue ?isValueOf
WHERE {
  { <http://dbpedia.org/resource/LeBron_James> ?property ?hasValue }
  UNION
  { ?isValueOf ?property <http://dbpedia.org/resource/LeBron_James> }
}

Stackoverflow doesn't like this URL but it has tons of useful info for you to process:

http://dbpedia.org/snorql/?query=SELECT+%3Fproperty+%3FhasValue+%3FisValueOf%0D%0AWHERE+{%0D%0A++{+%3Chttp://dbpedia.org/resource/LeBron_James%3E+%3Fproperty+%3FhasValue+}%0D%0A++UNION%0D%0A++{+%3FisValueOf+%3Fproperty+%3Chttp://dbpedia.org/resource/LeBron_James%3E+}%0D%0A}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文