Skip to content

Add validation rule pd10143 for compartmentRef existence check#77

Open
Drishti160803 wants to merge 1 commit intosbgn:masterfrom
Drishti160803:add-layout-validation
Open

Add validation rule pd10143 for compartmentRef existence check#77
Drishti160803 wants to merge 1 commit intosbgn:masterfrom
Drishti160803:add-layout-validation

Conversation

@Drishti160803
Copy link
Copy Markdown

What this PR does

Adds a new Schematron validation rule pd10143 to sbgn_pd.sch.

Problem

Currently there is no validation that checks whether a glyph's
compartmentRef actually points to an existing compartment glyph
in the diagram. A user could set compartmentRef to a non-existent
id and no error would be reported, making diagrams silently invalid.

New rule pd10143

Checks that every glyph with a compartmentRef attribute references
a glyph of class 'compartment' that actually exists in the diagram.

If the rule fails, the error message shows:

  • The id of the offending glyph
  • The compartmentRef value that could not be resolved

Related issue

Closes #76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing validation for SBGN PD layout rules and recommendations

1 participant