libsbgn icon indicating copy to clipboard operation
libsbgn copied to clipboard

Missing Validation Rules for SBGN Activity Flow (AF) Level 1.2

Open abhinaverma97 opened this issue 9 months ago • 3 comments

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.

abhinaverma97 avatar Feb 05 '26 18:02 abhinaverma97

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.

kushvinth avatar Feb 22 '26 15:02 kushvinth

Hey @kushvinth you need to ask @cannin

abhinaverma97 avatar Feb 22 '26 18:02 abhinaverma97

@cannin, please review my approach

kushvinth avatar Feb 22 '26 19:02 kushvinth