Mercurial > code > home > repos > homeauto
comparison service/piNode/piNode.py @ 1074:069fa84d92eb
it's working
Ignore-this: f0740bb71bb37767ae5270edda20909d
darcs-hash:f8a884627fe2edacd307d960ff91903e0e40664e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 14 Apr 2016 00:16:07 -0700 |
parents | 295d20307b81 |
children | e7a30f72536a |
comparison
equal
deleted
inserted
replaced
1073:054fccde9a49 | 1074:069fa84d92eb |
---|---|
56 log.info('read config') | 56 log.info('read config') |
57 for f in os.listdir('config'): | 57 for f in os.listdir('config'): |
58 if f.startswith('.'): continue | 58 if f.startswith('.'): continue |
59 self.graph.parse('config/%s' % f, format='n3') | 59 self.graph.parse('config/%s' % f, format='n3') |
60 log.info(' parsed %s', f) | 60 log.info(' parsed %s', f) |
61 self.graph.bind('', ROOM) # not working | 61 self.graph.bind('', ROOM) |
62 self.graph.bind('rdf', RDF) | 62 self.graph.bind('rdf', RDF) |
63 # config graph is too noisy; maybe make it a separate resource | 63 # config graph is too noisy; maybe make it a separate resource |
64 #masterGraph.patch(Patch(addGraph=self.graph)) | 64 #masterGraph.patch(Patch(addGraph=self.graph)) |
65 | 65 |
66 class Board(object): | 66 class Board(object): |