| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xs:schema xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://graphml.graphdrawing.org/xmlns" elementFormDefault="qualified" attributeFormDefault="unqualified">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- This document defines the GraphML language including GraphML attributes and GraphML parseinfo.
- </xs:documentation>
- </xs:annotation>
- <xs:redefine schemaLocation="http://graphml.graphdrawing.org/xmlns/1.1/graphml-structure.xsd">
- <!-- redefinition as in graphml-attributes.xsd -->
- <xs:attributeGroup name="key.extra.attrib">
- <xs:attributeGroup ref="key.extra.attrib"/>
- <xs:attributeGroup ref="key.attributes.attrib"/>
- </xs:attributeGroup>
- <!-- redefinition as in graphml-parseinfo.xsd -->
- <xs:attributeGroup name="graph.extra.attrib">
- <xs:attributeGroup ref="graph.extra.attrib"/>
- <xs:attributeGroup ref="graph.parseinfo.attrib"/>
- </xs:attributeGroup>
- <xs:attributeGroup name="node.extra.attrib">
- <xs:attributeGroup ref="node.extra.attrib"/>
- <xs:attributeGroup ref="node.parseinfo.attrib"/>
- </xs:attributeGroup>
- </xs:redefine>
- <!-- types as in graphml-attributes.xsd -->
- <xs:simpleType name="key.name.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/(Dokumentation der Attributes Erweiterung; entsprechende Stelle.html)" xml:lang="en">
- Simple type for the attr.name attribute of key. key.name.type is final, that is, it may not be extended or restricted. key.name.type is a restriction of xs:NMTOKEN Allowed values: (no restriction)
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NMTOKEN"/>
- </xs:simpleType>
- <xs:simpleType name="key.type.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/(Dokumentation der Attributes Erweiterung; entsprechende Stelle.html)" xml:lang="en">
- Simple type for the attr.type attribute of key. key.type.type is final, that is, it may not be extended or restricted. key.type.type is a restriction of xs:NMTOKEN Allowed values: boolean, int, long, float, double, string.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NMTOKEN">
- <xs:enumeration value="boolean"/>
- <xs:enumeration value="int"/>
- <xs:enumeration value="long"/>
- <xs:enumeration value="float"/>
- <xs:enumeration value="double"/>
- <xs:enumeration value="string"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:attributeGroup name="key.attributes.attrib">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Definition of the attribute group key.attributes.attrib. This group consists of the two optional attributes - attr.name (gives the name for the data function) - attr.type ((declares the range of values for the data function)
- </xs:documentation>
- </xs:annotation>
- <xs:attribute name="attr.name" type="key.name.type" use="optional"/>
- <xs:attribute name="attr.type" type="key.type.type" use="optional"/>
- </xs:attributeGroup>
- <!-- types as in graphml-parseinfo.xsd -->
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type definitions for the new graph attributes.
- </xs:documentation>
- </xs:annotation>
- <xs:simpleType name="graph.order.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.order attribute of graph. graph.order.type is final, that is, it may not be extended or restricted. graph.order.type is a restriction of xs:NMTOKEN Allowed values: free, nodesfirst, adjacencylist.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NMTOKEN">
- <xs:enumeration value="free"/>
- <xs:enumeration value="nodesfirst"/>
- <xs:enumeration value="adjacencylist"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="graph.nodes.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.nodes attribute of graph. graph.nodes.type is final, that is, it may not be extended or restricted. graph.nodes.type is a restriction of xs:nonNegativeInteger Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:nonNegativeInteger"/>
- </xs:simpleType>
- <xs:simpleType name="graph.edges.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.edges attribute of graph. graph.edges.type is final, that is, it may not be extended or restricted. graph.edges.type is a restriction of xs:nonNegativeInteger Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:nonNegativeInteger"/>
- </xs:simpleType>
- <xs:simpleType name="graph.maxindegree.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.maxindegree attribute of graph. graph.maxindegree.type is final, that is, it may not be extended or restricted. graph.maxindegree.type is a restriction of xs:nonNegativeInteger Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:nonNegativeInteger"/>
- </xs:simpleType>
- <xs:simpleType name="graph.maxoutdegree.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.maxoutdegree attribute of graph. graph.maxoutdegree.type is final, that is, it may not be extended or restricted. graph.maxoutdegree.type is a restriction of xs:nonNegativeInteger Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:nonNegativeInteger"/>
- </xs:simpleType>
- <xs:simpleType name="graph.nodeids.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.nodeids attribute of graph. graph.nodeids.type is final, that is, it may not be extended or restricted. graph.nodeids.type is a restriction of xs:string Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NMTOKEN">
- <xs:enumeration value="canonical"/>
- <xs:enumeration value="free"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="graph.edgeids.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.edgeids attribute of graph. graph.edgeids.type is final, that is, it may not be extended or restricted. graph.edgeids.type is a restriction of xs:string Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NMTOKEN">
- <xs:enumeration value="canonical"/>
- <xs:enumeration value="free"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:attributeGroup name="graph.parseinfo.attrib">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Definition of the attribute group graph.parseinfo.attrib. This group consists of the seven attributes - parse.nodeids (fixed to 'canonical' meaning that the id attribute of node follows the pattern 'n[number]), - parse.edgeids (fixed to 'canonical' meaning that the id attribute of edge follows the pattern 'e[number]), - parse.order (required; one of the values 'nodesfirst', 'adjacencylist' or 'free'), - parse.nodes (required; number of nodes in this graph), - parse.edges (required; number of edges in this graph), - parse.maxindegree (optional; maximal indegree of a node in this graph), - parse.maxoutdegree (optional; maximal outdegree of a node in this graph)
- </xs:documentation>
- </xs:annotation>
- <xs:attribute name="parse.nodeids" type="graph.nodeids.type"/>
- <xs:attribute name="parse.edgeids" type="graph.edgeids.type"/>
- <xs:attribute name="parse.order" type="graph.order.type"/>
- <xs:attribute name="parse.nodes" type="graph.nodes.type"/>
- <xs:attribute name="parse.edges" type="graph.edges.type"/>
- <xs:attribute name="parse.maxindegree" type="graph.maxindegree.type" use="optional"/>
- <xs:attribute name="parse.maxoutdegree" type="graph.maxoutdegree.type" use="optional"/>
- </xs:attributeGroup>
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type definitions for the new node attributes.
- </xs:documentation>
- </xs:annotation>
- <xs:simpleType name="node.indegree.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.indegree attribute of node. node.indegree.type is final, that is, it may not be extended or restricted. node.indegree.type is a restriction of xs:nonNegativeInteger Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:nonNegativeInteger"/>
- </xs:simpleType>
- <xs:simpleType name="node.outdegree.type" final="#all">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Simple type for the parse.outdegree attribute of node. node.outdegree.type is final, that is, it may not be extended or restricted. node.outdegree.type is a restriction of xs:nonNegativeInteger Allowed values: (no restriction).
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:nonNegativeInteger"/>
- </xs:simpleType>
- <xs:attributeGroup name="node.parseinfo.attrib">
- <xs:annotation>
- <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
- Definition of the attribute group node.parseinfo.attrib. This group consists of two attributes - parse.indegree (optional; indegree of this node), - parse.outdegree (optional; outdegree of this node).
- </xs:documentation>
- </xs:annotation>
- <xs:attribute name="parse.indegree" type="node.indegree.type" use="optional"/>
- <xs:attribute name="parse.outdegree" type="node.outdegree.type" use="optional"/>
- </xs:attributeGroup>
- </xs:schema>
- <!--<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- elementFormDefault="qualified" targetNamespace="http://www.yworks.com/xml/graphml"
- xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:y="http://www.yworks.com/xml/graphml"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xs:import namespace="http://graphml.graphdrawing.org/xmlns" schemaLocation="xmlns.xsd"/>
- <xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="xsi.xsd"/>
-
- <xs:element name="GenericEdge">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:Path"/>
- <xs:element ref="y:LineStyle"/>
- <xs:element ref="y:Arrows"/>
- </xs:sequence>
- <xs:attribute name="configuration" use="required" type="xs:NCName"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="GenericNode">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:Geometry"/>
- <xs:element ref="y:Fill"/>
- <xs:element ref="y:BorderStyle"/>
- <xs:element ref="y:NodeLabel"/>
- </xs:sequence>
- <xs:attribute name="configuration" use="required" type="xs:NCName"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="PolyLineEdge">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:Path"/>
- <xs:element ref="y:LineStyle"/>
- <xs:element ref="y:Arrows"/>
- <xs:element ref="y:BendStyle"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="BendStyle">
- <xs:complexType>
- <xs:attribute name="smoothed" use="required" type="xs:boolean"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="ProxyAutoBoundsNode">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:Realizers"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Realizers">
- <xs:complexType>
- <xs:choice>
- <xs:element maxOccurs="unbounded" ref="y:GroupNode"/>
- <xs:element maxOccurs="unbounded" ref="y:GenericGroupNode"/>
- </xs:choice>
- <xs:attribute name="active" use="required" type="xs:integer"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="GroupNode">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:Geometry"/>
- <xs:element ref="y:Fill"/>
- <xs:element ref="y:BorderStyle"/>
- <xs:element ref="y:NodeLabel"/>
- <xs:element ref="y:Shape"/>
- <xs:element ref="y:State"/>
- <xs:element ref="y:Insets"/>
- <xs:element ref="y:BorderInsets"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Shape">
- <xs:complexType>
- <xs:attribute name="type" use="required" type="xs:NCName"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="GenericGroupNode">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:Geometry"/>
- <xs:element ref="y:Fill"/>
- <xs:element ref="y:BorderStyle"/>
- <xs:element ref="y:NodeLabel"/>
- <xs:element ref="y:State"/>
- <xs:element ref="y:Insets"/>
- <xs:element ref="y:BorderInsets"/>
- </xs:sequence>
- <xs:attribute name="configuration" use="required" type="xs:NCName"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Resources">
- <xs:complexType/>
- </xs:element>
- <xs:element name="Geometry">
- <xs:complexType>
- <xs:attribute name="height" use="required" type="xs:decimal"/>
- <xs:attribute name="width" use="required" type="xs:decimal"/>
- <xs:attribute name="x" use="required" type="xs:decimal"/>
- <xs:attribute name="y" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Fill">
- <xs:complexType>
- <xs:attribute name="color" use="required"/>
- <xs:attribute name="color2"/>
- <xs:attribute name="transparent" use="required" type="xs:boolean"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="BorderStyle">
- <xs:complexType>
- <xs:attribute name="color"/>
- <xs:attribute name="hasColor" type="xs:boolean"/>
- <xs:attribute name="type" use="required" type="xs:NCName"/>
- <xs:attribute name="width" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="NodeLabel">
- <xs:complexType mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="y:LabelModel"/>
- <xs:element ref="y:ModelParameter"/>
- </xs:choice>
- <xs:attribute name="alignment" use="required" type="xs:NCName"/>
- <xs:attribute name="autoSizePolicy" use="required" type="xs:NCName"/>
- <xs:attribute name="backgroundColor"/>
- <xs:attribute name="borderDistance" type="xs:decimal"/>
- <xs:attribute name="fontFamily" use="required" type="xs:NCName"/>
- <xs:attribute name="fontSize" use="required" type="xs:integer"/>
- <xs:attribute name="fontStyle" use="required" type="xs:NCName"/>
- <xs:attribute name="hasBackgroundColor" type="xs:boolean"/>
- <xs:attribute name="hasLineColor" use="required" type="xs:boolean"/>
- <xs:attribute name="height" use="required" type="xs:decimal"/>
- <xs:attribute name="horizontalTextPosition" use="required" type="xs:NCName"/>
- <xs:attribute name="iconTextGap" use="required" type="xs:integer"/>
- <xs:attribute name="modelName" use="required" type="xs:NCName"/>
- <xs:attribute name="modelPosition" type="xs:NCName"/>
- <xs:attribute name="textColor" use="required"/>
- <xs:attribute name="verticalTextPosition" use="required" type="xs:NCName"/>
- <xs:attribute name="visible" use="required" type="xs:boolean"/>
- <xs:attribute name="width" use="required" type="xs:decimal"/>
- <xs:attribute name="x" use="required" type="xs:decimal"/>
- <xs:attribute name="y" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="LabelModel">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:SmartNodeLabelModel"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="SmartNodeLabelModel">
- <xs:complexType>
- <xs:attribute name="distance" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="ModelParameter">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="y:SmartNodeLabelModelParameter"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="SmartNodeLabelModelParameter">
- <xs:complexType>
- <xs:attribute name="labelRatioX" use="required" type="xs:decimal"/>
- <xs:attribute name="labelRatioY" use="required" type="xs:decimal"/>
- <xs:attribute name="nodeRatioX" use="required" type="xs:decimal"/>
- <xs:attribute name="nodeRatioY" use="required" type="xs:decimal"/>
- <xs:attribute name="offsetX" use="required" type="xs:decimal"/>
- <xs:attribute name="offsetY" use="required" type="xs:decimal"/>
- <xs:attribute name="upX" use="required" type="xs:decimal"/>
- <xs:attribute name="upY" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="State">
- <xs:complexType>
- <xs:attribute name="autoResize" type="xs:boolean"/>
- <xs:attribute name="closed" use="required" type="xs:boolean"/>
- <xs:attribute name="closedHeight" use="required" type="xs:decimal"/>
- <xs:attribute name="closedWidth" use="required" type="xs:decimal"/>
- <xs:attribute name="innerGraphDisplayEnabled" type="xs:boolean"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Insets">
- <xs:complexType>
- <xs:attribute name="bottom" use="required" type="xs:integer"/>
- <xs:attribute name="bottomF" use="required" type="xs:decimal"/>
- <xs:attribute name="left" use="required" type="xs:integer"/>
- <xs:attribute name="leftF" use="required" type="xs:decimal"/>
- <xs:attribute name="right" use="required" type="xs:integer"/>
- <xs:attribute name="rightF" use="required" type="xs:decimal"/>
- <xs:attribute name="top" use="required" type="xs:integer"/>
- <xs:attribute name="topF" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="BorderInsets">
- <xs:complexType>
- <xs:attribute name="bottom" use="required" type="xs:integer"/>
- <xs:attribute name="bottomF" use="required" type="xs:double"/>
- <xs:attribute name="left" use="required" type="xs:integer"/>
- <xs:attribute name="leftF" use="required" type="xs:decimal"/>
- <xs:attribute name="right" use="required" type="xs:integer"/>
- <xs:attribute name="rightF" use="required" type="xs:decimal"/>
- <xs:attribute name="top" use="required" type="xs:integer"/>
- <xs:attribute name="topF" use="required" type="xs:double"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Path">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="y:Point"/>
- </xs:sequence>
- <xs:attribute name="sx" use="required" type="xs:decimal"/>
- <xs:attribute name="sy" use="required" type="xs:decimal"/>
- <xs:attribute name="tx" use="required" type="xs:decimal"/>
- <xs:attribute name="ty" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Point">
- <xs:complexType>
- <xs:attribute name="x" use="required" type="xs:decimal"/>
- <xs:attribute name="y" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="LineStyle">
- <xs:complexType>
- <xs:attribute name="color" use="required"/>
- <xs:attribute name="type" use="required" type="xs:NCName"/>
- <xs:attribute name="width" use="required" type="xs:decimal"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="Arrows">
- <xs:complexType>
- <xs:attribute name="source" use="required" type="xs:NCName"/>
- <xs:attribute name="target" use="required" type="xs:NCName"/>
- </xs:complexType>
- </xs:element>
- </xs:schema>-->
|