如何在 RDF 中表示 5 元组? [英] How can I represent a 5-tuple in RDF?
问题描述
在 RDF 中,我看到过这样的例子
In RDF I have seen examples like
John | Is a Friend of | James
James | Is a friend of | Jill
Jill | Likes | Snowboarding
Snowboarding | Is a | Sport
但是如果在一个由 5 元组描述的模型中发生了一些事情
But if something happened in a model which is described by a 5-tuple called
{Subject, Event, Beneficiary, Time, Place}
例如:
"John met Thomas yesterday in garden"
五元组
John - Subject
met - Event
Thomas - Beneficiary
yesterday - Time
in garden - Place
如何在 RDF 中表示?
How can it be represented in RDF?
推荐答案
这是一个 n 元关系的例子.它们通常在额外节点的帮助下在 RDF 中建模,该节点可能是一个空白节点(但不一定必须如此).
This is an example of n-ary relationships. They are typically modeled in RDF with the help of an extra node, which may be a blank node (but does not necessarily have to).
W3C语义网络最佳实践和部署工作组已经发布了RDF 中 n-ary 关系的注释.
The W3C Semantic Web Best Practices and Deployment Working Group has published a note on n-ary relationships in RDF.
在 RDF 中表达示例的多种方式之一可能如下所示
One of many ways to express your example in RDF could look like
ex:John ex:hasMeeting
[ a ex:Meeting;
ex:beneficiary ex:Thomas;
ex:date ex:Yesterday;
ex:place ex:Garden.
] .
此解决方案使用一个空白节点(在海龟语法中缩写为 []
)和 ex:
命名空间中的虚构个体和属性.
This solution uses a blank node (abbreviated with []
in turtle syntax) and imaginary individuals and properties in the ex:
namespace.
这篇关于如何在 RDF 中表示 5 元组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!