7 |
public class Fen { |
public class Fen { |
8 |
/** The RDF model of the graph structure part of this fen. |
/** The RDF model of the graph structure part of this fen. |
9 |
*/ |
*/ |
10 |
public com.hp.hpl.mesa.rdf.jena.model.Model model; |
public org.fenfire.swamp.Graph graph; |
11 |
|
|
12 |
|
/** The RDF model of the graph structure part of this fen. |
13 |
|
*/ |
14 |
|
public org.fenfire.swamp.ConstGraph constgraph; |
15 |
|
|
16 |
/** The object managing the enfilade content for nodes. |
/** The object managing the enfilade content for nodes. |
17 |
*/ |
*/ |
21 |
*/ |
*/ |
22 |
public org.fenfire.index.Index enfiladeOverlap; |
public org.fenfire.index.Index enfiladeOverlap; |
23 |
|
|
24 |
|
/** For use with recursed Fens: indicate |
25 |
|
* that this Fen will not be used again |
26 |
|
* and may be recycled. |
27 |
|
*/ |
28 |
|
public void close() { |
29 |
|
txt._close(); |
30 |
|
constgraph.close(); |
31 |
|
} |
32 |
|
|
33 |
|
/** Obtain a new Fen which observes. |
34 |
|
* if the result of one of the methods |
35 |
|
* that were called for the returned Fen changes |
36 |
|
* through a structure change (i.e. a find() was |
37 |
|
* done and one of the found objects is removed |
38 |
|
* or an extra one is added), then Obs will be called. |
39 |
|
* Null may be returned if the current Fen is not observable. |
40 |
|
*/ |
41 |
|
Fen getObserved(Obs o) { |
42 |
|
Fen n = new Fen(); |
43 |
|
n.constgraph = n.graph = graph.getObservedGraph(o); |
44 |
|
n.txt = txt._getObserved(n, o); |
45 |
|
return n; |
46 |
|
} |
47 |
|
|
48 |
/** The set of xanadu links in use with this Fen. |
/** The set of xanadu links in use with this Fen. |
49 |
*/ |
*/ |
50 |
// public XuIndexer xuLinks; |
// public XuIndexer xuLinks; |