-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphml.dtd
87 lines (64 loc) · 2.43 KB
/
graphml.dtd
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
<!-- ====================================================================== -->
<!-- GRAPHML DTD (flat version) =========================================== -->
<!-- file: graphml.dtd
SYSTEM "http://graphml.graphdrawing.org/dtds/graphml.dtd"
xmlns="http://graphml.graphdrawing.org/xmlns/graphml"
(consider these urls as examples)
====================================================================== -->
<!--============================================================-->
<!--elements of GRAPHML-->
<!--============================================================-->
<!ELEMENT graphml ((desc)?,(key)*,((data)|(graph))*)>
<!ELEMENT locator EMPTY>
<!ATTLIST locator
xmlns:xlink CDATA #FIXED "http://www.w3.org/TR/2000/PR-xlink-20001220/"
xlink:href CDATA #REQUIRED
xlink:type (simple) #FIXED "simple"
>
<!ELEMENT desc (#PCDATA)>
<!ELEMENT graph ((desc)?,((((data)|(node)|(edge)|(hyperedge))*)|(locator)))>
<!ATTLIST graph
id ID #IMPLIED
edgedefault (directed|undirected) #REQUIRED
>
<!ELEMENT node (desc?,(((data|port)*,graph?)|locator))>
<!ATTLIST node
id ID #REQUIRED
>
<!ELEMENT port ((desc)?,((data)|(port))*)>
<!ATTLIST port
name NMTOKEN #REQUIRED
>
<!ELEMENT edge ((desc)?,(data)*,(graph)?)>
<!ATTLIST edge
id ID #IMPLIED
source IDREF #REQUIRED
sourceport NMTOKEN #IMPLIED
target IDREF #REQUIRED
targetport NMTOKEN #IMPLIED
directed (true|false) #IMPLIED
>
<!ELEMENT hyperedge ((desc)?,((data)|(endpoint))*,(graph)?)>
<!ATTLIST hyperedge
id ID #IMPLIED
>
<!ELEMENT endpoint ((desc)?)>
<!ATTLIST endpoint
id ID #IMPLIED
node IDREF #REQUIRED
port NMTOKEN #IMPLIED
type (in|out|undir) "undir"
>
<!ELEMENT key (#PCDATA)>
<!ATTLIST key
id ID #REQUIRED
for (graph|node|edge|hyperedge|port|endpoint|all) "all"
>
<!ELEMENT data (#PCDATA)>
<!ATTLIST data
key IDREF #REQUIRED
id ID #IMPLIED
>
<!--==============================================================
end of graphml.dtd
=================================================================-->