Mercurial > code > home > repos > homeauto
comparison service/mqtt_to_rdf/stmt_chunk.py @ 1677:aa35ae7a1acc
add new bug test (no fix yet)
author | drewp@bigasterisk.com |
---|---|
date | Wed, 22 Sep 2021 01:22:05 -0700 |
parents | 80f4e741ca4f |
children | 73abfd4cf5d0 |
comparison
equal
deleted
inserted
replaced
1676:e6d28e6d47b2 | 1677:aa35ae7a1acc |
---|---|
116 except Inconsistent: | 116 except Inconsistent: |
117 continue | 117 continue |
118 yield aligned | 118 yield aligned |
119 | 119 |
120 def __repr__(self): | 120 def __repr__(self): |
121 pre = ('+'.join('%s' % elem for elem in self.subjList) + '+' if self.subjList else '') | 121 pre = ('+'.join(repr(elem) for elem in self.subjList) + '+' if self.subjList else '') |
122 post = ('+' + '+'.join('%s' % elem for elem in self.objList) if self.objList else '') | 122 post = ('+' + '+'.join(repr(elem) for elem in self.objList) if self.objList else '') |
123 return pre + repr(self.primary) + post | 123 return pre + repr(self.primary) + post |
124 | 124 |
125 def isFunctionCall(self, functionsFor) -> bool: | 125 def isFunctionCall(self, functionsFor) -> bool: |
126 return bool(list(functionsFor(cast(URIRef, self.predicate)))) | 126 return bool(list(functionsFor(cast(URIRef, self.predicate)))) |
127 | 127 |