Skip to content

Commit

Permalink
Add rule to make id / label required when sssom literal present
Browse files Browse the repository at this point in the history
LinkML validation passes for this, but not sure it actually does anything.
  • Loading branch information
matentzn committed Aug 4, 2024
1 parent 80ea2eb commit d8c6046
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/sssom_schema/schema/sssom_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,24 @@ classes:
- other
- comment
class_uri: owl:Axiom
rules:
- preconditions:
slot_conditions:
subject_type:
equals_string: "sssom literal"
postconditions:
slot_conditions:
subject_label:
required: true
- preconditions:
slot_conditions:
subject_type:
none_of:
equals_string: "sssom literal"
postconditions:
slot_conditions:
subject_id:
required: true
mapping registry:
description: A registry for managing mapping sets. It holds a set of
mapping set references, and can import other registries.
Expand Down

0 comments on commit d8c6046

Please sign in to comment.