Rdf 为什么推理者推断这个类是这个类的一个子类
这是我的第一个等级2016,相当于:等级和createdOn的值大于2016Rdf 为什么推理者推断这个类是这个类的一个子类,rdf,semantic-web,owl,ontology,protege,Rdf,Semantic Web,Owl,Ontology,Protege,这是我的第一个等级2016,相当于:等级和createdOn的值大于2016 <!-- http://semanticrecommender.com/rs#Ratings2016 --> <owl:Class rdf:about="http://semanticrecommender.com/rs#Ratings2016"> <owl:equivalentClass> <owl:Class>
<!-- http://semanticrecommender.com/rs#Ratings2016 -->
<owl:Class rdf:about="http://semanticrecommender.com/rs#Ratings2016">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://semanticrecommender.com/rs#Rates"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://semanticrecommender.com/rs#createdOn"/>
<owl:someValuesFrom>
<rdfs:Datatype>
<owl:onDatatype rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
<owl:withRestrictions rdf:parseType="Collection">
<rdf:Description>
<xsd:minInclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-01-01T00:00:00</xsd:minInclusive>
</rdf:Description>
</owl:withRestrictions>
</rdfs:Datatype>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>
当我运行推理机时,推理机说2016评级是2015评级的子类
这是不正确的,为什么会这样以及如何解决它?原因是您正在使用
xsd:minInclusive
指定创建日期。但是,根据XMLSchema,xsdminInclusive
只指定了一个可能值的下限。因此,由于Ratings2016
的创建日期大于Ratings2015
的日期,因此它包含在为Ratings2015
指定的值中(从2015年初开始,不终止),并且属于该类别
当然,解决此问题的方法取决于您的问题,但例如,为您的评级声明
xsd:maxInclusive
值就足够了 原因是您正在使用xsd:minInclusive
指定创建日期。但是,根据XMLSchema,xsdminInclusive
只指定了一个可能值的下限。因此,由于Ratings2016
的创建日期大于Ratings2015
的日期,因此它包含在为Ratings2015
指定的值中(从2015年初开始,不终止),并且属于该类别
当然,解决此问题的方法取决于您的问题,但例如,为您的评级声明
xsd:maxInclusive
值就足够了 请你帮我一下好吗?请你帮我一下好吗?
<!-- http://semanticrecommender.com/rs#Ratings2015 -->
<owl:Class rdf:about="http://semanticrecommender.com/rs#Ratings2015">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://semanticrecommender.com/rs#Rates"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://semanticrecommender.com/rs#createdOn"/>
<owl:someValuesFrom>
<rdfs:Datatype>
<owl:onDatatype rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
<owl:withRestrictions rdf:parseType="Collection">
<rdf:Description>
<xsd:minInclusive rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-01-01T00:00:00</xsd:minInclusive>
</rdf:Description>
</owl:withRestrictions>
</rdfs:Datatype>
</owl:someValuesFrom>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
</owl:Class>