Re: How to access ontology annotations
Posted by Jade on
URL: http://owlready.306.s1.nabble.com/How-to-access-ontology-annotations-tp2527p2549.html
Thank you for this information, Jiba.
Unfortunately I am not able to iterate through an onto.metadata() or onto.metadata object.
E.g. when I try this:
"for data in onto.metadata:" (I first used "onto = get_ontology(owl_file_path).load()")
I get the error:
"builtins.TypeError: 'Metadata' object is not iterable"
I need to be able to access the ontology's metadata without knowing what it includes and then be able to write extra information back to each metadata object.
Is there an iterable object for accessing ontology metadata using owlready2?
Many thanks!
Jade Hotchkiss