RDFS:可以推断出这个陈述吗?

问题描述 投票:0回答:2

如果存在RDFS三元组:

shop:Zara        rdfs:subClassOf        shop:Clothes

声明可以:

shop:Zara        rdf:type               shop:Clothes

推断?

types rdf rdfs triplestore
2个回答
1
投票

我想对约书亚的答案稍微说一下:

以下声明

shop:Zara        rdfs:subClassOf        shop:Clothes

暗示shop:Clothesshop:Zara都是rdfs:Class类型。

在口语中,你可能会说:

Zara商店是一家服装店。

但你真正想要的是什么

任何Zara商店的商店都是服装店。

所以在RDF中,从语句中确实如此

shop:Zara        rdfs:subClassOf        shop:Clothes
example:shopXYZ  rdfs:type              shop:Zara

可以推断出以下内容:

example:shopXYZ  rdf:type               shop:Clothes

2
投票

如果存在RDFS三元组:

shop:Zara        rdfs:subClassOf        shop:Clothes

声明可以:

shop:Zara        rdf:type               shop:Clothes

推断?

不。考虑集合论中的类比:

(1)A⊆乙

并不意味着

(2)A∈乙

(1)说A的每个元素也是B的元素。(2)说A是B的元素。

© www.soinside.com 2019 - 2024. All rights reserved.