rename classes of existing ontology

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

rename classes of existing ontology

Citlalli
Hi,

Is there a method to change de name of classes defined in an existing ontology?

Best regards,
C
Reply | Threaded
Open this post in threaded view
|

Re: rename classes of existing ontology

Jiba
Administrator
Hello,

You can rename (or "refactor") a class as follows:

        New_Class.name = "NewName"

or:

        New_Class.iri = "http://full.iri.com/NewName"

The first syntax just change the name, the second one allows to change the entire IRI.


Best regards,
Jean-Baptiste Lamy
MCF, LIMICS, Université Paris 13

> Hi,
>
> Is there a method to change de name of classes defined in an existing
> ontology?
>
> Best regards,
> C
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://owlready.8326.n8.nabble.com/rename-classes-of-existing-ontology-tp123.html
> To start a new topic under Owlready, email [hidden email]
> To unsubscribe from Owlready, visit