[英]Explanation for reification in RDF
这两个例子都可以简单地用两个单独的表示来表达。 第一个例子包含两个单独的陈述,一个被Jane认为,另一个被John认为。 使用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 ] .
第二句可以用类似的方式表达,作为两个单独的具体化。 马可尼相信一件事,Bose相信别的东西。
另一种方法是使用单例属性方法。 在那里,我们创建了两个单例属性
: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.