Missing Validation Rules for SBGN Activity Flow (AF) Level 1.2
Two missing validation rules in sbgn_af.sch based on the SBGN AF Level 1 Version 1.2 specification.
1. Unique Unit of Information
Spec Reference: Section 3.3.3.1 (Syntactic Rules), Rule 1.
"Each biological activity has at most one unit of information."
Missing Check:
The validator should flag an error if a biological activity glyph contains more than one unit of information glyph.
2. At Most One Necessary Stimulation
Spec Reference: Section 3.4.2 (Modulation), Rule 4.
"At most one necessary stimulation can be assigned to an activity."
Missing Check:
The validator should flag an error if an activity node is the target of more than one necessary stimulation arc.
Proposed patterns af10115 and af10116 could be added to implement these checks.
Hi @abhinaverma97
I can work on this by adding two Schematron assertions in validation/schematron/sbgn_af.sch:
- enforce ≤1 unit of information per biological activity glyph (count of child UoI glyphs ≤ 1)
- enforce ≤1 necessary stimulation targeting an activity (count of incoming necessary stimulation arcs ≤ 1)
I’ll map these to patterns af10115 and af10116 and include small failing/passing test cases if needed.
Is this issue open for contribution? I’d be happy to take it.
Hey @kushvinth you need to ask @cannin
@cannin, please review my approach