libsbgnpy 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- libsbgnpy/__init__.py +16 -0
- libsbgnpy/examples/__init__.py +0 -0
- libsbgnpy/examples/extension_example.py +103 -0
- libsbgnpy/examples/info_example.py +70 -0
- libsbgnpy/examples/notes_example.py +66 -0
- libsbgnpy/examples/read_example.py +35 -0
- libsbgnpy/examples/sbgn/adh.sbgn +61 -0
- libsbgnpy/examples/sbgn/glycolysis.sbgn +375 -0
- libsbgnpy/examples/sbgn/neuronal_muscle_signalling_color.sbgn +439 -0
- libsbgnpy/examples/sbgn/notes.sbgn +13 -0
- libsbgnpy/examples/sbgn/test-output-01.sbgn +8 -0
- libsbgnpy/examples/sbgn/test-output-02.sbgn +59 -0
- libsbgnpy/examples/sbgn/test-output-03.sbgn +16 -0
- libsbgnpy/examples/write_example.py +223 -0
- libsbgnpy/libsbgn.py +4490 -0
- libsbgnpy/libsbgnSubs.py +127 -0
- libsbgnpy/libsbgnTypes.py +112 -0
- libsbgnpy/render.py +59 -0
- libsbgnpy/sbo/__init__.py +0 -0
- libsbgnpy/sbo/sbgn_sbo_mapping.txt +1304 -0
- libsbgnpy/sbo/sbo2sbgn.py +58 -0
- libsbgnpy/sbo/sbo_sbgn_map.txt +38 -0
- libsbgnpy/schema/README.md +156 -0
- libsbgnpy/schema/SBGN.xsd +1018 -0
- libsbgnpy/schema/__init__.py +0 -0
- libsbgnpy/utils.py +93 -0
- libsbgnpy/validation/__init__.py +0 -0
- libsbgnpy/validation/error-test-files/AF/af10101-fail.sbgn +34 -0
- libsbgnpy/validation/error-test-files/AF/af10101-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/AF/af10102-fail-1.sbgn +17 -0
- libsbgnpy/validation/error-test-files/AF/af10102-fail-2.sbgn +17 -0
- libsbgnpy/validation/error-test-files/AF/af10102-fail-3.sbgn +17 -0
- libsbgnpy/validation/error-test-files/AF/af10102-fail-4.sbgn +17 -0
- libsbgnpy/validation/error-test-files/AF/af10102-pass.sbgn +17 -0
- libsbgnpy/validation/error-test-files/AF/af10103-fail.sbgn +35 -0
- libsbgnpy/validation/error-test-files/AF/af10103-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/AF/af10104-fail.sbgn +34 -0
- libsbgnpy/validation/error-test-files/AF/af10104-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/AF/af10109-fail.sbgn +35 -0
- libsbgnpy/validation/error-test-files/AF/af10109-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/AF/af10110-fail.sbgn +34 -0
- libsbgnpy/validation/error-test-files/AF/af10111-fail.sbgn +42 -0
- libsbgnpy/validation/error-test-files/AF/af10111-pass.sbgn +26 -0
- libsbgnpy/validation/error-test-files/AF/af10112-fail.sbgn +25 -0
- libsbgnpy/validation/error-test-files/AF/af10113-fail.sbgn +17 -0
- libsbgnpy/validation/error-test-files/ER/er10103-fail.sbgn +29 -0
- libsbgnpy/validation/error-test-files/ER/er10103-pass.sbgn +25 -0
- libsbgnpy/validation/error-test-files/ER/er10104-fail.sbgn +31 -0
- libsbgnpy/validation/error-test-files/ER/er10104-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/ER/er10106-fail-1.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10106-fail-2.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10106-fail-3.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10106-fail-4.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10106-fail-5.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10106-fail-6.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10106-pass.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10107-fail-1.sbgn +25 -0
- libsbgnpy/validation/error-test-files/ER/er10107-fail-2.sbgn +25 -0
- libsbgnpy/validation/error-test-files/ER/er10107-fail-3.sbgn +25 -0
- libsbgnpy/validation/error-test-files/ER/er10107-fail-4.sbgn +25 -0
- libsbgnpy/validation/error-test-files/ER/er10107-fail-5.sbgn +25 -0
- libsbgnpy/validation/error-test-files/ER/er10107-fail-6.sbgn +25 -0
- libsbgnpy/validation/error-test-files/ER/er10107-pass.sbgn +26 -0
- libsbgnpy/validation/error-test-files/ER/er10108-fail-1.sbgn +43 -0
- libsbgnpy/validation/error-test-files/ER/er10108-fail-2.sbgn +43 -0
- libsbgnpy/validation/error-test-files/ER/er10108-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/ER/er10109-fail.sbgn +40 -0
- libsbgnpy/validation/error-test-files/ER/er10109-pass.sbgn +40 -0
- libsbgnpy/validation/error-test-files/ER/er10111-fail.sbgn +53 -0
- libsbgnpy/validation/error-test-files/ER/er10111-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/ER/er20001-fail.sbgn +55 -0
- libsbgnpy/validation/error-test-files/ER/er20001-pass.sbgn +57 -0
- libsbgnpy/validation/error-test-files/PD/pd10101-fail.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10101-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10102-fail.sbgn +55 -0
- libsbgnpy/validation/error-test-files/PD/pd10102-pass.sbgn +55 -0
- libsbgnpy/validation/error-test-files/PD/pd10103-fail.sbgn +37 -0
- libsbgnpy/validation/error-test-files/PD/pd10103-pass.sbgn +45 -0
- libsbgnpy/validation/error-test-files/PD/pd10104-fail.sbgn +55 -0
- libsbgnpy/validation/error-test-files/PD/pd10104-pass.sbgn +47 -0
- libsbgnpy/validation/error-test-files/PD/pd10105-fail.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10105-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10106-fail.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10106-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10107-fail.sbgn +37 -0
- libsbgnpy/validation/error-test-files/PD/pd10107-pass.sbgn +45 -0
- libsbgnpy/validation/error-test-files/PD/pd10108-fail.sbgn +42 -0
- libsbgnpy/validation/error-test-files/PD/pd10108-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10109-fail-1.sbgn +51 -0
- libsbgnpy/validation/error-test-files/PD/pd10109-fail-2.sbgn +51 -0
- libsbgnpy/validation/error-test-files/PD/pd10109-fail-3.sbgn +51 -0
- libsbgnpy/validation/error-test-files/PD/pd10109-fail-4.sbgn +51 -0
- libsbgnpy/validation/error-test-files/PD/pd10109-fail-5.sbgn +51 -0
- libsbgnpy/validation/error-test-files/PD/pd10109-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10110-fail-1.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10110-fail-2.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10110-fail-3.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10110-fail-4.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10110-fail-5.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10110-pass.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10111-fail-2.sbgn +72 -0
- libsbgnpy/validation/error-test-files/PD/pd10111-fail.sbgn +72 -0
- libsbgnpy/validation/error-test-files/PD/pd10111-pass.sbgn +68 -0
- libsbgnpy/validation/error-test-files/PD/pd10112-fail-1.sbgn +28 -0
- libsbgnpy/validation/error-test-files/PD/pd10112-fail-2.sbgn +28 -0
- libsbgnpy/validation/error-test-files/PD/pd10112-pass.sbgn +28 -0
- libsbgnpy/validation/error-test-files/PD/pd10124-fail.sbgn +67 -0
- libsbgnpy/validation/error-test-files/PD/pd10124-pass.sbgn +67 -0
- libsbgnpy/validation/error-test-files/PD/pd10125-fail.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10126-fail.sbgn +53 -0
- libsbgnpy/validation/error-test-files/PD/pd10126-pass.sbgn +45 -0
- libsbgnpy/validation/error-test-files/PD/pd10127-fail.sbgn +21 -0
- libsbgnpy/validation/error-test-files/PD/pd10127-pass.sbgn +17 -0
- libsbgnpy/validation/error-test-files/PD/pd10128-fail.sbgn +21 -0
- libsbgnpy/validation/error-test-files/PD/pd10128-pass.sbgn +17 -0
- libsbgnpy/validation/error-test-files/PD/pd10131-fail.sbgn +9 -0
- libsbgnpy/validation/error-test-files/PD/pd10131-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10132-fail.sbgn +10 -0
- libsbgnpy/validation/error-test-files/PD/pd10132-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10140-fail.sbgn +31 -0
- libsbgnpy/validation/error-test-files/PD/pd10140-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10141-fail.sbgn +11 -0
- libsbgnpy/validation/error-test-files/PD/pd10141-pass.sbgn +27 -0
- libsbgnpy/validation/error-test-files/PD/pd10142-fail.sbgn +35 -0
- libsbgnpy/validation/error-test-files/PD/pd10142-pass.sbgn +53 -0
- libsbgnpy/validation/error-test-files/error_notes.txt +7 -0
- libsbgnpy/validation/rules/sbgn_af.sch +275 -0
- libsbgnpy/validation/rules/sbgn_er.sch +288 -0
- libsbgnpy/validation/rules/sbgn_pd.sch +634 -0
- libsbgnpy/validation/schematron/ExtractSchFromRNG.xsl +75 -0
- libsbgnpy/validation/schematron/ExtractSchFromXSD.xsl +77 -0
- libsbgnpy/validation/schematron/iso-schematron-xslt1.zip +0 -0
- libsbgnpy/validation/schematron/iso-schematron-xslt2.zip +0 -0
- libsbgnpy/validation/schematron/iso_abstract_expand.xsl +297 -0
- libsbgnpy/validation/schematron/iso_dsdl_include.xsl +1509 -0
- libsbgnpy/validation/schematron/iso_schematron_message.xsl +55 -0
- libsbgnpy/validation/schematron/iso_schematron_skeleton_for_xslt1.xsl +1841 -0
- libsbgnpy/validation/schematron/iso_svrl_for_xslt1.xsl +604 -0
- libsbgnpy/validation/schematron/readme.txt +101 -0
- libsbgnpy/validation/schematron/schematron-skeleton-api.htm +723 -0
- libsbgnpy/validation/validator.py +141 -0
- libsbgnpy-0.3.0.dist-info/METADATA +91 -0
- libsbgnpy-0.3.0.dist-info/RECORD +145 -0
- libsbgnpy-0.3.0.dist-info/WHEEL +4 -0
- libsbgnpy-0.3.0.dist-info/licenses/LICENSE +7 -0
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
|
|
4
|
+
Schematron validation for SBGN PD
|
|
5
|
+
|
|
6
|
+
@author Augustin Luna
|
|
7
|
+
@version 21 May 2011
|
|
8
|
+
-->
|
|
9
|
+
<iso:schema
|
|
10
|
+
xmlns:iso="http://purl.oclc.org/dsdl/schematron"
|
|
11
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
12
|
+
defaultPhase="basic"
|
|
13
|
+
schemaVersion="0.1">
|
|
14
|
+
|
|
15
|
+
<iso:ns prefix="sbgn" uri="http://sbgn.org/libsbgn/0.2"/>"/>
|
|
16
|
+
|
|
17
|
+
<iso:title>sbgn_validation</iso:title>
|
|
18
|
+
<iso:p>p test 1</iso:p>
|
|
19
|
+
|
|
20
|
+
<iso:phase id="sanity">
|
|
21
|
+
<iso:active pattern="00000"/>
|
|
22
|
+
</iso:phase>
|
|
23
|
+
|
|
24
|
+
<iso:phase id="basic">
|
|
25
|
+
<iso:active pattern="00001"/>
|
|
26
|
+
<iso:active pattern="00002"/>
|
|
27
|
+
<iso:active pattern="pd10101"/>
|
|
28
|
+
<iso:active pattern="pd10102"/>
|
|
29
|
+
<iso:active pattern="pd10103"/>
|
|
30
|
+
<iso:active pattern="pd10104"/>
|
|
31
|
+
<iso:active pattern="pd10105"/>
|
|
32
|
+
<iso:active pattern="pd10106"/>
|
|
33
|
+
<iso:active pattern="pd10107"/>
|
|
34
|
+
<iso:active pattern="pd10108"/>
|
|
35
|
+
<iso:active pattern="pd10109"/>
|
|
36
|
+
<iso:active pattern="pd10110"/>
|
|
37
|
+
<iso:active pattern="pd10111"/>
|
|
38
|
+
<iso:active pattern="pd10112"/>
|
|
39
|
+
|
|
40
|
+
<iso:active pattern="pd10124"/>
|
|
41
|
+
<iso:active pattern="pd10125"/>
|
|
42
|
+
<iso:active pattern="pd10126"/>
|
|
43
|
+
<iso:active pattern="pd10127"/>
|
|
44
|
+
<iso:active pattern="pd10128"/>
|
|
45
|
+
<iso:active pattern="pd10129"/>
|
|
46
|
+
<iso:active pattern="pd10130"/>
|
|
47
|
+
<iso:active pattern="pd10131"/>
|
|
48
|
+
<iso:active pattern="pd10132"/>
|
|
49
|
+
<iso:active pattern="pd10133"/>
|
|
50
|
+
<iso:active pattern="pd10134"/>
|
|
51
|
+
<iso:active pattern="pd10140"/>
|
|
52
|
+
<iso:active pattern="pd10141"/>
|
|
53
|
+
<iso:active pattern="pd10142"/>
|
|
54
|
+
</iso:phase>
|
|
55
|
+
|
|
56
|
+
<iso:pattern id="00000">
|
|
57
|
+
<iso:rule context="/*">
|
|
58
|
+
<iso:assert id="00000" name="sanity-check" test="false()">This assertion should always fail. Timestamp: <iso:value-of select="current-time()"/> Namespace: <iso:value-of select="namespace-uri()"/></iso:assert>
|
|
59
|
+
</iso:rule>
|
|
60
|
+
</iso:pattern>
|
|
61
|
+
|
|
62
|
+
<iso:pattern id="00001">
|
|
63
|
+
<iso:rule context="//*[@id]">
|
|
64
|
+
<iso:let name="id" value="@id"/>
|
|
65
|
+
<iso:assert
|
|
66
|
+
name="check-id"
|
|
67
|
+
id="00001"
|
|
68
|
+
role="error"
|
|
69
|
+
test="count(//@id[. = current()/@id]) = 1" diagnostics="id">ID needs to be unique.</iso:assert>
|
|
70
|
+
</iso:rule>
|
|
71
|
+
</iso:pattern>
|
|
72
|
+
|
|
73
|
+
<iso:pattern id="00002">
|
|
74
|
+
<iso:rule context="sbgn:arc">
|
|
75
|
+
<iso:let name="target" value="@target"/>
|
|
76
|
+
<iso:assert
|
|
77
|
+
name="check-idref"
|
|
78
|
+
id="00002"
|
|
79
|
+
role="error"
|
|
80
|
+
test="//*/@id[. = $target]" diagnostics="target">An arc target should be a glyph defined in the diagram.</iso:assert>
|
|
81
|
+
</iso:rule>
|
|
82
|
+
</iso:pattern>
|
|
83
|
+
|
|
84
|
+
<iso:pattern id="pd10101">
|
|
85
|
+
<iso:rule context="sbgn:arc[@class='consumption']">
|
|
86
|
+
<iso:let name="id" value="@id"/>
|
|
87
|
+
<iso:let name="source" value="@source"/>
|
|
88
|
+
<iso:let name="class" value="//sbgn:glyph[@id=$source]/@class"/>
|
|
89
|
+
<iso:assert
|
|
90
|
+
id="pd10101"
|
|
91
|
+
role="error"
|
|
92
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
93
|
+
test="
|
|
94
|
+
$class='macromolecule' or
|
|
95
|
+
$class='macromolecule multimer' or
|
|
96
|
+
$class='simple chemical' or
|
|
97
|
+
$class='unspecified entity' or
|
|
98
|
+
$class='complex multimer' or
|
|
99
|
+
$class='complex' or
|
|
100
|
+
$class='nucleic acid feature' or
|
|
101
|
+
$class='simple chemical multimer' or
|
|
102
|
+
$class='nucleic acid feature multimer' or
|
|
103
|
+
$class='source and sink'"
|
|
104
|
+
diagnostics="id source class">Arc with class consumption must have source reference to glyph of EPN classes
|
|
105
|
+
</iso:assert>
|
|
106
|
+
</iso:rule>
|
|
107
|
+
</iso:pattern>
|
|
108
|
+
<iso:pattern id="pd10102">
|
|
109
|
+
<iso:rule context="sbgn:arc[@class='consumption']">
|
|
110
|
+
<iso:let name="id" value="@id"/>
|
|
111
|
+
<iso:let name="target" value="@target"/>
|
|
112
|
+
<iso:let name="port-class" value="//sbgn:port[@id=$target]/../@class"/>
|
|
113
|
+
<iso:assert
|
|
114
|
+
name="check-consumption-target-class"
|
|
115
|
+
id="pd10102"
|
|
116
|
+
role="error"
|
|
117
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
118
|
+
test="
|
|
119
|
+
$port-class='process' or
|
|
120
|
+
$port-class='omitted process' or
|
|
121
|
+
$port-class='uncertain process' or
|
|
122
|
+
$port-class='association' or
|
|
123
|
+
$port-class='dissociation' or
|
|
124
|
+
$port-class='phenotype'"
|
|
125
|
+
diagnostics="id target port-class">Arc with class consumption must have target reference to port on glyph with PN classes
|
|
126
|
+
</iso:assert>
|
|
127
|
+
</iso:rule>
|
|
128
|
+
</iso:pattern>
|
|
129
|
+
<iso:pattern id="pd10103">
|
|
130
|
+
<!-- Number Limited Rules -->
|
|
131
|
+
<iso:rule context="sbgn:glyph[@class='source and sink']">
|
|
132
|
+
<iso:let name="id" value="@id"/>
|
|
133
|
+
<iso:let name="count" value="count(//sbgn:arc[(./@class = 'consumption') and (./@source = $id)])"/>
|
|
134
|
+
<iso:assert
|
|
135
|
+
id="pd10103"
|
|
136
|
+
name="check-consumption-source_and_sink-source-count-equals-1"
|
|
137
|
+
role="error"
|
|
138
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
139
|
+
test="$count <= 1"
|
|
140
|
+
diagnostics="id count">The 'source and sink' glyph can be connected to at most one consumption glyph.
|
|
141
|
+
</iso:assert>
|
|
142
|
+
</iso:rule>
|
|
143
|
+
</iso:pattern>
|
|
144
|
+
<iso:pattern id="pd10104">
|
|
145
|
+
<iso:rule context="sbgn:glyph[@class='dissociation']">
|
|
146
|
+
<iso:let name="id" value="@id"/>
|
|
147
|
+
<iso:let name="port-id" value="./sbgn:port/@id"/>
|
|
148
|
+
<iso:let name="count" value="count(//sbgn:arc[(./@class = 'consumption') and (./@target = current()/sbgn:port/@id)])"/>
|
|
149
|
+
<iso:assert
|
|
150
|
+
id="pd10104"
|
|
151
|
+
name="check-consumption-dissociation-target-count-equals-1"
|
|
152
|
+
role="error"
|
|
153
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
154
|
+
test="$count = 1"
|
|
155
|
+
diagnostics="id port-id count">The 'dissociation' glyph can only be connected to one consumption glyph.
|
|
156
|
+
</iso:assert>
|
|
157
|
+
</iso:rule>
|
|
158
|
+
</iso:pattern>
|
|
159
|
+
|
|
160
|
+
<iso:pattern id="pd10105">
|
|
161
|
+
<iso:rule context="sbgn:arc[@class='production']">
|
|
162
|
+
<iso:let name="id" value="@id"/>
|
|
163
|
+
<iso:let name="source" value="@source"/>
|
|
164
|
+
<iso:let name="port-class" value="//sbgn:port[@id=$source]/../@class"/>
|
|
165
|
+
<iso:assert
|
|
166
|
+
id="pd10105"
|
|
167
|
+
name="check-production-source-class"
|
|
168
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
169
|
+
role="error"
|
|
170
|
+
test="
|
|
171
|
+
$port-class='process' or
|
|
172
|
+
$port-class='omitted process' or
|
|
173
|
+
$port-class='uncertain process' or
|
|
174
|
+
$port-class='association' or
|
|
175
|
+
$port-class='dissociation' or
|
|
176
|
+
$port-class='phenotype'"
|
|
177
|
+
diagnostics="id source port-class">Arc with class production must have source reference to port on glyph with PN classes and target reference to glyph of EPN classes
|
|
178
|
+
</iso:assert>
|
|
179
|
+
</iso:rule>
|
|
180
|
+
</iso:pattern>
|
|
181
|
+
<iso:pattern id="pd10106">
|
|
182
|
+
<iso:rule context="sbgn:arc[@class='production']">
|
|
183
|
+
<iso:let name="id" value="@id"/>
|
|
184
|
+
<iso:let name="target" value="@target"/>
|
|
185
|
+
<iso:let name="class" value="//sbgn:glyph[@id=$target]/@class"/>
|
|
186
|
+
<iso:assert
|
|
187
|
+
id="pd10106"
|
|
188
|
+
name="check-production-target-class"
|
|
189
|
+
role="error"
|
|
190
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
191
|
+
test="
|
|
192
|
+
$class='macromolecule' or
|
|
193
|
+
$class='macromolecule multimer' or
|
|
194
|
+
$class='simple chemical' or
|
|
195
|
+
$class='unspecified entity' or
|
|
196
|
+
$class='complex multimer' or
|
|
197
|
+
$class='complex' or
|
|
198
|
+
$class='nucleic acid feature' or
|
|
199
|
+
$class='simple chemical multimer' or
|
|
200
|
+
$class='nucleic acid feature multimer' or
|
|
201
|
+
$class='source and sink'"
|
|
202
|
+
diagnostics="id target class">Arc with class production must have target reference to glyph of EPN classes
|
|
203
|
+
</iso:assert>
|
|
204
|
+
</iso:rule>
|
|
205
|
+
</iso:pattern>
|
|
206
|
+
<iso:pattern id="pd10107">
|
|
207
|
+
<!-- Limited Number Rules -->
|
|
208
|
+
<!-- TODO: Currently, assumes that sources originate from the same port -->
|
|
209
|
+
<iso:rule context="sbgn:glyph[@class='source and sink']">
|
|
210
|
+
<iso:let name="id" value="@id"/>
|
|
211
|
+
<iso:let name="count" value="count(//sbgn:arc[(./@class = 'production') and (./@target = $id)])"/>
|
|
212
|
+
<iso:assert
|
|
213
|
+
id="pd10107"
|
|
214
|
+
name="check-production-source_and_sink-target-count-equals-1"
|
|
215
|
+
role="error"
|
|
216
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
217
|
+
test="$count <= 1"
|
|
218
|
+
diagnostics="id count">The 'source and sink' glyph can be connected to at most one production glyph.
|
|
219
|
+
</iso:assert>
|
|
220
|
+
</iso:rule>
|
|
221
|
+
</iso:pattern>
|
|
222
|
+
<iso:pattern id="pd10108">
|
|
223
|
+
<iso:rule context="sbgn:glyph[@class='association']">
|
|
224
|
+
<iso:let name="id" value="@id"/>
|
|
225
|
+
<iso:let name="port-id" value="./sbgn:port/@id"/>
|
|
226
|
+
<iso:let name="count" value="count(//sbgn:arc[(./@class = 'production') and (./@source = current()/sbgn:port/@id)])"/>
|
|
227
|
+
<iso:assert
|
|
228
|
+
id="pd10108"
|
|
229
|
+
name="check-production-association-source-count-equals-1"
|
|
230
|
+
role="error"
|
|
231
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
232
|
+
test="$count = 1"
|
|
233
|
+
diagnostics="id port-id count">The association glyph can only be connected to one production glyph.
|
|
234
|
+
</iso:assert>
|
|
235
|
+
</iso:rule>
|
|
236
|
+
</iso:pattern>
|
|
237
|
+
|
|
238
|
+
<iso:pattern id="pd10109">
|
|
239
|
+
<iso:rule context="sbgn:arc[(@class='modulation') or (@class='stimulation') or
|
|
240
|
+
(@class='catalysis') or (@class='inhibition') or (@class='necessary stimulation')]">
|
|
241
|
+
<iso:let name="id" value="@id"/>
|
|
242
|
+
<iso:let name="source" value="@source"/>
|
|
243
|
+
<iso:let name="class" value="//sbgn:glyph[@id=$source]/@class"/>
|
|
244
|
+
<iso:let name="port-class" value="//sbgn:port[@id=$source]/../@class"/>
|
|
245
|
+
<iso:assert
|
|
246
|
+
id="pd10109"
|
|
247
|
+
name="check-modulation-source-class"
|
|
248
|
+
role="error"
|
|
249
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
250
|
+
test="(
|
|
251
|
+
$class='unspecified entity' or
|
|
252
|
+
$class='simple chemical' or
|
|
253
|
+
$class='macromolecule' or
|
|
254
|
+
$class='macromolecule multimer' or
|
|
255
|
+
$class='nucleic acid feature' or
|
|
256
|
+
$class='simple chemical multimer' or
|
|
257
|
+
$class='nucleic acid feature multimer' or
|
|
258
|
+
$class='complex' or
|
|
259
|
+
$class='complex multimer' or
|
|
260
|
+
$class='perturbing agent') or (
|
|
261
|
+
$port-class='and' or
|
|
262
|
+
$port-class='or' or
|
|
263
|
+
$port-class='not')"
|
|
264
|
+
diagnostics="id source port-class class">Modulation arc must have source reference to glyph of EPN classes or a logical operator
|
|
265
|
+
</iso:assert>
|
|
266
|
+
</iso:rule>
|
|
267
|
+
</iso:pattern>
|
|
268
|
+
<iso:pattern id="pd10110">
|
|
269
|
+
<iso:rule context="sbgn:arc[(@class='modulation') or (@class='stimulation') or
|
|
270
|
+
(@class='catalysis') or (@class='inhibition') or (@class='necessary stimulation')]">
|
|
271
|
+
<iso:let name="id" value="@id"/>
|
|
272
|
+
<iso:let name="target" value="@target"/>
|
|
273
|
+
<iso:let name="target-class" value="//sbgn:glyph[@id=$target]/@class"/>
|
|
274
|
+
<iso:assert
|
|
275
|
+
id="pd10110"
|
|
276
|
+
name="check-modulation-target-class"
|
|
277
|
+
role="error"
|
|
278
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
279
|
+
test="
|
|
280
|
+
$target-class='process' or
|
|
281
|
+
$target-class='omitted process' or
|
|
282
|
+
$target-class='uncertain process' or
|
|
283
|
+
$target-class='association' or
|
|
284
|
+
$target-class='dissociation' or
|
|
285
|
+
$target-class='phenotype'"
|
|
286
|
+
diagnostics="id target target-class">Modulation arc must have target reference to PN classes
|
|
287
|
+
</iso:assert><!-- added association / dissociation as allowed targets: possible mistake in spec -->
|
|
288
|
+
</iso:rule>
|
|
289
|
+
</iso:pattern>
|
|
290
|
+
<iso:pattern id="pd10111">
|
|
291
|
+
<!-- Limited Number Rules -->
|
|
292
|
+
<iso:rule context="sbgn:glyph[(@class='and') or (@class='or') or (@class='not')]">
|
|
293
|
+
<iso:let name="id" value="@id"/>
|
|
294
|
+
<iso:let name="port-id" value="./sbgn:port/@id"/>
|
|
295
|
+
<iso:let name="count" value="count(//sbgn:arc[./@source = current()/sbgn:port/@id])"/>
|
|
296
|
+
<iso:assert
|
|
297
|
+
id="pd10111"
|
|
298
|
+
name="check-and_or_not-source-count-equals-1"
|
|
299
|
+
role="error"
|
|
300
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
301
|
+
test="$count = 1"
|
|
302
|
+
diagnostics="id port-id count">'and', 'or', and 'not' glyphs must be the source for exactly one arc.
|
|
303
|
+
</iso:assert>
|
|
304
|
+
</iso:rule>
|
|
305
|
+
</iso:pattern>
|
|
306
|
+
|
|
307
|
+
<iso:pattern id="pd10112">
|
|
308
|
+
<iso:rule context="sbgn:map/sbgn:glyph[(@class = 'unspecified entity' or
|
|
309
|
+
@class = 'simple chemical' or
|
|
310
|
+
@class = 'macromolecule' or
|
|
311
|
+
@class = 'nucleic acid feature' or
|
|
312
|
+
@class = 'simple chemical multimer' or
|
|
313
|
+
@class = 'macromolecule multimer' or
|
|
314
|
+
@class = 'nucleic acid feature multimer' or
|
|
315
|
+
@class = 'complex' or
|
|
316
|
+
@class = 'complex multimer' or
|
|
317
|
+
@class = 'source and sink' or
|
|
318
|
+
@class = 'perturbing agent')]">
|
|
319
|
+
<iso:let name="id" value="@id"/>
|
|
320
|
+
<iso:let name="compartment-count" value="count(//sbgn:glyph[@class='compartment'])"/>
|
|
321
|
+
<iso:assert
|
|
322
|
+
id="pd10112"
|
|
323
|
+
name="check-compartment-ref"
|
|
324
|
+
role="error"
|
|
325
|
+
test="
|
|
326
|
+
(($compartment-count = 0) and not (@compartmentRef)) or (($compartment-count > 0) and @compartmentRef)"
|
|
327
|
+
diagnostics="id">If there are compartments defined, top-level glyphs must have a compartmentRef."
|
|
328
|
+
</iso:assert>
|
|
329
|
+
</iso:rule>
|
|
330
|
+
</iso:pattern>
|
|
331
|
+
|
|
332
|
+
<iso:pattern id="pd10124">
|
|
333
|
+
<iso:rule context="sbgn:arc[@class='logic arc']">
|
|
334
|
+
<iso:let name="id" value="@id"/>
|
|
335
|
+
<iso:let name="source" value="@source"/>
|
|
336
|
+
<iso:let name="class" value="//sbgn:glyph[@id=$source]/@class"/>
|
|
337
|
+
<iso:let name="port-class" value="//sbgn:port[@id=$source]/../@class"/>
|
|
338
|
+
<iso:assert
|
|
339
|
+
id="pd10124"
|
|
340
|
+
name="check-logic-arc-source-class"
|
|
341
|
+
role="error"
|
|
342
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
343
|
+
test="
|
|
344
|
+
$class='unspecified entity' or
|
|
345
|
+
$class='simple chemical' or
|
|
346
|
+
$class='macromolecule' or
|
|
347
|
+
$class='macromolecule multimer' or
|
|
348
|
+
$class='nucleic acid feature' or
|
|
349
|
+
$class='simple chemical multimer' or
|
|
350
|
+
$class='nucleic acid feature multimer' or
|
|
351
|
+
$class='complex' or
|
|
352
|
+
$class='complex multimer' or
|
|
353
|
+
$port-class='and' or
|
|
354
|
+
$port-class='or' or
|
|
355
|
+
$port-class='not'"
|
|
356
|
+
diagnostics="id source class">Arc with class logic arc must have source reference to glyph of EPN classes, or logic gates
|
|
357
|
+
</iso:assert>
|
|
358
|
+
</iso:rule>
|
|
359
|
+
</iso:pattern>
|
|
360
|
+
<iso:pattern id="pd10125">
|
|
361
|
+
<iso:rule context="sbgn:arc[@class='logic arc']">
|
|
362
|
+
<iso:let name="id" value="@id"/>
|
|
363
|
+
<iso:let name="target" value="@target"/>
|
|
364
|
+
<iso:let name="port-class" value="//sbgn:port[@id=$target]/../@class"/>
|
|
365
|
+
<iso:assert
|
|
366
|
+
id="pd10125"
|
|
367
|
+
name="check-logic-arc-target-class"
|
|
368
|
+
role="error"
|
|
369
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
370
|
+
test="$port-class='and' or
|
|
371
|
+
$port-class='or' or
|
|
372
|
+
$port-class='not'"
|
|
373
|
+
diagnostics="id target port-class">Arc with class logic arc must have target reference to a logical operator
|
|
374
|
+
</iso:assert>
|
|
375
|
+
</iso:rule>
|
|
376
|
+
</iso:pattern>
|
|
377
|
+
<iso:pattern id="pd10126">
|
|
378
|
+
<!-- Limited Number Rules -->
|
|
379
|
+
<iso:rule context="sbgn:glyph[@class='not']">
|
|
380
|
+
<iso:let name="id" value="@id"/>
|
|
381
|
+
<iso:let name="port-id" value="./sbgn:port/@id"/>
|
|
382
|
+
<iso:let name="count" value="count(//sbgn:arc[(./@class = 'logic arc') and (./@target = current()/sbgn:port/@id)])"/>
|
|
383
|
+
<iso:assert
|
|
384
|
+
id="pd10126"
|
|
385
|
+
name="check-logic_arc-not-target-count-equals-1"
|
|
386
|
+
role="error"
|
|
387
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
388
|
+
test="$count = 1"
|
|
389
|
+
diagnostics="id port-id count">The 'not' glyph can only be the target of one logic arc glyph.
|
|
390
|
+
</iso:assert>
|
|
391
|
+
</iso:rule>
|
|
392
|
+
</iso:pattern>
|
|
393
|
+
|
|
394
|
+
<iso:pattern id="pd10127">
|
|
395
|
+
<iso:rule context="sbgn:arc[@class='equivalence arc']">
|
|
396
|
+
<iso:let name="id" value="@id"/>
|
|
397
|
+
<iso:let name="source" value="@source"/>
|
|
398
|
+
<iso:let name="class" value="//sbgn:glyph[@id=$source]/@class"/>
|
|
399
|
+
<iso:assert
|
|
400
|
+
id="pd10127"
|
|
401
|
+
name="check-equivalence-arc-source-class"
|
|
402
|
+
role="error"
|
|
403
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
404
|
+
test="
|
|
405
|
+
$class='unspecified entity' or
|
|
406
|
+
$class='simple chemical' or
|
|
407
|
+
$class='macromolecule' or
|
|
408
|
+
$class='macromolecule multimer' or
|
|
409
|
+
$class='nucleic acid feature' or
|
|
410
|
+
$class='simple chemical multimer' or
|
|
411
|
+
$class='nucleic acid feature multimer' or
|
|
412
|
+
$class='complex' or
|
|
413
|
+
$class='complex multimer' or
|
|
414
|
+
$class='source and sink' or
|
|
415
|
+
$class='perturbing agent'"
|
|
416
|
+
diagnostics="id source class">Arc with class equivalence arc must have source reference to glyph of EPN classes
|
|
417
|
+
</iso:assert>
|
|
418
|
+
</iso:rule>
|
|
419
|
+
</iso:pattern>
|
|
420
|
+
<iso:pattern id="pd10128">
|
|
421
|
+
<iso:rule context="sbgn:arc[@class='equivalence arc']">
|
|
422
|
+
<iso:let name="id" value="@id"/>
|
|
423
|
+
<iso:let name="target" value="@target"/>
|
|
424
|
+
<iso:let name="class" value="//sbgn:glyph[@id=$target]/@class"/>
|
|
425
|
+
<iso:assert
|
|
426
|
+
id="pd10128"
|
|
427
|
+
name="check-equivalence-arc-target-class"
|
|
428
|
+
role="error"
|
|
429
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
430
|
+
test="
|
|
431
|
+
$class='tag' or
|
|
432
|
+
$class='submap' or
|
|
433
|
+
$class='terminal'"
|
|
434
|
+
diagnostics="id target class">Arc with class equivalence arc must have target reference to glyph of classes 'tag', 'submap' or 'terminal'
|
|
435
|
+
</iso:assert>
|
|
436
|
+
</iso:rule>
|
|
437
|
+
</iso:pattern>
|
|
438
|
+
|
|
439
|
+
<iso:pattern id="pd10129">
|
|
440
|
+
<iso:rule context="sbgn:glyph[@class='and']/sbgn:port/sbgn:state">
|
|
441
|
+
<iso:let name="id" value="@id"/>
|
|
442
|
+
<iso:assert
|
|
443
|
+
id="pd10129"
|
|
444
|
+
name="state-var-unique"
|
|
445
|
+
see="sbgn-pd-L1V1.3-3.5.1-1"
|
|
446
|
+
role="error"
|
|
447
|
+
test="count(../../sbgn:port/sbgn:state[@variable = current()/@variable]) <= 2"
|
|
448
|
+
diagnostics="id">All state variables associated with a Stateful Entity Pool Node should be unique and note duplicated within that node.
|
|
449
|
+
</iso:assert>
|
|
450
|
+
</iso:rule>
|
|
451
|
+
</iso:pattern>
|
|
452
|
+
|
|
453
|
+
<iso:pattern id="pd10130">
|
|
454
|
+
<iso:rule context="sbgn:arc[@source = //sbgn:glyph[@class='complex']/sbgn:glyph/@id]">
|
|
455
|
+
<iso:let name="id" value="//sbgn:glyph[@class='complex']/sbgn:glyph[not(@class='complex')]/@id"/>
|
|
456
|
+
<iso:let name="class" value="@class"/>
|
|
457
|
+
<iso:assert
|
|
458
|
+
id="pd10130"
|
|
459
|
+
name="subunit-mod-arc-source"
|
|
460
|
+
role="error"
|
|
461
|
+
test="@class = 'modulation'"
|
|
462
|
+
diagnostics="id class">[NOT SURE]
|
|
463
|
+
</iso:assert>
|
|
464
|
+
</iso:rule>
|
|
465
|
+
</iso:pattern>
|
|
466
|
+
|
|
467
|
+
<iso:pattern id="pd10131">
|
|
468
|
+
<iso:rule context="/sbgn:sbgn/sbgn:map/sbgn:glyph[
|
|
469
|
+
@class = 'unspecified entity' or
|
|
470
|
+
@class = 'simple chemical' or
|
|
471
|
+
@class = 'macromolecule' or
|
|
472
|
+
@class = 'nucleic acid feature' or
|
|
473
|
+
@class = 'simple chemical multimer' or
|
|
474
|
+
@class = 'macromolecule multimer' or
|
|
475
|
+
@class = 'nucleic acid feature multimer' or
|
|
476
|
+
@class = 'complex' or
|
|
477
|
+
@class = 'complex multimer' or
|
|
478
|
+
@class = 'source and sink' or
|
|
479
|
+
@class = 'perturbing agent']
|
|
480
|
+
">
|
|
481
|
+
<iso:let name="id" value="@id"/>
|
|
482
|
+
<iso:let name="class" value="//sbgn:arc[@source = $id or @target = $id]/@class"/>
|
|
483
|
+
<iso:assert
|
|
484
|
+
id="pd10131"
|
|
485
|
+
name="epns-must-connect"
|
|
486
|
+
see="sbgn-pd-L1V1.3-3.5.1-3"
|
|
487
|
+
role="error"
|
|
488
|
+
test="//sbgn:arc[(
|
|
489
|
+
@class = 'production' or
|
|
490
|
+
@class = 'consumption' or
|
|
491
|
+
@class = 'modulation' or
|
|
492
|
+
@class = 'stimulation' or
|
|
493
|
+
@class = 'catalysis' or
|
|
494
|
+
@class = 'inhibition' or
|
|
495
|
+
@class = 'necessary stimulation' or
|
|
496
|
+
@class = 'logic arc' or
|
|
497
|
+
@class = 'equivalence arc' or
|
|
498
|
+
@class = 'production') and (@source = $id or @target = $id)]"
|
|
499
|
+
diagnostics="id class">EPNs should not be orphaned (i.e. they must be associated with at least one arc.)
|
|
500
|
+
</iso:assert>
|
|
501
|
+
</iso:rule>
|
|
502
|
+
</iso:pattern>
|
|
503
|
+
|
|
504
|
+
<iso:pattern id="pd10132">
|
|
505
|
+
<iso:rule context="sbgn:glyph[
|
|
506
|
+
@class='process' or
|
|
507
|
+
@class='omitted process' or
|
|
508
|
+
@class='uncertain process' or
|
|
509
|
+
@class='association' or
|
|
510
|
+
@class='dissociation'
|
|
511
|
+
]">
|
|
512
|
+
<iso:let name="id" value="@id"/>
|
|
513
|
+
<iso:let name="port-count" value="count(sbgn:port)"/>
|
|
514
|
+
<iso:assert
|
|
515
|
+
id="pd10132"
|
|
516
|
+
name="pns-port-count-eq-2"
|
|
517
|
+
see="sbgn-pd-L1V1.3-3.5.2.1-1"
|
|
518
|
+
role="error"
|
|
519
|
+
test="$port-count = 2"
|
|
520
|
+
diagnostics="id">All process nodes (with the exception of phenotype) must have a LHS and RHS.
|
|
521
|
+
</iso:assert>
|
|
522
|
+
</iso:rule>
|
|
523
|
+
</iso:pattern>
|
|
524
|
+
|
|
525
|
+
<iso:pattern id="pd10133">
|
|
526
|
+
<iso:rule context="sbgn:glyph[
|
|
527
|
+
@class='process' or
|
|
528
|
+
@class='omitted process' or
|
|
529
|
+
@class='uncertain process' or
|
|
530
|
+
@class='association' or
|
|
531
|
+
@class='dissociation'
|
|
532
|
+
]">
|
|
533
|
+
<iso:let name="id" value="@id"/>
|
|
534
|
+
<iso:let name="port-id-1" value="./sbgn:port[position() = 1]/@id"/>
|
|
535
|
+
<iso:let name="port-id-2" value="./sbgn:port[position() = 2]/@id"/>
|
|
536
|
+
<iso:let name="arc-count-1" value="count(//sbgn:arc[@source = $port-id-1])"/>
|
|
537
|
+
<iso:let name="arc-count-distinct-1" value="count(distinct-values(//sbgn:arc[@source = $port-id-1]/@target))"/>
|
|
538
|
+
<iso:let name="arc-count-2" value="count(//sbgn:arc[@source = $port-id-2])"/>
|
|
539
|
+
<iso:let name="arc-count-distinct-2" value="count(distinct-values(//sbgn:arc[@source = $port-id-2]/@target))"/>
|
|
540
|
+
<iso:assert
|
|
541
|
+
id="pd10133"
|
|
542
|
+
name="pns-arc-count-eq-2"
|
|
543
|
+
see="sbgn-pd-L1V1.3-3.5.2.1-2,3"
|
|
544
|
+
role="error"
|
|
545
|
+
test="($arc-count-2 = $arc-count-distinct-2) and ($arc-count-1 = $arc-count-distinct-1)"
|
|
546
|
+
diagnostics="id">All EPNs on the LHS of a process must be unique.
|
|
547
|
+
</iso:assert>
|
|
548
|
+
</iso:rule>
|
|
549
|
+
</iso:pattern>
|
|
550
|
+
|
|
551
|
+
<iso:pattern id="pd10134">
|
|
552
|
+
<iso:rule context="/*">
|
|
553
|
+
<iso:assert
|
|
554
|
+
id="pd10134"
|
|
555
|
+
name="multiple-stoichiometries"
|
|
556
|
+
see="sbgn-pd-L1V1.3-3.5.2.1-8"
|
|
557
|
+
role="untestable"
|
|
558
|
+
test="true()">If more than one set of stoichiometries can be applied to the flux arcs of the process then the stoichiometry of the flux arcs must be displayed.</iso:assert>
|
|
559
|
+
<iso:assert
|
|
560
|
+
id="pd10135"
|
|
561
|
+
name="undefined-unknown-stochiometry"
|
|
562
|
+
see="sbgn-pd-L1V1.3-3.5.2.1-7"
|
|
563
|
+
role="unimplemented"
|
|
564
|
+
test="true()">If the stoichiometry is undefined or unknown this should be indicated by the use of a question mark ("?").</iso:assert>
|
|
565
|
+
</iso:rule>
|
|
566
|
+
</iso:pattern>
|
|
567
|
+
|
|
568
|
+
<iso:pattern id="pd10140">
|
|
569
|
+
<iso:rule context="sbgn:glyph">
|
|
570
|
+
<iso:let name="id" value="@id"/>
|
|
571
|
+
<iso:let name="class" value="@class"/>
|
|
572
|
+
<iso:assert
|
|
573
|
+
id="pd10140"
|
|
574
|
+
name="check-glyph-class"
|
|
575
|
+
role="error"
|
|
576
|
+
see="sbgn-pd-L1V1.3-3.5.2.1-2,3"
|
|
577
|
+
test="not($class='biological activity' or
|
|
578
|
+
$class='outcome' or
|
|
579
|
+
$class='variable value' or
|
|
580
|
+
$class='entity')"
|
|
581
|
+
diagnostics="id class">This 'glyph class' is not allowed in Process Description
|
|
582
|
+
</iso:assert>
|
|
583
|
+
</iso:rule>
|
|
584
|
+
</iso:pattern>
|
|
585
|
+
|
|
586
|
+
<iso:pattern id="pd10141">
|
|
587
|
+
<iso:rule context="sbgn:glyph[@class='process']">
|
|
588
|
+
<iso:let name="id" value="@id"/>
|
|
589
|
+
<iso:let name="port-id" value="./sbgn:port/@id"/>
|
|
590
|
+
<iso:let name="count" value="count(//sbgn:arc[(./@target = current()/sbgn:port/@id) or (./@source = current()/sbgn:port/@id)])"/>
|
|
591
|
+
|
|
592
|
+
<iso:assert
|
|
593
|
+
id="pd10141"
|
|
594
|
+
name="pns-port-count-eq-2"
|
|
595
|
+
see="sbgn-pd-L1V1.3-3.5.2.1-1"
|
|
596
|
+
role="error"
|
|
597
|
+
test="($count >= 2)"
|
|
598
|
+
diagnostics="id count">All process nodes should have at least one input and at least one ouput pointing to the arcs
|
|
599
|
+
</iso:assert>
|
|
600
|
+
</iso:rule>
|
|
601
|
+
</iso:pattern>
|
|
602
|
+
|
|
603
|
+
<iso:pattern id="pd10142">
|
|
604
|
+
<iso:rule context="sbgn:arc[@class='logic arc']">
|
|
605
|
+
<iso:let name="id" value="@id"/>
|
|
606
|
+
<iso:let name="source" value="@source"/>
|
|
607
|
+
<iso:let name="target" value="@target"/>
|
|
608
|
+
<iso:let name="port-class" value="//sbgn:port[@id=$source or @id=$target]/../@class"/>
|
|
609
|
+
<iso:assert
|
|
610
|
+
name="check-logic-arc--class"
|
|
611
|
+
id="pd10142"
|
|
612
|
+
role="error"
|
|
613
|
+
see="sbgn-pd-L1V1.3-3.4.1"
|
|
614
|
+
test="
|
|
615
|
+
$port-class='and' or
|
|
616
|
+
$port-class='or' or
|
|
617
|
+
$port-class='not'"
|
|
618
|
+
diagnostics="id source port-class target">logic Arc must be connected to either 'OR', 'AND' or 'NOT'
|
|
619
|
+
</iso:assert>
|
|
620
|
+
</iso:rule>
|
|
621
|
+
</iso:pattern>
|
|
622
|
+
|
|
623
|
+
<iso:diagnostics>
|
|
624
|
+
<iso:diagnostic id="id"><iso:value-of select="$id"/></iso:diagnostic>
|
|
625
|
+
<iso:diagnostic id="port-id"><iso:value-of select="$port-id"/></iso:diagnostic>
|
|
626
|
+
<iso:diagnostic id="target"><iso:value-of select="$target"/></iso:diagnostic>
|
|
627
|
+
<iso:diagnostic id="target-class"><iso:value-of select="$target-class"/></iso:diagnostic>
|
|
628
|
+
<iso:diagnostic id="source"><iso:value-of select="$source"/></iso:diagnostic>
|
|
629
|
+
<iso:diagnostic id="class"><iso:value-of select="$class"/></iso:diagnostic>
|
|
630
|
+
<iso:diagnostic id="port-class"><iso:value-of select="$port-class"/></iso:diagnostic>
|
|
631
|
+
<iso:diagnostic id="count"><iso:value-of select="$count"/></iso:diagnostic>
|
|
632
|
+
<iso:diagnostic id="arc-count"><iso:value-of select="$arc-count"/></iso:diagnostic>
|
|
633
|
+
</iso:diagnostics>
|
|
634
|
+
</iso:schema>
|