Using enumerated data type in defining property va

2019-02-20 03:43发布

问题:

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.