3 |
2003-04-15T15:53:31Z |
2003-04-15T15:53:31Z |
4 |
|
|
5 |
|
|
6 |
Literal |
How to set up Fen with swamps? |
7 |
------- |
------------------------------ |
8 |
|
|
9 |
|
For example: :: |
10 |
|
|
11 |
|
fen = new Fen(); |
12 |
|
fen.constgraph = fen.graph = new HashGraph(); |
13 |
|
fen.txt = new SimpleNodeContent(fen); |
14 |
|
|
15 |
|
|
16 |
|
Adding triplet in the Swamp? |
17 |
|
---------------------------- |
18 |
|
|
19 |
|
Adding triplet is easy, just: :: |
20 |
|
|
21 |
|
fen.graph.add(sub, pred, obj) |
22 |
|
|
23 |
|
If you want to add attribute (remove all other |
24 |
|
possibilities) you can use set1_11X instead: :: |
25 |
|
|
26 |
|
fen.graph.set1_11X(sub, pred, obj) |
27 |
|
|
28 |
|
|
29 |
|
Literals |
30 |
|
-------- |
31 |
|
|
32 |
:: |
:: |
33 |
|
|
42 |
New node |
New node |
43 |
-------- |
-------- |
44 |
|
|
45 |
Nodes.N() if URN-5 Namespace |
Use shortcut method Nodes.N() :: |
46 |
also N(Namespace..) |
|
47 |
|
Nodes.N() if URN-5 Namespace |
48 |
|
also N(Namespace..) |
49 |
|
|
50 |
or |
or :: |
51 |
|
|
52 |
Nodes.get(uri) |
Nodes.get(uri) |
53 |
|
|
54 |
|
|
55 |
How to make a triplet? |
How to make a triplet? |