def __init__(self): StoreIO.__init__(self) def toRelativeURL(path): import sys from os.path import join, dirname from urllib import pathname2url libDir = dirname(sys.modules["redfoot.rednode"].__file__) return pathname2url(join(libDir, path)) self.local = Local() # local only self.neighbours = Neighbourhood() # neighbours only self.neighbourhood = MultiStore() # local plus neighbours self.neighbourhood.addStore(self.local) self.neighbourhood.addStore(self.neighbours) self.connectTo(toRelativeURL("rdfSchema.rdf"), "http://www.w3.org/2000/01/rdf-schema") self.connectTo(toRelativeURL("rdfSyntax.rdf"), "http://www.w3.org/1999/02/22-rdf-syntax-ns") self.connectTo(toRelativeURL("builtin.rdf"), "http://redfoot.sourceforge.net/2000/10/06/builtin")
def __init__(self): StoreIO.__init__(self) self.stores = {}