简体   繁体   English

RDF中的具体化说明

[英]Explanation for reification in RDF

I am have understand the basics of reification in RDF. 我已经了解了RDF中的具体化基础知识。 Two clearly explanations are given here: explanation 1 and explanation 2 . 这里给出了两个明确的解释: 解释1解释2 If you observe carefully, actually we can present in the sentence "Earth is round" RDF triple where as "Scientist discovered, Earth is round" can be presented using reification. 如果你仔细观察,实际上我们可以在“地球是圆形的”RDF三重句中出现“科学家发现,地球是圆的”可以使用具体化来呈现。 While studying reification, I have found that it also says that it can represent sentence like: (using reified triples ) 在研究具体化时,我发现它也表示它可以表示如下句子:(使用具体化的三元组

"John believes the world is round and Jane believes the world is flat". “约翰认为世界是圆的,简认为世界是平的”。 or "Marconi claimed to have invented the radio, but so did Bose." 或者“马可尼声称发明了收音机,但是Bose也是如此。”

Can anyone please give a simple and clear explanation(like the given links) how this can be done? 任何人都可以给出一个简单明了的解释(如给定的链接)如何做到这一点? Thanks. 谢谢。

Both examples can be simply expressed in two separate reifications each. 这两个例子都可以简单地用两个单独的表示来表达。 The first example contains two separate statements, one believed by Jane, the other believed by John. 第一个例子包含两个单独的陈述,一个被Jane认为,另一个被John认为。 Using reification (in Turtle syntax) to express this would yield something like this: 使用reification(在Turtle语法中)表达这将产生如下所示:

:John :believes [ a rdf:Statement;  
                  rdf:subject :earth ; 
                  rdf:predicate :shape ; 
                  rdf:object :round ] .
:Jane :believes [ a rdf:Statement;  
                  rdf:subject :earth ; 
                  rdf:predicate :shape ; 
                  rdf:object :flat ] .

The second sentence can be expressed in a similar way, as two separate reifications. 第二句可以用类似的方式表达,作为两个单独的具体化。 Marconi believes one thing, Bose believes something else. 马可尼相信一件事,Bose相信别的东西。

An alternative approach for this is to use the singleton property approach. 另一种方法是使用单例属性方法。 In that, we create two singleton properties 在那里,我们创建了两个单例属性

:earth :shape#1 :round .

:shape#1 rdf:singletonPropertyOf :shape .

:John :believes :shape#1 .

:earth :shape#2 :flat .

:shape#2 rdf:singletonPropertyOf :shape .

:Jane :believes :shape#2 .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM