forked from PathVisio/GPML
/
GPML2017.xsd
1004 lines (868 loc) · 33 KB
/
GPML2017.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema targetNamespace="http://pathvisio.org/GPML/2017" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gpml="http://pathvisio.org/GPML/2017" elementFormDefault="qualified">
<!-- Graphical Pathway Markup Language version 2017 -->
<!--
Type Definitions
This block declares all the properties which would then be attached
to elements in the GPML hierarchy, most of them are intuitive
like FontAttributes, RotationType, ColorType
-->
<xsd:attributeGroup name="FontAttributes">
<xsd:attribute name="fontName" default="Arial" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
The name of the set of printable text characters to be used for visualization.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="fontStyle" default="Normal">
<xsd:annotation>
<xsd:documentation>
The typographic style or font face applied to displayed text, e.g., Arial.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Normal"/>
<xsd:enumeration value="Italic"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="fontWeight" default="Normal">
<xsd:annotation>
<xsd:documentation>
Thickness of the font used, e.g a bold font would
have more weight. Used for DataNodes, Labels and Shapes.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Normal"/>
<xsd:enumeration value="Bold"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="fontSize" type="xsd:nonNegativeInteger" default="12">
<xsd:annotation>
<xsd:documentation>
The point value for the size of the font.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="align" default="Center">
<xsd:annotation>
<xsd:documentation>
Horizontal alignment of displayed text, e.g., Left, Center, Right.
</xsd:documentation>
</xsd:annotation>
<!-- Horizontal alignment -->
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Left"/>
<xsd:enumeration value="Center"/>
<xsd:enumeration value="Right"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="vAlign" default="Top">
<!-- Vertical alignment -->
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Top"/>
<xsd:enumeration value="Middle"/>
<xsd:enumeration value="Bottom"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="CenterAttributes">
<xsd:attribute name="centerX" type="xsd:float" use="required">
<xsd:annotation>
<xsd:documentation>
Middle of a pathway element in the x-direction.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="centerY" type="xsd:float" use="required">
<xsd:annotation>
<xsd:documentation>
Middle of a pathway element in the y-direction.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="DimensionAttributes">
<xsd:attribute name="width" type="gpml:Dimension" use="required" >
<xsd:annotation>
<xsd:documentation>
The pixel value for the x-dimensional length of a given object.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="height" type="gpml:Dimension" use="required" >
<xsd:annotation>
<xsd:documentation>
The pixel value for the y-dimensional length of a given object.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="RectAttributes">
<xsd:attributeGroup ref="gpml:CenterAttributes" />
<xsd:attributeGroup ref="gpml:DimensionAttributes" />
</xsd:attributeGroup>
<xsd:attributeGroup name="LineAttributes">
<xsd:attribute name="lineStyle" type="gpml:StyleType" default="Solid" >
<xsd:annotation>
<xsd:documentation>
The visual appearance of a line or border, e.g., Solid or Broken.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="lineThickness" type="xsd:float" default="1.0" >
<xsd:annotation>
<xsd:documentation>
The pixel value for the width of a given line, interaction or border.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="LineGraphicAttributes">
<xsd:attributeGroup ref="gpml:LineAttributes" />
<xsd:attribute name="color" type="gpml:ColorType" default="Black">
<xsd:annotation>
<xsd:documentation>
The color to be used for visualization.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="connectorType" type="xsd:string" use="optional" default="Straight">
<xsd:annotation>
<xsd:documentation>
Specifies a set of rules to govern layout of Graphical Lines and Interactions.
PathVisio (Java): Line Type and GPML: ConnectorType
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="zOrder" type="xsd:integer" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="ShapeStyleAttributes">
<xsd:attribute name="color" type="gpml:ColorType" default="Black">
<xsd:annotation>
<xsd:documentation>
The color to be used for visualization.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="gpml:LineAttributes" />
<xsd:attribute name="fillColor" type="gpml:ColorType" default="Transparent">
<xsd:annotation>
<xsd:documentation>
The hexidecimal color value used to paint the area of an object, not including its border.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="shapeType" type="xsd:string" default="None"/>
<xsd:attribute name="zOrder" type="xsd:integer" use="optional"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="IdentifierGroup">
<xsd:attribute name="elementID" type="xsd:ID" use="required">
<xsd:annotation>
<xsd:documentation>
A elementID is a unique identifier for a pathway element within the pathway,
such as DataNode, Interaction, GraphicalLine, Label, Point, Group, Shape, State and Anchor.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="IdentifierRefGroup">
<xsd:attributeGroup ref="gpml:IdentifierGroup" />
<xsd:attribute name="groupRef" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
A GroupRef indicates that its element is part of the gpml:Group
with the specified GroupId. DataNode, GraphicalLine, Group, Interaction,
Label and Shape can be part of a group.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="textLabel" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
TextLabel of an object (DataNode, Group, Label, Shape, State).
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="RelativeCoordinates">
<!-- relX and relY are the coordinates used when
a point is linked to another object (when elementRef
is defined). They represent he coordinates of the
point relative to the object that it's linked to, where
0,0 lies at the center of the object and 1,1 at the bottom-right
corner -->
<xsd:attribute name="relX" type="xsd:float" use="required">
<xsd:annotation>
<xsd:documentation>
RelX is the x-coordinate used when a point or state is linked to
an another object - relative coordinate to the object that
it is linked to (0,0 - center, 1,1 - bottom-right).
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="relY" type="xsd:float" use="required">
<xsd:annotation>
<xsd:documentation>
RelY is the y-coordinate used when a point or state is linked to
an another object - relative coordinate to the object that
it is linked to (0,0 - center, 1,1 - bottom-right).
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:attributeGroup>
<xsd:attributeGroup name="RelativeCoordinatesOptional">
<xsd:attribute name="relX" type="xsd:float" use="optional" />
<xsd:attribute name="relY" type="xsd:float" use="optional" />
</xsd:attributeGroup>
<!-- a rotation is either a float value or a string for each of the four right angles !-->
<xsd:simpleType name="RotationType">
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Top"/> <!-- rotation of 0.0 !-->
<xsd:enumeration value="Right"/> <!-- rotation of 1/2 pi !-->
<xsd:enumeration value="Bottom"/> <!-- rotation of 1 pi !-->
<xsd:enumeration value="Left"/> <!-- rotation of 3/2 pi !-->
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:float"/> <!-- rotation is always measured in radians !-->
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:simpleType name="ColorType">
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:hexBinary"/>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Aqua"/>
<xsd:enumeration value="Black"/>
<xsd:enumeration value="Blue"/>
<xsd:enumeration value="Fuchsia"/>
<xsd:enumeration value="Gray"/>
<xsd:enumeration value="Green"/>
<xsd:enumeration value="Lime"/>
<xsd:enumeration value="Maroon"/>
<xsd:enumeration value="Navy"/>
<xsd:enumeration value="Olive"/>
<xsd:enumeration value="Purple"/>
<xsd:enumeration value="Red"/>
<xsd:enumeration value="Silver"/>
<xsd:enumeration value="Teal"/>
<xsd:enumeration value="White"/>
<xsd:enumeration value="Yellow"/>
<xsd:enumeration value="Transparent"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:simpleType name="StyleType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Solid"/>
<xsd:enumeration value="Broken"/>
</xsd:restriction>
</xsd:simpleType>
<!-- use Dimension for width and height, they can't be negative !-->
<xsd:simpleType name="Dimension">
<xsd:restriction base="xsd:float">
<xsd:minInclusive value="0" />
</xsd:restriction>
</xsd:simpleType>
<!--TODO: Rename group since it bundles `Attribute`, `CitationRef`
- How about CommonGroup, since it is that way in code too..
mapCommon, updateCommon
-->
<!-- One or more comments bundled together !-->
<xsd:group name="CommentGroup">
<xsd:sequence>
<xsd:element name="Comment" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Elements used to provide descriptions and arbitrary notes for a given object.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="source" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<!-- Additional information can be added as attribute key value pairs
can be used or ignored by readers -->
<xsd:element name="Attribute" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Element used to specify key/value paired information for a given object.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="key" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>
Key of the key/value pair in the Attribute class.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="value" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>
Value of the key/value pair in the Attribute class.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<!--Citation References for Pathway Elements-->
<xsd:element name="CitationRef" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Reuse of references defined by Citations.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="citationID" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:group>
<!-- End: Type Definitions -->
<!-- ###################################################################### -->
<!--
Pathway
This is the root element of the structure, it encloses
a complex type sequence of Comment, Graphics, DataNode,
Interaction, Line, Label, Link, Shape, Group, InfoBox,
Legend, Biopax
-->
<xsd:element name="Pathway">
<xsd:annotation>
<xsd:documentation>
A graph diagram representing a biological process as a set of interactions
and relationships among genes, proteins, metabolites, and other factors in
the context of cellular compartments, tissues and organisms.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<!-- pathways can have xrefs -->
<xsd:element name="Xref" type="gpml:Xref" minOccurs="0" maxOccurs="1"/>
<!--TODO rename element name? conflicts with Citations.Citation.Author-->
<xsd:element name="Author" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
The people who created or edited the pathway in question.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:group ref="gpml:CommentGroup"/>
<xsd:element name="OntologyTermRef" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="ontologyTermID" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="DataNode" type="gpml:DataNode" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="State" type="gpml:State" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Interaction" type="gpml:Interaction" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="GraphicalLine" type="gpml:GraphicalLine" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Label" type="gpml:Label" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Shape" type="gpml:Shape" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Group" type="gpml:Group" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="InfoBox" type="gpml:InfoBox" minOccurs="1" maxOccurs="1" />
<xsd:element name="Legend" type="gpml:Legend" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Citations" type="gpml:Citations" minOccurs="0" maxOccurs="1"/>
<xsd:element name="OntologyTerms" type="gpml:OntologyTerms" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<!-- Metadata for the pathway -->
<xsd:attribute name="name" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>
The name of a pathway.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="organism" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
The scientific name (e.g., Homo sapiens) of the
species being described by the pathway.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!--TODO conflicts with Xref.dataSource -->
<xsd:attribute name="dataSource" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
Deprecated: Not in use.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="revision" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
The version of a Pathway (currently not used in WP).
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="license" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
The license of a pathway.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Not separate elements but a reference to the elements at the end of the GPML -->
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:DimensionAttributes"/>
<!-- End Graphics related attributes-->
</xsd:complexType>
</xsd:element>
<!-- End: Pathway -->
<!-- ###################################################################### -->
<!--
Data Node
These are the elements with biological context
forming the basis of the biological pathway
-->
<xsd:complexType name="DataNode">
<!-- DataNode represents all possible biological entities in a pathway
like GeneProduct, Metabolite, Pathway, Protein, RNA, Unknown. -->
<xsd:annotation>
<xsd:documentation>
Denotes a biological entity that forms a node in a pathway and
has some biological meaning associated with it. For a list of
the gpml:DataNode types supported at WikiPathways, see subclasses
of wp:DataNode or the wpTypes vocabulary defined for use in applications.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup"/>
<xsd:element name="Xref" type="gpml:Xref" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:RectAttributes"/>
<xsd:attributeGroup ref="gpml:FontAttributes"/>
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes"/>
<xsd:attribute name="backgroundImage" type="xsd:string"/>
<!-- End Graphics related attributes-->
<xsd:attributeGroup ref="gpml:IdentifierRefGroup" />
<xsd:attribute name="type" default="Unknown">
<!-- Basic GPML types are:
"Protein", "Rna", "GeneProduct", "Metabolite", "Pathway" and "Unknown".
It's recommended that you use these values as often as possible. -->
<xsd:simpleType>
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Unknown"/>
<xsd:enumeration value="Rna"/>
<xsd:enumeration value="Protein"/>
<xsd:enumeration value="Complex"/>
<xsd:enumeration value="GeneProduct"/>
<xsd:enumeration value="Metabolite"/>
<xsd:enumeration value="Pathway"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<!-- End: DataNode -->
<!-- ###################################################################### -->
<!--
State
Always linked to a DataNode representing a specific state of the biological
entity (e.g. phosphorylation, genetic variants, etc)
-->
<xsd:complexType name="State">
<xsd:annotation>
<xsd:documentation>
A particular condition, mode or modification of an entity,
e.g., phosphorylated, activated, mutated, SNP, etc.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup"/>
<xsd:element name="Xref" type="gpml:Xref" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attributeGroup ref="gpml:RelativeCoordinates" />
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:DimensionAttributes"/>
<xsd:attributeGroup ref="gpml:FontAttributes" />
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes"/>
<!-- End Graphics related attributes-->
<xsd:attributeGroup ref="gpml:IdentifierGroup" />
<xsd:attribute name="elementRef" type="xsd:IDREF" use="required" />
<xsd:attribute name="stateType" type="xsd:string" default="Unknown"/>
<!-- Biological modification type. suggested values: Phosphorylated, Glycosylated, Activated, ... !-->
</xsd:complexType>
<!-- End: State -->
<!-- ###################################################################### -->
<!--
Grapical Line, Interaction
These are the only elements which can be used to connect data nodes, for
implementing any kind of connections or interactions.
Interactions represent biological relation between entities - should always be attached
to DataNodes
GraphicalLines are graphical annotations without semantic meaning
-->
<xsd:complexType name="GraphicalLine">
<xsd:annotation>
<xsd:documentation>
A visual annotation, often used to partition space or connect other annotation,
e.g., Shapes. An Xref can not be specified for GraphicalLines
(in contrast to Interactions).
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup" />
<xsd:element name="Point" type="gpml:Point" minOccurs="2" maxOccurs="unbounded" />
<xsd:element name="Anchor" type="gpml:Anchor" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:LineGraphicAttributes" />
<!-- End Graphics related attributes-->
<xsd:attributeGroup ref="gpml:IdentifierRefGroup" />
</xsd:complexType>
<!-- End: Graphical Line -->
<!-- Interaction -->
<xsd:complexType name="Interaction">
<xsd:annotation>
<xsd:documentation>
Defines the biochemical relationship between DataNodes
or with Anchors on other Interactions. An Xref can be
specified for Interactions (in contrast to GraphicalLines).
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup" />
<xsd:element name="Xref" type="gpml:Xref" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Point" type="gpml:Point" minOccurs="2" maxOccurs="unbounded" />
<xsd:element name="Anchor" type="gpml:Anchor" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:LineGraphicAttributes" />
<!-- End Graphics related attributes-->
<xsd:attributeGroup ref="gpml:IdentifierRefGroup" />
</xsd:complexType>
<!-- End: Interaction -->
<!-- ###################################################################### -->
<!--
Label
An element to attach simple labels to the pathway
No semantic meaning - graphical attributes
-->
<xsd:complexType name="Label">
<xsd:annotation>
<xsd:documentation>
A text field which can be used to annotate any aspect of a pathway.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup"/>
</xsd:sequence>
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:RectAttributes"/>
<xsd:attributeGroup ref="gpml:FontAttributes" />
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes" />
<!-- End Graphics related attributes-->
<!-- for a reference to a url !-->
<xsd:attribute name="href" use="optional" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>
The hyperlink optionally specified in a Label.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="gpml:IdentifierRefGroup" />
</xsd:complexType>
<!-- End: Label -->
<!-- ###################################################################### -->
<xsd:complexType name="Alias">
<xsd:annotation>
<xsd:documentation>
Description for Alias element
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup"/>
</xsd:sequence>
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:RectAttributes"/>
<xsd:attributeGroup ref="gpml:FontAttributes" />
<xsd:attribute name="color" type="gpml:ColorType" default="Black">
<xsd:annotation>
<xsd:documentation>
The color to be used for visualization.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="gpml:LineAttributes" />
<xsd:attribute name="fillColor" type="gpml:ColorType" default="Transparent">
<xsd:annotation>
<xsd:documentation>
The hexidecimal color value used to paint the area of an object, not including its border.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="shapeType" type="xsd:string" default="Hexagon"/>
<xsd:attribute name="zOrder" type="xsd:integer" use="optional"/>
<!-- End Graphics related attributes-->
<xsd:attributeGroup ref="gpml:IdentifierRefGroup" />
<xsd:attribute name="groupAliasRef" use="required" type="xsd:IDREF"/>
</xsd:complexType>
<!--
Shape
Graphical elements - shapes with or without a text label
-->
<xsd:complexType name="Shape">
<xsd:annotation>
<xsd:documentation>
Shape can refer to two different things in GPML,
both of which are associated with graphical elements.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup" />
</xsd:sequence>
<!-- Graphics related attributes-->
<xsd:attributeGroup ref="gpml:RectAttributes"/>
<xsd:attributeGroup ref="gpml:FontAttributes" />
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes" />
<xsd:attribute name="rotation" type="gpml:RotationType" default="Top" />
<!-- End Graphics related attributes-->
<xsd:attributeGroup ref="gpml:IdentifierRefGroup" />
</xsd:complexType>
<!-- End: Shape -->
<!-- ###################################################################### -->
<!--
Group
Elements in the pathway can be grouped.
Basic GPML group styles are:
None, Pathway, Group, Complex
-->
<xsd:complexType name="Group">
<xsd:annotation>
<xsd:documentation>
A collection of structurally or functionally similar or related pathway elements.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="gpml:CommentGroup" />
</xsd:sequence>
<xsd:attributeGroup ref="gpml:IdentifierRefGroup" />
<!-- renamed to groupType -->
<xsd:attribute name="groupType" default="Group">
<xsd:simpleType>
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Group"/>
<xsd:enumeration value="Complex"/>
<xsd:enumeration value="Pathway"/>
<xsd:enumeration value="Analog"/>
<xsd:enumeration value="Paralog"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<!-- End: Group -->
<!-- ###################################################################### -->
<!--
InfoBox, Legend
General properties/annotations of the pathway
-->
<xsd:complexType name="InfoBox">
<xsd:annotation>
<xsd:documentation>
Currently just a placeholder -- not used.
</xsd:documentation>
</xsd:annotation>
<!-- InfoBox element holds the coordinates where name and organism are displayed in the pathway -->
<xsd:attributeGroup ref="gpml:CenterAttributes" />
</xsd:complexType>
<!-- End: InfoBox -->
<!-- Legend -->
<xsd:complexType name="Legend">
<xsd:annotation>
<xsd:documentation>
An explanatory list of the colors used for visualizing data on the pathway. Not currently used.
</xsd:documentation>
</xsd:annotation>
<xsd:attributeGroup ref="gpml:CenterAttributes" />
</xsd:complexType>
<!-- End: Legend -->
<!-- ###################################################################### -->
<!--
Citations
List of all Citations referred in the pathway
-->
<xsd:complexType name="Citations">
<xsd:annotation>
<xsd:documentation>
Defines a literature reference.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Citation" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Xref" type="gpml:Xref" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Author" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="citationID" type="xsd:ID" use="required" />
<xsd:attribute name="title" use="required"/>
<xsd:attribute name="year" use="optional"/>
<xsd:attribute name="URL" use="required"/>
<xsd:attribute name="source" use="optional"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- End: Citations -->
<!-- ###################################################################### -->
<!--
OntologyTerms
List of all OntologyTerms used for the pathway
-->
<xsd:complexType name="OntologyTerms">
<xsd:sequence>
<xsd:element name="OntologyTerm" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="term" type="xsd:string" use="required"/>
<xsd:attribute name="ontology" type="xsd:string" use="required"/>
<xsd:attribute name="ontologyTermID" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Xref">
<xsd:annotation>
<xsd:documentation>
Reference to a database entry that matches the node in the pathway.
It is a combination of an identifier of the entity and an identifier
of the database in which the entity is found.
</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="identifier" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>
The identifier of a PublicationXref or Xref object.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="dataSource" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>
Specifies the datasource for the identifier provided as an Xref.
Equivalent to http://vocabularies.bridgedb.org/ops#DataSource conventional name .
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Point">
<xsd:annotation>
<xsd:documentation>
A location in 2-dimensional space defined by x and y coordinates.
</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="x" type="xsd:float" use="required" />
<xsd:attribute name="y" type="xsd:float" use="required" />
<xsd:attributeGroup ref="gpml:RelativeCoordinatesOptional" />
<xsd:attribute name="elementRef" type="xsd:IDREF" use="optional" >
<xsd:annotation>
<xsd:documentation>
A elementRef indicates a "depends on" or child/parent relationship
between two Pathway elements. The element with the elementRef is
the child, and the element referred to by the elementRef is the parent.
The parent's elementID will be specified by the child's elementRef.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="gpml:IdentifierGroup" />
<!-- Note: only the arrowHead attribute on first and last points are used, the rest is ignored. !-->
<xsd:attribute name="arrowHead" default="Line">
<xsd:annotation>
<xsd:documentation>
Specifies the glyph at the ends of lines and interactions.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Line"/>
<xsd:enumeration value="Arrow"/>
<xsd:enumeration value="TBar"/>
<xsd:enumeration value="mim-necessary-stimulation"/>
<xsd:enumeration value="mim-binding"/>
<xsd:enumeration value="mim-conversion"/>
<xsd:enumeration value="mim-stimulation"/>
<xsd:enumeration value="mim-catalysis"/>
<xsd:enumeration value="mim-modification"/>
<xsd:enumeration value="mim-inhibition"/>
<xsd:enumeration value="mim-covalent-bond"/>
<xsd:enumeration value="mim-transcription-translation"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Anchor">
<xsd:annotation>
<xsd:documentation>
A connection point on a graphical line or an interaction, where another graphical line or interaction can be connected.
</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="position" type="xsd:float" use="required">
<xsd:annotation>
<xsd:documentation>
Proportional distance of an anchor along the line it belongs to, between 0 and 1.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="x" type="xsd:float" use="optional" />
<xsd:attribute name="y" type="xsd:float" use="optional" />
<xsd:attributeGroup ref="gpml:RelativeCoordinatesOptional" />
<xsd:attributeGroup ref="gpml:IdentifierGroup" />
<xsd:attribute name="shapeType" default="None" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>
The visual representation of an anchor, e.g., Circle or None.
</xsd:documentation>