Skip to content

Commit

Permalink
Merge pull request #298 from cidgoh/spatil/nmdc-schema-pattern
Browse files Browse the repository at this point in the history
update NMDC LinkML YAML
  • Loading branch information
ddooley authored Apr 22, 2022
2 parents 629da86 + 6d82532 commit ba8b936
Show file tree
Hide file tree
Showing 2 changed files with 52,146 additions and 3,435 deletions.
4 changes: 3 additions & 1 deletion script/linkml.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def encoder(encoder_obj):
# output

# Presence of "slots" in class indicates field hierarchy
if schema_spec.class_slots(class_obj.name):
if schema_spec.class_slots(name):

content["specifications"][name] = class_obj

Expand All @@ -110,6 +110,8 @@ def encoder(encoder_obj):

class_names = content["specifications"].keys()

# TODO: add section ordering implementation block

# code block to sort class slots by rank
for cls_name in class_names:
specification = content["specifications"][cls_name]
Expand Down
Loading

0 comments on commit ba8b936

Please sign in to comment.