|
160 | 160 | var cell = new aclass({
|
161 | 161 | source: { id: source.id },
|
162 | 162 | target: { id: target.id },
|
163 |
| - labels: [{ position: .5, attrs: { text: { text: label || '', 'font-weight': 'bold' } } }], |
164 | 163 |
|
165 | 164 | router: {
|
166 | 165 | name: 'manhattan',
|
|
175 | 174 | return cell;
|
176 | 175 | };
|
177 | 176 |
|
178 |
| -var root = instance('root:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
179 | 177 | var alocation = instance('alocation:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>, <a xlink:href="http://binary-array-ld.net/latest/Reference" xlink:show=new text-decoration="underline">bald__Reference</a>', ['<a xlink:href="http://binary-array-ld.net/latest/references" xlink:show=new text-decoration="underline">bald__references</a>: |', '<a xlink:href="http://binary-array-ld.net/latest/array" xlink:show=new text-decoration="underline">bald__array</a>: |', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: 11, 17'], '#878800');
|
180 |
| -var data = instance('data:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>', ['<a xlink:href="http://binary-array-ld.net/latest/references" xlink:show=new text-decoration="underline">bald__references</a>: |', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: 11, 17'], '#878800'); |
181 |
| -var discovery = instance('discovery:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
182 | 178 | var anotherpair = instance('anotherpair:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>, <a xlink:href="http://binary-array-ld.net/latest/Reference" xlink:show=new text-decoration="underline">bald__Reference</a>', ['<a xlink:href="http://binary-array-ld.net/latest/array" xlink:show=new text-decoration="underline">bald__array</a>: |', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: 2'], '#878800');
|
183 | 179 | var apair = instance('apair:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>', ['<a xlink:href="http://binary-array-ld.net/latest/references" xlink:show=new text-decoration="underline">bald__references</a>: |', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: 2'], '#878800');
|
184 |
| -var source = instance('source:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
| 180 | +var data = instance('data:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>', ['<a xlink:href="http://binary-array-ld.net/latest/references" xlink:show=new text-decoration="underline">bald__references</a>: |', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: 11, 17'], '#878800'); |
| 181 | +var discovery = instance('discovery:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
185 | 182 | var institution = instance('institution:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>', ['<a xlink:href="http://www.w3.org/2004/02/skos/core#prefLabel" xlink:show=new text-decoration="underline">skos__prefLabel</a>: a quality establishment', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: |'], '#878800');
|
186 |
| -var referencing = instance('referencing:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
187 | 183 | var locref = instance('locref:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>', ['<a xlink:href="http://www.w3.org/2004/02/skos/core#prefLabel" xlink:show=new text-decoration="underline">skos__prefLabel</a>: for locational purposes', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: |'], '#878800');
|
188 | 184 | var locref2 = instance('locref2:<a xlink:href="http://binary-array-ld.net/latest/Array" xlink:show=new text-decoration="underline">bald__Array</a>', ['<a xlink:href="http://www.w3.org/2004/02/skos/core#prefLabel" xlink:show=new text-decoration="underline">skos__prefLabel</a>: for more locational purposes', '<a xlink:href="http://binary-array-ld.net/latest/shape" xlink:show=new text-decoration="underline">bald__shape</a>: |'], '#878800');
|
189 |
| -link(alocation, locref2, 'bald__references'); |
190 |
| -link(alocation, locref, 'bald__references'); |
| 185 | +var referencing = instance('referencing:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
| 186 | +var root = instance('root:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
| 187 | +var source = instance('source:<a xlink:href="http://binary-array-ld.net/latest/Container" xlink:show=new text-decoration="underline">bald__Container</a>', ['<a xlink:href="http://binary-array-ld.net/latest/contains" xlink:show=new text-decoration="underline">bald__contains</a>: |'], '#878800'); |
191 | 188 | link(alocation, alocation, 'bald__array', 'bottom');
|
192 |
| -link(root, alocation, 'bald__contains', 'top', true); |
193 |
| -link(data, alocation, 'bald__references'); |
194 |
| -link(root, data, 'bald__contains', 'top', true); |
| 189 | +link(alocation, locref, 'bald__references'); |
| 190 | +link(alocation, locref2, 'bald__references'); |
195 | 191 | link(anotherpair, anotherpair, 'bald__array', 'bottom');
|
196 |
| -link(discovery, anotherpair, 'bald__contains', 'top', true); |
197 | 192 | link(apair, anotherpair, 'bald__references');
|
| 193 | +link(data, alocation, 'bald__references'); |
| 194 | +link(discovery, anotherpair, 'bald__contains', 'top', true); |
198 | 195 | link(discovery, apair, 'bald__contains', 'top', true);
|
199 |
| -link(source, institution, 'bald__contains', 'top', true); |
200 | 196 | link(discovery, source, 'bald__contains', 'top', true);
|
201 |
| -link(root, discovery, 'bald__contains', 'top', true); |
202 | 197 | link(referencing, locref, 'bald__contains', 'top', true);
|
203 | 198 | link(referencing, locref2, 'bald__contains', 'top', true);
|
| 199 | +link(root, alocation, 'bald__contains', 'top', true); |
| 200 | +link(root, data, 'bald__contains', 'top', true); |
| 201 | +link(root, discovery, 'bald__contains', 'top', true); |
204 | 202 | link(root, referencing, 'bald__contains', 'top', true);
|
| 203 | +link(source, institution, 'bald__contains', 'top', true); |
205 | 204 | joint.layout.DirectedGraph.layout(graph, { setLinkVertices: false,
|
206 | 205 | nodeSep: 150, rankSep: 100,
|
207 | 206 | marginX: 100, marginY: 100,
|
|
0 commit comments