简体   繁体   English

您可以根据类实例为个人赋值吗?

[英]Can you assign values to Individuals based off of classes instances?

As shown in the screenshot, I have some subclasses of Person, and I've created Instances for Educational Level such as First_Level, Second_Level etc..如屏幕截图所示,我有一些 Person 的子类,并且我已经为教育级别创建了实例,例如 First_Level、Second_Level 等。

I'm wondering how would I assign these to individuals I have created or would I create these subclasses within Data Properties and assign it to individuals that way?我想知道如何将这些分配给我创建的个人,或者我会在数据属性中创建这些子类并以这种方式将其分配给个人吗? 子类实例

Thought I would've been able to assign Instances to individuals, but the only options I have are Object and Data property assertions under individuals.以为我可以将实例分配给个人,但我唯一的选择是个人下的 Object 和数据属性断言。

You cannot assign an instance to an individual - instance and individual are synonyms in this context.您不能将实例分配给个人 - 实例和个人在此上下文中是同义词。 If you want to establish a relation between two instances (ie, two individuals), you should use an object property.如果要在两个实例(即两个个体)之间建立关系,则应使用 object 属性。

That said, your taxonomy looks surprising to me.也就是说,您的分类法让我感到惊讶。 Why would a date of birth be a subclass of Person?为什么出生日期是 Person 的子类? A date is not a kind of person, in most domains.在大多数领域,日期不是一种人。 Perhaps those shouldn't be subclasses of Person, and this is why you're finding it difficult to model your assertions?也许那些不应该是 Person 的子类,这就是为什么您发现很难 model 您的断言?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM