Skip to content

Commit

Permalink
Add default has_member relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Apr 1, 2020
1 parent 1d5bde4 commit 5217ebb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyobo/struct/typedef.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'pathway_has_part',
'part_of',
'is_a',
'has_member',
'subclass',
'has_role',
'role_of',
Expand Down Expand Up @@ -84,6 +85,9 @@ def iterate_obo_lines(self) -> Iterable[str]:
reference=Reference.default(identifier='is_a', name='is a'),
inverse=Reference.default(identifier='subclass', name='subclass'),
)
has_member = TypeDef(
reference=Reference.default(identifier='has_member', name='has member'),
)
subclass = TypeDef(
reference=Reference.default(identifier='subclass', name='subclass'),
comment='Inverse of isA',
Expand Down

0 comments on commit 5217ebb

Please sign in to comment.