在RDF中,主语可以有两个相同的(相同的URI)谓词吗?

在RDF中,主语可以有两个相同的(相同的URI)谓词吗?,rdf,turtle-rdf,Rdf,Turtle Rdf,对于一个给定的主语,可以做出两个谓词相同的语句吗 例如,第2行和第3行上的语句是否可以共存 data:myDataPoint1234 a abc:GeoPoint ; abc:isIdentifiedBy data:lat20 ; abc:isIdentifiedBy data:lon150 . data:lat20 a abc:Latitude ; abc:representationValue "20"^^xsd:string . data:lon150

对于一个给定的主语,可以做出两个谓词相同的语句吗

例如,第2行和第3行上的语句是否可以共存

data:myDataPoint1234 a abc:GeoPoint ;
  abc:isIdentifiedBy data:lat20 ;
  abc:isIdentifiedBy data:lon150 .

data:lat20 a abc:Latitude ;
  abc:representationValue "20"^^xsd:string .

data:lon150 a abc:Longitude ;
  abc:representationValue "150"^^xsd:string .

更新:重复问题:

是的,这是绝对允许的

通过验证发布的海龟示例进行验证

通过输出为XML格式并使用官方的W3C转换器进行验证进行双重检查

两个解析器都接受了这个例子

W3C解析器产生的语句:

数据模型的三元组
数字主谓宾语
1.http://abc.blah.com 被识别http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#AnnotationProperty
2.http://abc.blah.com 代表价值http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#AnnotationProperty
3.http://abc.blah.com 地质点http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#Class
4.http://abc.blah.com 纬度http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#Class
5.http://abc.blah.com 经度http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#Class
6.http://data.blah.com 拉丁美洲http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#NamedIndividual
7.http://data.blah.com 拉丁美洲http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://abc.blah.comLatitude
8.http://data.blah.com 拉丁美洲http://abc.blah.comrepresentationValue "20"^^http://www.w3.org/2001/XMLSchema#string
9http://data.blah.com lon150http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#NamedIndividual
10http://data.blah.com lon150http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://abc.blah.comLongitude
11http://data.blah.com lon150http://abc.blah.comrepresentationValue "150"^^http://www.w3.org/2001/XMLSchema#string
12http://data.blah.com myDataPoint1234http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#NamedIndividual
13http://data.blah.com myDataPoint1234http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://abc.blah.comGeoPoint
14http://data.blah.com myDataPoint1234http://abc.blah.comisIdentifiedBy http://data.blah.com lat20

15http://data.blah.commyDataPoint1234 http://abc.blah.comisIdentifiedBy http://data.blah.com LON150如果你尝试,会发生什么?@JeenBroekstra RDF4J似乎不想让我们在谓词相同的情况下添加关于主语的第二个语句。RDF4J(以及任何RDF工具)肯定允许这样做,因此肯定还有其他问题。你能用你的问题来说明你想做什么,你得到的结果和你期望的结果吗?为什么不可能呢?如果没有多值属性,任何人如何处理多值属性?请显示RDF4J代码。意识到这是一个重复的问题,但很难通过搜索找到,所以将其作为搜索引擎的占位符非常有用。很高兴被愚弄。