12 |
fen.constgraph = fen.graph = new HashGraph(); |
fen.constgraph = fen.graph = new HashGraph(); |
13 |
fen.txt = new SimpleNodeContent(fen); |
fen.txt = new SimpleNodeContent(fen); |
14 |
|
|
15 |
|
Or for speed you probably want caching: :: |
16 |
|
|
17 |
|
fen.txt = new CachingNodeContent(new SimpleNodeContent(fen)); |
18 |
|
|
19 |
Adding triplet in the Swamp? |
Adding triplet in the Swamp? |
20 |
---------------------------- |
---------------------------- |
34 |
|
|
35 |
:: |
:: |
36 |
|
|
37 |
< mudyc> hmm.. so how literal is done? |
< mudyc> hmm.. so how literal is done? |
38 |
< mudyc> like the coords of a note? |
< mudyc> like the coords of a note? |
39 |
<@tuomasl2> graph.add(foo,bar, Nodes.getStringLiteral(""+42)) |
<@tuomasl2> graph.add(foo,bar, Nodes.getStringLiteral(""+42)) |
40 |
< mudyc> and other direction? |
< mudyc> and other direction? |
41 |
<@tuomasl2> x = graph.find1_11X(foo,bar) |
<@tuomasl2> x = graph.find1_11X(foo,bar) |
42 |
<@tuomasl2> ((Literal)x).getTextString() |
<@tuomasl2> ((Literal)x).getTextString() |
43 |
|
|
44 |
|
|
45 |
New node |
New node |
58 |
How to make a triplet? |
How to make a triplet? |
59 |
---------------------- |
---------------------- |
60 |
|
|
61 |
13:01 < mudyc> tuomasl2: how do i do a new triplet? |
:: |
62 |
13:02 <@tuomasl2> mudyc: if the last element is unique, set1_11X |
|
63 |
|
< mudyc> tuomasl2: how do i do a new triplet? |
64 |
|
<@tuomasl2> mudyc: if the last element is unique, set1_11X |
65 |
|
|
66 |
|
otherwise you should use graph.add method: :: |
67 |
|
|
68 |
|
fen.graph.add(sub, pred, onj); |
69 |
|
|
70 |
|
|
71 |
Find nodes |
Find nodes |
72 |
---------- |
---------- |
73 |
|
|
74 |
14:46 < mudyc> after this: Iterator findN_11X_Iter(Object e0,Object e1) ; what does the iterator |
:: |
75 |
return after iter.next()? |
|
76 |
14:47 < mudyc> Triplet? |
< mudyc> after this: Iterator findN_11X_Iter(Object e0,Object e1) ; what does the iterator |
77 |
14:48 <@tuomasl2> no, no Triplet objects here yet |
return after iter.next()? |
78 |
14:48 <@tuomasl2> it returns e2 |
< mudyc> Triplet? |
79 |
|
<@tuomasl2> no, no Triplet objects here yet |
80 |
|
<@tuomasl2> it returns e2 |
81 |
|
|