Example #1
0
    def setUp(self):
        """all tests should return self.done"""
        logging.basicConfig(level=logging.INFO)

        try:
            os.remove("new.nt")
        except OSError:
            pass

        self.graph = Graph2(shared.localGraph(), initNs={'exp': EXP})
        self.sync = SyncImport(self.graph, pollSeconds=.5)
        self.stmt1 = (EXP['dp'], EXP['name'], Literal("Drew"))

        self.done = defer.Deferred()
Example #2
0
    def setUp(self):
        """all tests should return self.done"""
        logging.basicConfig(level=logging.INFO)

        try:
            os.remove("new.nt")
        except OSError:
            pass
        
        self.graph = Graph2(shared.localGraph(), initNs={'exp' : EXP})
        self.sync = SyncImport(self.graph, pollSeconds=.5)
        self.stmt1 = (EXP['dp'], EXP['name'], Literal("Drew"))

        self.done = defer.Deferred()
Example #3
0
 def setUp(self):
     self.graph = Graph2(shared.localGraph(), initNs={'exp': EXP, '': EXP})
Example #4
0
 def setUp(self):
     self.graph = Graph2(shared.localGraph(), initNs={'exp' : EXP, '' : EXP})
Example #5
0
 def setUp(self):
     localGraph = Graph2(shared.localGraph(), initNs={'exp': EXP, '': EXP})
     self.listen = reactor.listenTCP(
         9991, twisted.web.server.Site(SPARQLResource(localGraph)))
     self.graph = RemoteGraph(serverUrl="http://localhost:9991/",
                              resultFormat='xml')
Example #6
0
 def setUp(self):
     localGraph = Graph2(shared.localGraph(), initNs={'exp': EXP, '': EXP})
     self.graph = RemoteGraph(graph=localGraph)
Example #7
0
 def setUp(self):
     localGraph = Graph2(shared.localGraph(), initNs={'exp' : EXP, '' : EXP})
     self.listen = reactor.listenTCP(9991,
                  twisted.web.server.Site(SPARQLResource(localGraph)))
     self.graph = RemoteGraph(serverUrl="http://localhost:9991/",
                              resultFormat='xml')
Example #8
0
 def setUp(self):
     localGraph = Graph2(shared.localGraph(), initNs={'exp' : EXP, '' : EXP})
     self.graph = RemoteGraph(graph=localGraph)