/[fenfire]/fenfire/docs/SwampTutorial.rst
ViewVC logotype

Diff of /fenfire/docs/SwampTutorial.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mudyc, Tue Apr 15 14:15:12 2003 UTC revision 1.2 by mudyc, Wed Apr 16 05:36:12 2003 UTC
# Line 3  Line 3 
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    
# Line 19  Literal Line 42  Literal
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?

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26