I discovered the concept of semantic annotations for openBIS Object/Property Types while going through the pyBIS doc and found some more information in the V3 API chapter, but still struggle to figure out how they are meant to work exactly.
I understand that semantic annotations can be added to
- an Object/Sample type (I use the term “Sample” in the following)
- a Property type
- a Sample Property assignment (as in a Property type as used by a specific Sample type? Since there is no differentiation between local and global Properties anymore since release 20.10.3)
I also don’t understand the pyBIS notation of semantic annotations yet. A practical example for this in the documentation would be very helpful.
Supposing I have an openBIS Property type “temperature” which I want to annotate with the class Temperature (http://www.ontologyrepository.com/CommonCoreOntologies/Temperature) from the Common Core Ontologies (curated in Quality Ontology, Version 1.3, http://www.ontologyrepository.com/CommonCoreOntologies/Mid/QualityOntology).
What would the “predicate” and what would be the “descriptor” in this case?
sa = o.new_semantic_annotation(
entityType = ‘UNKNOWN’,
predicateOntologyId = ‘po_id’,
predicateOntologyVersion = ‘po_version’,
predicateAccessionId = ‘pa_id’,
descriptorOntologyId = ‘do_id’,
descriptorOntologyVersion = ‘do_version’,
descriptorAccessionId = ‘da_id’)
I would also like to know whether there are any plans to integrate the concept of semantic annotations to the ELN and/or the Admin UI. It would, e.g., be great if a user could see both description of a Property as well as the semantic annotations when hovering with the mouse over the Property type, similar to how it’s already done for Sample info inside the Storage Manager.