【发布时间】:2020-05-16 16:19:54
【问题描述】:
我尝试在 RDFUnit 在线演示 (http://rdfunit.aksw.org/demo/) 中使用 RDFS 验证我的 RDF。验证结果为:
Fail ERROR http://example.org/cim#IdentifiedObject.mRID 有 rdfs:domain 不同于:http://example.org/cim#IdentifiedObject
RDF:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:cim="http://example.org/cim#" >
<rdf:Description rdf:about="1">
<rdf:type rdf:resource="cim:IdentifiedObject" />
<cim:IdentifiedObject.mRID>1</cim:IdentifiedObject.mRID>
</rdf:Description>
</rdf:RDF>
RDFS:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xml:base="http://example.org/cim#" >
<rdfs:Class rdf:ID="IdentifiedObject" />
<rdf:Property rdf:ID="IdentifiedObject.mRID">
<rdfs:domain rdf:resource="#IdentifiedObject" />
</rdf:Property>
</rdf:RDF>
在 rdf:Propery 中声明域的正确方法是什么?
【问题讨论】:
标签: rdf semantic-web rdfs