Adding rdfs:label to a named individual

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding rdfs:label to a named individual

GrantLS
Hi, I have the need to add rdfs labels and descriptions to individuals I have created with owlready2. For example, I have the following:

state_individual = State("Illinois")

and I need to add a label which is equivalent to:

<rdfs:label>Illinois</rdfs:label>

How do I add a label to this named individual?
Reply | Threaded
Open this post in threaded view
|

Re: Adding rdfs:label to a named individual

Jiba
Administrator
state_individual.label.append("my label")
Reply | Threaded
Open this post in threaded view
|

Re: Adding rdfs:label to a named individual

GrantLS
Perfect. Thank you.