2 |
|
|
3 |
from org.fenfire.modules.pp import * |
from org.fenfire.modules.pp import * |
4 |
from org.fenfire.vocab import PP |
from org.fenfire.vocab import PP |
5 |
|
from org.fenfire.impl import ModularSpace, SimpleVStreamTexter |
6 |
import org.fenfire.view.buoy |
import org.fenfire.view.buoy |
7 |
from org.fenfire.util import URN5Namespace, Pair |
from org.fenfire.util import URN5Namespace, Pair |
8 |
from org.nongnu.libvob.buoy import BuoyViewNodeType,\ |
from org.nongnu.libvob.buoy import BuoyViewNodeType,\ |
9 |
BuoyLinkListener |
BuoyLinkListener |
10 |
|
from org.nongnu.alph import impl |
11 |
from com.hp.hpl.mesa.rdf import jena |
from com.hp.hpl.mesa.rdf import jena |
12 |
|
|
13 |
from org.fenfire.test.gfx import getvs |
from org.fenfire.test.gfx import getvs |
14 |
|
|
15 |
|
|
16 |
def setUp(): |
def setUp(): |
17 |
global model |
global model, space |
18 |
model = jena.mem.ModelMem() |
model = jena.mem.ModelMem() |
19 |
|
space = ModularSpace(SimpleVStreamTexter( |
20 |
|
impl.FakeSpanMaker(), |
21 |
|
impl.Enfilade1DImpl.Enfilade1DImplMaker()), |
22 |
|
model) |
23 |
|
|
24 |
global uriA, uriB |
global uriA, uriB |
25 |
global nodeA, nodeB |
global nodeA, nodeB |
33 |
nodeA.addProperty(PP.association, nodeB) |
nodeA.addProperty(PP.association, nodeB) |
34 |
|
|
35 |
global ppLinker |
global ppLinker |
36 |
ppLinker = PPLinker(model) |
ppLinker = PPLinker(space) |
37 |
|
|
38 |
class NodeType(BuoyViewNodeType): |
class NodeType(BuoyViewNodeType): |
39 |
def getSizde(self, linkId, anchor, wh): |
def getSizde(self, linkId, anchor, wh): |