关于 RDF 的问题以及 thisweknow.org 的运作方式

发布于 2024-08-15 06:01:16 字数 460 浏览 8 评论 0原文

我正在阅读这个问题

什么是 RDF 三元组?

以及它的优秀答案。

罗杰·费德勒 |赢了 |温布尔登

我理解上面这句话是一个三元组。但如果句子是

Roger Federer won wimbledon in 2009,

我们如何将其表示为 RDF 三元组?

该网站 thisweknow.org 允许用户查询以城镇/城市开头的 data.gov 数据。有人可以举例说明他们的数据库中的数据是什么样子吗?它相当令人印象深刻,但我必须从一个城镇/城市开始,不能在州一级做到这一点(据我所知)。我认为他们很快就会允许用户查询县/州/国家级别的数据,是否可以在不对他们现在拥有的数据结构进行重大更改的情况下完成?如果是,怎么办?

I was reading through this question

What's a RDF triple?

and the excellent answers to it.

Roger Federer | won | wimbledon

I understand that the above sentence is a triplet. But if the sentence is

Roger Federer won wimbledon in 2009,

how do we represent it as a RDF triplet?

This site thisweknow.org allows users to query the data.gov data starting with a town/city. Can someone give an example of how the data would look like, in their db? Its quite impressive, but I have to start with a town/city, can't do it at the state level (as far as I could see). I assume they would be allowing users to query data at county/state/national level soon, can it be done without significant changes to the data structure they have now? If yes, how?

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

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

发布评论

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

评论(1

我很OK 2024-08-22 06:01:16
Roger Federer | won | tournamentX
tournamentX | year |2009
tournamentX | site | Wimbledon

或者,也许更清楚:

tournamentX | winner | Roger Federer
tournamentX | year |2009
tournamentX | site | Wimbledon

RDF 或任何其他基于节点/弧的语言中数据建模的主要技巧是了解哪里需要表示事物组合的中间对象。在这里,您需要一个包含年份、地点和获胜者的“锦标赛”节点。 “tournamentX”是它的任意ID。

Roger Federer | won | tournamentX
tournamentX | year |2009
tournamentX | site | Wimbledon

Or, maybe more clearly:

tournamentX | winner | Roger Federer
tournamentX | year |2009
tournamentX | site | Wimbledon

The main trick to data-modeling in RDF, or any other node/arc-based language, is understanding where you need intermediate objects that represent combinations of things. Here you need a "tournament" node that has a year, a site and a winner. "tournamentX" is an arbitrary ID for it.

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