Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在owlready2中使用differentFrom和sameAs?_Python_Ontology_Swrl_Owlready - Fatal编程技术网

Python 如何在owlready2中使用differentFrom和sameAs?

Python 如何在owlready2中使用differentFrom和sameAs?,python,ontology,swrl,owlready,Python,Ontology,Swrl,Owlready,在Prótege中,软件能够在SWRL规则中插入differentFrom和samea,但当我在导入owlready2的Python中编写这些属性时,我遇到了以下消息: semantic | File "/usr/local/lib/python3.8/site-packages/owlready2/rule.py", line 173, in _find_entity semantic | raise ValueErr

在Prótege中,软件能够在SWRL规则中插入differentFrom和samea,但当我在导入owlready2的Python中编写这些属性时,我遇到了以下消息:

semantic            |   File "/usr/local/lib/python3.8/site-packages/owlready2/rule.py", line 173, in _find_entity
semantic            |     raise ValueError("Cannot find entity '%s'!" % name)
semantic            | ValueError: Cannot find entity 'differentfrom'

您知道如何正确使用这些属性吗?

如何使用它。请出示密码。它与不同,区分大小写。如何使用它。请出示密码。它与不同,区分大小写。