我是owlread2的新手。我想实现这样的关系
Car has Color
Bike has Color
House has Color
到目前为止,我是这样尝试的:
class has_color(ObjectProperty):
domain = [Car,Bike,House]
range = [Color]
和
cass has_color(ObjectProperty):
domain = [Car| Bike| House]
range = [Color]
但这两种方法似乎都不起作用。如果有人能告诉我如何完成这项工作,我会很高兴