-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexampleData2.js
146 lines (135 loc) · 3.1 KB
/
exampleData2.js
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
export const globalDefaultsJSON = {
graph: {},
node: {
presets: {
"data-preset": {
vgroup: "vgroup1",
shape: "cylinder"
}
},
stroke: "darkgray",
fill: "lightyellow",
fontsize: 10,
strokeWidth: 0.2,
},
edge: {
presets: {
"data-preset": {
animation: "default",
markerEnd: {type: "arrowclosed", size: 25},
strokeDasharray: "varied"
},
"double-ended": {
markerStart: {
type: "arrowclosed"
},
markerEnd: {
type: "arrowclosed"
}
}
}
}
};
export const nodesJSON = [
{
preset: "data-preset",
label: 'CSV',
position: {y: -85},
},
{
preset: "data-preset",
label: 'JSON'
},
{
preset: "data-preset",
label: 'XML'
},
{
preset: "data-preset",
label: 'MySQL'
},
{
preset: "data-preset",
label: 'API',
shape: "circle"
},
{
id: 'RML',
label: 'RML\nStreamer',
shape: "8-star",
width: 70,
height: 70,
position: {x: 200, y: 55}
},
{label: 'RDF', shape: "cylinder", position: {x: 400, y: 65}},
{id: 'SPARQL-END', label: 'SPARQL\nEndpoint', shape: "square", position: {x: 450, y: 65}},
{id: "rmlio", label: "rml.io", shape: "note", position: {x: 210, y: 200}},
{shape: "comunica", position: {x: 600, y: 65},},
{label: "SPARQL", shape: "note", position: {x: 600, y: 200}},
{
id: "note1",
label: "The RML Streamer\nstreaminly converts\nthe data from the\nheterogeneous sources",
width: 110,
height: 110,
shape: "note",
position: {x: 100, y: -100}
},
{
id: "note3",
label: "Comunica queries the\nSPARQL endpoint:\nSPARQL query\ngoes in,\nresults come out",
width: 110,
height: 110,
shape: "note",
position: {x: 500, y: -60}
}
];
export const edgesJSON = [
{
source: 'CSV',
target: 'RDF',
preset: "data-preset"
},
{
source: 'JSON',
target: 'RDF',
preset: "data-preset"
},
{
source: 'XML',
target: 'RDF',
preset: "data-preset"
},
{
source: 'MySQL',
target: 'RDF',
preset: "data-preset"
},
{
source: 'API',
target: 'RDF',
preset: "data-preset"
},
{
source: "RML",
target: "rmlio",
type: "straight",
sourceHandle: "bottom",
targetHandle: "top",
strokeDasharray: 3,
},
{
source: "SPARQL-END",
target: "comunica",
type: "straight",
preset: "double-ended"
},
{
id: "Comunica to SPARQL",
source: "comunica",
target: "SPARQL",
type: "straight",
sourceHandle: "bottom",
targetHandle: "top",
strokeDasharray: 3,
}
];