comparison 1__Development/6__Website/POPBottleServer/syntaxGraph.json @ 8:cc10d99e3f83

Persist and read back from disk and parse to objects is working.. Display needs updating now
author Sean Halle <seanhalle@yahoo.com>
date Sat, 09 Aug 2014 03:34:26 -0700
parents 20a1407463a0
children
comparison
equal deleted inserted replaced
2:57c40eeaa5e0 3:6c679c54b2d4
1 { 1 {
2 "rootElem": 1, 2 "rootElem": 1,
3 "rootViewSet": { 3 "rootViewSet": {
4 "type": "ViewSet",
4 "ID": 2, 5 "ID": 2,
5 "viewSetLinks": [ 6 "viewSetLinks": [
6 { 7 {
8 "type": "ViewSetLink",
7 "ID": 3, 9 "ID": 3,
8 "referenceViewSet": 2, 10 "referenceViewSet": 2,
9 "subordinateViewSet": 4, 11 "subordinateViewSet": 4,
10 "xOffset": 0, 12 "xOffset": 0,
11 "yOffset": 0, 13 "yOffset": 0,
12 "scale": 1 14 "scale": 1
13 } 15 }
14 ] 16 ]
15 } 17 }
16 } 18 }
17 end elem 19 separator
18 { 20 {
21 "type": "GraphElem",
19 "ID": 31, 22 "ID": 31,
20 "properties": [ 23 "properties": [
21 { 24 {
25 "type": "GraphProperty",
22 "ID": 32, 26 "ID": 32,
23 "propertyName": "TypeOfElement", 27 "propertyName": "TypeOfElement",
24 "propertyValue": "Command", 28 "propertyValue": "Command",
25 "subProperties": [ 29 "subProperties": [
26 { 30 {
31 "type": "GraphProperty",
27 "ID": 33, 32 "ID": 33,
28 "propertyName": "CommandID", 33 "propertyName": "CommandID",
29 "propertyValue": "GabePattPop", 34 "propertyValue": "GabePattPop",
30 "subProperties": [] 35 "subProperties": []
31 } 36 }
32 ] 37 ]
33 }, 38 },
34 { 39 {
40 "type": "GraphProperty",
35 "ID": 34, 41 "ID": 34,
36 "propertyName": "TypeOfSyntacticStructure", 42 "propertyName": "TypeOfSyntacticStructure",
37 "propertyValue": "syntacticPatternRoot", 43 "propertyValue": "syntacticPatternRoot",
38 "subProperties": [] 44 "subProperties": []
39 } 45 }
40 ], 46 ],
41 "portsIn": [ 47 "portsIn": [
42 { 48 {
49 "type": "GraphPort",
43 "ID": 35, 50 "ID": 35,
44 "element": 31, 51 "element": 31,
45 "properties": [ 52 "properties": [
46 { 53 {
54 "type": "GraphProperty",
47 "ID": 36, 55 "ID": 36,
48 "propertyName": "TypeOfPort", 56 "propertyName": "TypeOfPort",
49 "propertyValue": "dataComm", 57 "propertyValue": "dataComm",
50 "subProperties": [ 58 "subProperties": [
51 { 59 {
60 "type": "GraphProperty",
52 "ID": 37, 61 "ID": 37,
53 "propertyName": "TypeOfCommData", 62 "propertyName": "TypeOfCommData",
54 "propertyValue": "GabePattStack", 63 "propertyValue": "GabePattStack",
55 "subProperties": [] 64 "subProperties": []
56 } 65 }
62 ] 71 ]
63 } 72 }
64 ], 73 ],
65 "portsOut": [ 74 "portsOut": [
66 { 75 {
76 "type": "GraphPort",
67 "ID": 38, 77 "ID": 38,
68 "element": 31, 78 "element": 31,
69 "properties": [ 79 "properties": [
70 { 80 {
81 "type": "GraphProperty",
71 "ID": 39, 82 "ID": 39,
72 "propertyName": "TypeOfPort", 83 "propertyName": "TypeOfPort",
73 "propertyValue": "dataComm", 84 "propertyValue": "dataComm",
74 "subProperties": [ 85 "subProperties": [
75 { 86 {
87 "type": "GraphProperty",
76 "ID": 40, 88 "ID": 40,
77 "propertyName": "TypeOfCommData", 89 "propertyName": "TypeOfCommData",
78 "propertyValue": "GabePattStack", 90 "propertyValue": "GabePattStack",
79 "subProperties": [] 91 "subProperties": []
80 } 92 }
82 } 94 }
83 ], 95 ],
84 "pairedPorts": [] 96 "pairedPorts": []
85 }, 97 },
86 { 98 {
99 "type": "GraphPort",
87 "ID": 41, 100 "ID": 41,
88 "element": 31, 101 "element": 31,
89 "properties": [ 102 "properties": [
90 { 103 {
104 "type": "GraphProperty",
91 "ID": 42, 105 "ID": 42,
92 "propertyName": "TypeOfPort", 106 "propertyName": "TypeOfPort",
93 "propertyValue": "dataComm", 107 "propertyValue": "dataComm",
94 "subProperties": [ 108 "subProperties": [
95 { 109 {
110 "type": "GraphProperty",
96 "ID": 43, 111 "ID": 43,
97 "propertyName": "TypeOfCommData", 112 "propertyName": "TypeOfCommData",
98 "propertyValue": "float", 113 "propertyValue": "float",
99 "subProperties": [] 114 "subProperties": []
100 } 115 }
105 } 120 }
106 ], 121 ],
107 "linkedElems": [], 122 "linkedElems": [],
108 "isAlreadyVisited": true 123 "isAlreadyVisited": true
109 } 124 }
110 end elem 125 separator
111 { 126 {
127 "type": "GraphElem",
112 "ID": 18, 128 "ID": 18,
113 "properties": [ 129 "properties": [
114 { 130 {
131 "type": "GraphProperty",
115 "ID": 19, 132 "ID": 19,
116 "propertyName": "TypeOfElement", 133 "propertyName": "TypeOfElement",
117 "propertyValue": "Command", 134 "propertyValue": "Command",
118 "subProperties": [ 135 "subProperties": [
119 { 136 {
137 "type": "GraphProperty",
120 "ID": 20, 138 "ID": 20,
121 "propertyName": "CommandID", 139 "propertyName": "CommandID",
122 "propertyValue": "GabePattPush", 140 "propertyValue": "GabePattPush",
123 "subProperties": [] 141 "subProperties": []
124 } 142 }
125 ] 143 ]
126 }, 144 },
127 { 145 {
146 "type": "GraphProperty",
128 "ID": 21, 147 "ID": 21,
129 "propertyName": "TypeOfSyntacticStructure", 148 "propertyName": "TypeOfSyntacticStructure",
130 "propertyValue": "syntacticPatternRoot", 149 "propertyValue": "syntacticPatternRoot",
131 "subProperties": [] 150 "subProperties": []
132 } 151 }
133 ], 152 ],
134 "portsIn": [ 153 "portsIn": [
135 { 154 {
155 "type": "GraphPort",
136 "ID": 22, 156 "ID": 22,
137 "element": 18, 157 "element": 18,
138 "properties": [ 158 "properties": [
139 { 159 {
160 "type": "GraphProperty",
140 "ID": 23, 161 "ID": 23,
141 "propertyName": "TypeOfPort", 162 "propertyName": "TypeOfPort",
142 "propertyValue": "dataComm", 163 "propertyValue": "dataComm",
143 "subProperties": [ 164 "subProperties": [
144 { 165 {
166 "type": "GraphProperty",
145 "ID": 24, 167 "ID": 24,
146 "propertyName": "TypeOfCommData", 168 "propertyName": "TypeOfCommData",
147 "propertyValue": "GabePattStack", 169 "propertyValue": "GabePattStack",
148 "subProperties": [] 170 "subProperties": []
149 } 171 }
151 } 173 }
152 ], 174 ],
153 "pairedPorts": [] 175 "pairedPorts": []
154 }, 176 },
155 { 177 {
178 "type": "GraphPort",
156 "ID": 25, 179 "ID": 25,
157 "element": 18, 180 "element": 18,
158 "properties": [ 181 "properties": [
159 { 182 {
183 "type": "GraphProperty",
160 "ID": 26, 184 "ID": 26,
161 "propertyName": "TypeOfPort", 185 "propertyName": "TypeOfPort",
162 "propertyValue": "dataComm", 186 "propertyValue": "dataComm",
163 "subProperties": [ 187 "subProperties": [
164 { 188 {
189 "type": "GraphProperty",
165 "ID": 27, 190 "ID": 27,
166 "propertyName": "TypeOfCommData", 191 "propertyName": "TypeOfCommData",
167 "propertyValue": "float", 192 "propertyValue": "float",
168 "subProperties": [] 193 "subProperties": []
169 } 194 }
173 "pairedPorts": [] 198 "pairedPorts": []
174 } 199 }
175 ], 200 ],
176 "portsOut": [ 201 "portsOut": [
177 { 202 {
203 "type": "GraphPort",
178 "ID": 28, 204 "ID": 28,
179 "element": 18, 205 "element": 18,
180 "properties": [ 206 "properties": [
181 { 207 {
208 "type": "GraphProperty",
182 "ID": 29, 209 "ID": 29,
183 "propertyName": "TypeOfPort", 210 "propertyName": "TypeOfPort",
184 "propertyValue": "dataComm", 211 "propertyValue": "dataComm",
185 "subProperties": [ 212 "subProperties": [
186 { 213 {
214 "type": "GraphProperty",
187 "ID": 30, 215 "ID": 30,
188 "propertyName": "TypeOfCommData", 216 "propertyName": "TypeOfCommData",
189 "propertyValue": "GabePattStack", 217 "propertyValue": "GabePattStack",
190 "subProperties": [] 218 "subProperties": []
191 } 219 }
198 } 226 }
199 ], 227 ],
200 "linkedElems": [], 228 "linkedElems": [],
201 "isAlreadyVisited": true 229 "isAlreadyVisited": true
202 } 230 }
203 end elem 231 separator
204 { 232 {
233 "type": "GraphElem",
205 "ID": 12, 234 "ID": 12,
206 "properties": [ 235 "properties": [
207 { 236 {
237 "type": "GraphProperty",
208 "ID": 13, 238 "ID": 13,
209 "propertyName": "TypeOfElement", 239 "propertyName": "TypeOfElement",
210 "propertyValue": "GabeQueryPattern", 240 "propertyValue": "GabeQueryPattern",
211 "subProperties": [] 241 "subProperties": []
212 }, 242 },
213 { 243 {
244 "type": "GraphProperty",
214 "ID": 14, 245 "ID": 14,
215 "propertyName": "TypeOfSyntacticStructure", 246 "propertyName": "TypeOfSyntacticStructure",
216 "propertyValue": "syntacticHierarchy", 247 "propertyValue": "syntacticHierarchy",
217 "subProperties": [] 248 "subProperties": []
218 } 249 }
223 18, 254 18,
224 31 255 31
225 ], 256 ],
226 "isAlreadyVisited": true 257 "isAlreadyVisited": true
227 } 258 }
228 end elem 259 separator
229 { 260 {
261 "type": "GraphElem",
230 "ID": 44, 262 "ID": 44,
231 "properties": [ 263 "properties": [
232 { 264 {
265 "type": "GraphProperty",
233 "ID": 45, 266 "ID": 45,
234 "propertyName": "TypeOfElement", 267 "propertyName": "TypeOfElement",
235 "propertyValue": "Command", 268 "propertyValue": "Command",
236 "subProperties": [ 269 "subProperties": [
237 { 270 {
271 "type": "GraphProperty",
238 "ID": 46, 272 "ID": 46,
239 "propertyName": "CommandID", 273 "propertyName": "CommandID",
240 "propertyValue": "GabePassThrough", 274 "propertyValue": "GabePassThrough",
241 "subProperties": [] 275 "subProperties": []
242 } 276 }
243 ] 277 ]
244 }, 278 },
245 { 279 {
280 "type": "GraphProperty",
246 "ID": 47, 281 "ID": 47,
247 "propertyName": "TypeOfSyntacticStructure", 282 "propertyName": "TypeOfSyntacticStructure",
248 "propertyValue": "syntacticPatternRoot", 283 "propertyValue": "syntacticPatternRoot",
249 "subProperties": [] 284 "subProperties": []
250 } 285 }
251 ], 286 ],
252 "portsIn": [ 287 "portsIn": [
253 { 288 {
289 "type": "GraphPort",
254 "ID": 48, 290 "ID": 48,
255 "element": 44, 291 "element": 44,
256 "properties": [ 292 "properties": [
257 { 293 {
294 "type": "GraphProperty",
258 "ID": 49, 295 "ID": 49,
259 "propertyName": "TypeOfPort", 296 "propertyName": "TypeOfPort",
260 "propertyValue": "dataComm", 297 "propertyValue": "dataComm",
261 "subProperties": [ 298 "subProperties": [
262 { 299 {
300 "type": "GraphProperty",
263 "ID": 50, 301 "ID": 50,
264 "propertyName": "TypeOfCommData", 302 "propertyName": "TypeOfCommData",
265 "propertyValue": "GabePattStack", 303 "propertyValue": "GabePattStack",
266 "subProperties": [] 304 "subProperties": []
267 } 305 }
269 } 307 }
270 ], 308 ],
271 "pairedPorts": [] 309 "pairedPorts": []
272 }, 310 },
273 { 311 {
312 "type": "GraphPort",
274 "ID": 51, 313 "ID": 51,
275 "element": 44, 314 "element": 44,
276 "properties": [ 315 "properties": [
277 { 316 {
317 "type": "GraphProperty",
278 "ID": 52, 318 "ID": 52,
279 "propertyName": "TypeOfPort", 319 "propertyName": "TypeOfPort",
280 "propertyValue": "dataComm", 320 "propertyValue": "dataComm",
281 "subProperties": [ 321 "subProperties": [
282 { 322 {
323 "type": "GraphProperty",
283 "ID": 53, 324 "ID": 53,
284 "propertyName": "TypeOfCommData", 325 "propertyName": "TypeOfCommData",
285 "propertyValue": "float", 326 "propertyValue": "float",
286 "subProperties": [] 327 "subProperties": []
287 } 328 }
291 "pairedPorts": [] 332 "pairedPorts": []
292 } 333 }
293 ], 334 ],
294 "portsOut": [ 335 "portsOut": [
295 { 336 {
337 "type": "GraphPort",
296 "ID": 54, 338 "ID": 54,
297 "element": 44, 339 "element": 44,
298 "properties": [ 340 "properties": [
299 { 341 {
342 "type": "GraphProperty",
300 "ID": 55, 343 "ID": 55,
301 "propertyName": "TypeOfPort", 344 "propertyName": "TypeOfPort",
302 "propertyValue": "dataComm", 345 "propertyValue": "dataComm",
303 "subProperties": [ 346 "subProperties": [
304 { 347 {
348 "type": "GraphProperty",
305 "ID": 56, 349 "ID": 56,
306 "propertyName": "TypeOfCommData", 350 "propertyName": "TypeOfCommData",
307 "propertyValue": "GabePattStack", 351 "propertyValue": "GabePattStack",
308 "subProperties": [] 352 "subProperties": []
309 } 353 }
311 } 355 }
312 ], 356 ],
313 "pairedPorts": [] 357 "pairedPorts": []
314 }, 358 },
315 { 359 {
360 "type": "GraphPort",
316 "ID": 57, 361 "ID": 57,
317 "element": 44, 362 "element": 44,
318 "properties": [ 363 "properties": [
319 { 364 {
365 "type": "GraphProperty",
320 "ID": 58, 366 "ID": 58,
321 "propertyName": "TypeOfPort", 367 "propertyName": "TypeOfPort",
322 "propertyValue": "dataComm", 368 "propertyValue": "dataComm",
323 "subProperties": [ 369 "subProperties": [
324 { 370 {
371 "type": "GraphProperty",
325 "ID": 59, 372 "ID": 59,
326 "propertyName": "TypeOfCommData", 373 "propertyName": "TypeOfCommData",
327 "propertyValue": "float", 374 "propertyValue": "float",
328 "subProperties": [] 375 "subProperties": []
329 } 376 }
334 } 381 }
335 ], 382 ],
336 "linkedElems": [], 383 "linkedElems": [],
337 "isAlreadyVisited": true 384 "isAlreadyVisited": true
338 } 385 }
339 end elem 386 separator
340 { 387 {
388 "type": "GraphElem",
341 "ID": 15, 389 "ID": 15,
342 "properties": [ 390 "properties": [
343 { 391 {
392 "type": "GraphProperty",
344 "ID": 16, 393 "ID": 16,
345 "propertyName": "TypeOfElement", 394 "propertyName": "TypeOfElement",
346 "propertyValue": "GabeReplacePattern", 395 "propertyValue": "GabeReplacePattern",
347 "subProperties": [] 396 "subProperties": []
348 }, 397 },
349 { 398 {
399 "type": "GraphProperty",
350 "ID": 17, 400 "ID": 17,
351 "propertyName": "TypeOfSyntacticStructure", 401 "propertyName": "TypeOfSyntacticStructure",
352 "propertyValue": "syntacticHierarchy", 402 "propertyValue": "syntacticHierarchy",
353 "subProperties": [] 403 "subProperties": []
354 } 404 }
358 "linkedElems": [ 408 "linkedElems": [
359 44 409 44
360 ], 410 ],
361 "isAlreadyVisited": true 411 "isAlreadyVisited": true
362 } 412 }
363 end elem 413 separator
364 { 414 {
415 "type": "GraphElem",
365 "ID": 1, 416 "ID": 1,
366 "properties": [ 417 "properties": [
367 { 418 {
419 "type": "GraphProperty",
368 "ID": 10, 420 "ID": 10,
369 "propertyName": "TypeOfElement", 421 "propertyName": "TypeOfElement",
370 "propertyValue": "GabeTransformRule", 422 "propertyValue": "GabeTransformRule",
371 "subProperties": [] 423 "subProperties": []
372 }, 424 },
373 { 425 {
426 "type": "GraphProperty",
374 "ID": 11, 427 "ID": 11,
375 "propertyName": "TypeOfSyntacticStructure", 428 "propertyName": "TypeOfSyntacticStructure",
376 "propertyValue": "syntacticHierarchy", 429 "propertyValue": "syntacticHierarchy",
377 "subProperties": [] 430 "subProperties": []
378 } 431 }
382 "linkedElems": [ 435 "linkedElems": [
383 12, 436 12,
384 15 437 15
385 ], 438 ],
386 "viewSet": { 439 "viewSet": {
440 "type": "ViewSet",
387 "ID": 4, 441 "ID": 4,
388 "syntaxElem": 1, 442 "syntaxElem": 1,
389 "rootViewBox": { 443 "rootViewBox": {
444 "type": "ViewBox",
390 "ID": 5, 445 "ID": 5,
391 "shape": "<svg width=\"68\" height=\"88\"><rect x=\"1\" y=\"1\" rx=\"20\" ry=\"20\" width=\"66\" height=\"86\" style=\"fill:none;stroke:red;stroke-width:2;opacity:1\" vector-effect=\"non-scaling-stroke\">", 446 "shape": "<svg width=\"68\" height=\"88\"><rect x=\"1\" y=\"1\" rx=\"20\" ry=\"20\" width=\"66\" height=\"86\" style=\"fill:none;stroke:red;stroke-width:2;opacity:1\" vector-effect=\"non-scaling-stroke\">",
392 "width": 1000, 447 "width": 1000,
393 "height": 700, 448 "height": 700,
394 "xOffset": 0, 449 "xOffset": 0,
395 "yOffset": 0, 450 "yOffset": 0,
396 "scale": 1, 451 "scale": 1,
397 "parent": 4, 452 "parent": 4,
398 "children": [ 453 "children": [
399 { 454 {
455 "type": "ViewBox",
400 "ID": 6, 456 "ID": 6,
401 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">properties</text> </svg>", 457 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">properties</text> </svg>",
402 "width": 49, 458 "width": 49,
403 "height": 14, 459 "height": 14,
404 "xOffset": 8, 460 "xOffset": 8,
411 "type": "key" 467 "type": "key"
412 } 468 }
413 ] 469 ]
414 }, 470 },
415 { 471 {
472 "type": "ViewBox",
416 "ID": 7, 473 "ID": 7,
417 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">portsIn</text> </svg>", 474 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">portsIn</text> </svg>",
418 "width": 33, 475 "width": 33,
419 "height": 14, 476 "height": 14,
420 "xOffset": 8, 477 "xOffset": 8,
427 "type": "key" 484 "type": "key"
428 } 485 }
429 ] 486 ]
430 }, 487 },
431 { 488 {
489 "type": "ViewBox",
432 "ID": 8, 490 "ID": 8,
433 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">portsOut</text> </svg>", 491 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">portsOut</text> </svg>",
434 "width": 42, 492 "width": 42,
435 "height": 14, 493 "height": 14,
436 "xOffset": 8, 494 "xOffset": 8,
443 "type": "key" 501 "type": "key"
444 } 502 }
445 ] 503 ]
446 }, 504 },
447 { 505 {
506 "type": "ViewBox",
448 "ID": 9, 507 "ID": 9,
449 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">linkedElems</text> </svg>", 508 "shape": "<svg> <text x=\"0\" y=\"9\" style=\"font-family: Arial; font-size: 11;fill:black;stroke:none\" id=\"svgText\">linkedElems</text> </svg>",
450 "width": 55, 509 "width": 55,
451 "height": 14, 510 "height": 14,
452 "xOffset": 8, 511 "xOffset": 8,
472 }, 531 },
473 "viewSetLinks": [] 532 "viewSetLinks": []
474 }, 533 },
475 "isAlreadyVisited": true 534 "isAlreadyVisited": true
476 } 535 }
477 end elem 536 separator