Using enumerated data type in defining property value for individual in Protege

点点圈 提交于 2020-01-11 07:37:48

问题


At first I want to mention that I am new in ontology and protege. I try to develop an ontology using protege 5.0. I defined some data properties with enumerated range which I defined in data range expression like this: {"Balanced" , "Clever" , "Energetic" , "Lazy" , "Talkative"}. Now I want to define an individual and want to choose a value from the range I defined above as filler for a datatype property. How can I do this?

thanks for your help in advance


回答1:


It is not possible to declare an individual from that range, because datatype ranges are composed of literals, not individuals.

If you want an individual labeled, for example, as "Balanced", create an individual with any IRI you think adequate and add an rdfs:label to it, as "Balanced"

Edit: as discussed in the comments, what is wanted is a data property assertion p(A, "literal")

I have done this with the following steps: - create a data property p (data property tab) - create an individual A (individual tab) - select A, a data property assertion tab appears among others - select the + button - select the desired property and insert the desired value

Note: In the question, a datatype enumeration is mentioned - I have not added it to the example, but the procedure is the same if the property p has a declared range.

This is shown in the picture below for reference.



来源:https://stackoverflow.com/questions/25686636/using-enumerated-data-type-in-defining-property-value-for-individual-in-protege

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!