Mercurial > code > home > repos > light9
comparison bin/subcomposer @ 929:c20c2eea6fce
another hack to stop graphfile from thinking its own new empty file means it should delete all the statements in that context
Ignore-this: 94639afbbe8d3a0abd8a06e16922394f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 11 Jun 2013 20:25:02 +0000 |
parents | dcab422615ca |
children | 92c6e4b6cabb |
comparison
equal
deleted
inserted
replaced
928:d9fd4725c453 | 929:c20c2eea6fce |
---|---|
143 return u | 143 return u |
144 delQuads = self.currentSub().allQuads() | 144 delQuads = self.currentSub().allQuads() |
145 addQuads = [(repl(s), p, repl(o), newUri) for s,p,o,c in delQuads] | 145 addQuads = [(repl(s), p, repl(o), newUri) for s,p,o,c in delQuads] |
146 # patch can't span contexts yet | 146 # patch can't span contexts yet |
147 self.graph.patch(Patch(addQuads=addQuads, delQuads=[])) | 147 self.graph.patch(Patch(addQuads=addQuads, delQuads=[])) |
148 #self.graph.patch(Patch(addQuads=[], delQuads=delQuads)) | 148 self.graph.patch(Patch(addQuads=[], delQuads=delQuads)) |
149 | 149 |
150 | 150 |
151 def setupSubChoiceLinks(self): | 151 def setupSubChoiceLinks(self): |
152 graph = self.graph | 152 graph = self.graph |
153 def ann(): | 153 def ann(): |