Different IRIs in the same ontology

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

Different IRIs in the same ontology

isukura
Hello! I have a small problem concerning IRIs.
I'm working on the ontology that was created by someone else. The problem is that the IRIs of all the entities don't match because the preferences were set up to respect the month and year the entity was created in.
In Protégé (where the ontology was modelled) it isn't a problem, but in OWLready I can't fetch the entities with different base IRI.

Is there a way to change all IRIs in OWLready or to work with the entities which it can't recognize right now?

I know that this community concerns OWLready, but I would also be interested in my options in Protégé. I've read somewhere that it's possible to change the ontology IRI and then make the program change every existing IRI, but I can't find that option!

Thanks in advance!
Reply | Threaded
Open this post in threaded view
|

Re: Different IRIs in the same ontology

Jiba
Administrator
Hi,

In Owlready, you can use IRIS["http://full_iri"] to access an entity, or you may use Namespace to access entities defined with an IRI that does not match the ontology IRI.

You can also use entity.iri = "http://new_iri" to change the IRI of an entity.

Jiba