How to extract only English labels?

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

How to extract only English labels?

S04dEGR4gE
https://perkapp.fbk.eu/helis/ontology/ 

https://perkapp.fbk.eu/helis/ontology/helis_v1.10.owl has non English labels. What is the best way to extract English labels?

>>> from owlready2 import default_world
>>> default_world.set_backend(filename='/tmp/helis_v1.10.sq3')
>>> c=next(default_world.classes())
>>> c.label
['Activity', "Attivita'", 'Attività']
Reply | Threaded
Open this post in threaded view
|

Re: How to extract only English labels?

Jiba
Administrator
Hi,

try : c.label.en

JIba