【问题标题】:Entity Relations from freebase dump来自freebase转储的实体关系
【发布时间】:2017-04-08 18:21:20
【问题描述】:

我想用关系转储所有实体名称对。

例子:

subject predicate object
<freebase/ns/g.11bc7__xnw>  <freebase/ns/people.place_lived.location>   <freebase/ns/m.02_286>  .

上面一行中的Freebase 是指freebase 网站的url。 我提取了所有主宾中间的三元组,然后我把谓词作为关系。

对于上面的示例,我的代码将输出如下内容:

entity pair : g.11bc7__xnw , m.02_286
relation : people.place_lived.location

我有两个问题:

  1. 当我在 freebase 转储上运行我的代码时,我得到了 14887 个关系,但 freebase 中的实际关系数超过 25,000。
  2. 对于某些中间件,没有属性名称或别名。 (/type/object/name, /common/topic/alias)

请告诉我我做错了什么。

【问题讨论】:

  • 示例: .

标签: entity-relationship freebase


【解决方案1】:

嗯,有些关系不是指向中间值,而是指向一个基本值:

&lt;http://rdf.freebase.com/ns/g.11vjz1ynm&gt; &lt;http://rdf.freebase.com/ns/measurement_unit.dated_percentage.date&gt; "2001-02"

这基本上就是整个 measure_unit 域。

然后,没有名称和别名的 mid 听起来像 cvt(复合值类型),它们是具有复杂关系(例如节点到节点 + 时间)的人工节点。

所以我认为你应该更好地考虑测量值、布尔值、日期等和 cvts。

【讨论】:

  • 感谢您的回复。对于我的工作,我不想要这些类型的复合值类型。
猜你喜欢
  • 2018-08-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-08
  • 2012-09-06
  • 1970-01-01
相关资源
最近更新 更多