Skip to content

Commit 3e5aa45

Browse files
committed
Preserve OMO:0002000 annotation property by default.
Add OMO:0002000 to the list of annotation properties to be preserved, even when annotation properties are being stripped from imports. That property has a logical meaning (it defines how an annotation is to be expanded using ROBOT's `expand` command), so it should be preserved.
1 parent 00a0cfa commit 3e5aa45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

odk/odk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class ImportProduct(Product):
147147
module_type_slme : str = "BOT"
148148
"""SLME module type. Supported: BOT, TOP, STAR"""
149149

150-
annotation_properties : List[str] = field(default_factory=lambda: ['rdfs:label', 'IAO:0000115'])
150+
annotation_properties : List[str] = field(default_factory=lambda: ['rdfs:label', 'IAO:0000115', 'OMO:0002000'])
151151
"""Define which annotation properties to pull in."""
152152

153153
slme_individuals : str = "include"
@@ -357,7 +357,7 @@ class ImportGroup(ProductGroup):
357357
export_obo: bool = False
358358
"""If set to true, modules will not only be created in OWL, but also OBO format"""
359359

360-
annotation_properties : List[str] = field(default_factory=lambda: ['rdfs:label', 'IAO:0000115'])
360+
annotation_properties : List[str] = field(default_factory=lambda: ['rdfs:label', 'IAO:0000115', 'OMO:0002000'])
361361
"""Define which annotation properties to pull in."""
362362

363363
strip_annotation_properties: bool = True

0 commit comments

Comments
 (0)