simphony-osp icon indicating copy to clipboard operation
simphony-osp copied to clipboard

Support reading of AnnotationProperties for OntologyClasses

Open pablo-de-andres opened this issue 4 years ago • 12 comments

In GitLab by @yoavnash on Jun 2, 2020, 14:44

Currently only cuds objects could attribute, however sometimes we would like to have an attribute associated with an oclass.

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

In GitLab by @urbanmatthias on Jun 2, 2020, 14:46

Can you give an example? Should this attribute be defined in the ontology? Do you want to change its value on runtime?

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

In GitLab by @yoavnash on Jun 3, 2020, 15:44

An example would be a translation to German of an oclass name. In OIE, I would like to use it as a 'nickname' for an oclass.

It should be defined in the ontology, and change it during runtime, I imagine would require to introduce an ontology-editing functionality to osp-core, correct?

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

In GitLab by @urbanmatthias on Jun 3, 2020, 17:03

yes, more or less

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

In GitLab by @yoavnash on Jun 4, 2020, 11:55

I'm sorry, I didn't complete the sentence. I meant, changing it during runtime is not required, as it will add more complexity and the functionality is not really needed (currently).

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

In GitLab by @yoavnash on Jun 4, 2020, 11:55

Another example of how this is useful is to have a list of synonyms of an oclass name.

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

What do you guys think about this issue? Would be quite helpful for me. Is this feature supported in OWL?

@aaronAB1993 @urbanmatthias

yoavnash avatar Aug 17 '20 09:08 yoavnash

There are AnnotationProperties in owl and as far as I understand, that's what you would need:

  1. A way to add annotations to a YAML Class --> Update the YAML parser and validator
  2. We investigate how these AnnotationProperties are represented in RDF and add the ability to access these from python code.

I've assigned it to @aaronAB1993 for now. But as you know he's on vacation, so if it is more urgent, please comment and reassign.

urbanmatthias avatar Aug 19 '20 05:08 urbanmatthias

Thanks. Definitely not urgent.

yoavnash avatar Aug 19 '20 07:08 yoavnash

I renamed it

urbanmatthias avatar Mar 17 '21 08:03 urbanmatthias

Is this in the docs or is there an example? If so, can you provide a link?

yoavnash avatar Mar 17 '21 09:03 yoavnash

This is not supported yet, and therefore the is no link.

urbanmatthias avatar Mar 17 '21 09:03 urbanmatthias

This is the relevant OWL documentation https://www.w3.org/TR/owl2-syntax/#Annotation_Properties

urbanmatthias avatar Mar 17 '21 09:03 urbanmatthias