1 |
#(c): Matti Katila |
#(c): Matti Katila |
2 |
|
|
3 |
from org.fenfire.modules.pp import * |
from org.fenfire.modules.pp import * |
4 |
|
from org.fenfire.vocab import PP |
5 |
import org.fenfire.view.buoy |
import org.fenfire.view.buoy |
6 |
from org.fenfire.util import URN5Namespace, Pair |
from org.fenfire.util import URN5Namespace, Pair |
7 |
from org.nongnu.libvob.buoy import BuoyViewNodeType,\ |
from org.nongnu.libvob.buoy import BuoyViewNodeType,\ |
12 |
|
|
13 |
|
|
14 |
def setUp(): |
def setUp(): |
15 |
global model, PP |
global model |
16 |
model = jena.mem.ModelMem() |
model = jena.mem.ModelMem() |
|
PP = PPVocab() |
|
17 |
|
|
18 |
global uriA, uriB |
global uriA, uriB |
19 |
global nodeA, nodeB |
global nodeA, nodeB |
24 |
nodeB = model.createResource(uriB) |
nodeB = model.createResource(uriB) |
25 |
|
|
26 |
# assoc |
# assoc |
27 |
nodeA.addProperty(PP.Association, nodeB) |
nodeA.addProperty(PP.association, nodeB) |
28 |
|
|
29 |
global ppLinker |
global ppLinker |
30 |
ppLinker = PPLinker(model, PP) |
ppLinker = PPLinker(model) |
31 |
|
|
32 |
class NodeType(BuoyViewNodeType): |
class NodeType(BuoyViewNodeType): |
33 |
def getSizde(self, linkId, anchor, wh): |
def getSizde(self, linkId, anchor, wh): |