Hello everybody,
I would like to annotate the standard annotation properties rdfs:comment , rdfs:isDefinedBy, ... with a specific annotation property to make them appear in a web page or not.
As an example :
<rdf:Description rdf:about="
http://www.w3.org/2000/01/rdf-schema#comment"> <Occam:ClassInspectorAnnotation></Occam:ClassInspectorAnnotation>
</rdf:Description>
I manage to retrieve all these standard annotations like follows :
import importlib, inspect
for name, cls in inspect.getmembers(importlib.import_module("owlready2.annotation"), inspect.isclass):
if type(cls).__name__ == 'AnnotationPropertyClass':
print(name, cls,type(cls))
I would like then to get the ones having 'ClassInspectorAnnotation' as an annotation, so I call
getattr(cls,'ClassInspectorAnnotation')
It works fine on the annotations listed in the onto.annotation_properties() method, but it fails on the "default" annotations. I get the following error message :
AttributeError: 'ClassInspectorAnnotation' annotation property is not defined.
Could you please help me about this ,
Thank you in advance;
Best regards,
Jean-luc BELLIER.