Re: How to use .instances() method to iterate through all Instances of owl:Thing in owlready2?

Posted by mario7111 on
URL: http://owlready.306.s1.nabble.com/How-to-use-instances-method-to-iterate-through-all-Instances-of-owl-Thing-in-owlready2-tp2663p2672.html

Hi Jiba,

Thank you very much for your reply.

It works with Thing.instances() + declaring instances as NamedIndividual.

I edited the .owl file and added "<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>" for every individual and it works.

But how do I declare every instance as NamedIndividual in Protege directly instead of editing the .owl file?

Best regards,

Marius