0

这是我的 NTriples 的一小部分:

<myOnt#hasRanking> <rdfs-ns#type> <owl#ObjectProperty> .
<myOnt#hasRanking> <rdfs#range> <myOnt#Ranking> .
<myOnt#hasRanking> <rdfs#domain> <myOnt#Faculty> .

完整的代码可以看成:

https://pastebin.com/wRfyns2b

但问题是,protege,而不是定义适当的类和它们的关系是这样的(把所有东西都放在注释属性中”:

例子

我怎样才能以正确的形式表示它?

4

1 回答 1

2

If the property declarations are missing, the input is invalid for Protégé. In that situation, Protégé considers the undeclared properties as annotation properties and parses the input accordingly. To fix it, you need to declare the properties as data or object properties, or add an import to an ontology that includes the necessary declarations.

From looking at the complete file, I think the problem is that you're attempting to use shortened namespaces for the type property. Use absolute IRIs or use a format that supports namespace shortening.

于 2019-06-18T17:06:17.700 回答