Mercurial > code > home > repos > homeauto
diff service/mqtt_to_rdf/stmt_chunk.py @ 1652:dddfa09ea0b9
debug logging and comments
author | drewp@bigasterisk.com |
---|---|
date | Sun, 19 Sep 2021 13:19:20 -0700 |
parents | 20474ad4968e |
children | e7d594c065d4 |
line wrap: on
line diff
--- a/service/mqtt_to_rdf/stmt_chunk.py Sat Sep 18 23:57:20 2021 -0700 +++ b/service/mqtt_to_rdf/stmt_chunk.py Sun Sep 19 13:19:20 2021 -0700 @@ -58,7 +58,7 @@ def myMatches(self, g: 'ChunkedGraph') -> List['Chunk']: """Chunks from g where self, which may have BindableTerm wildcards, could match that chunk in g.""" out: List['Chunk'] = [] - log.debug(f'{self}.myMatches({g}') + log.debug(f'{INDENT*6} {self}.myMatches({g}') for ch in g.allChunks(): if self.matches(ch): out.append(ch) @@ -113,7 +113,7 @@ class ChunkedGraph: """a Graph converts 1-to-1 with a ChunkedGraph, where the Chunks have - combined some statements together. (The only excpetion is that bnodes for + combined some statements together. (The only exception is that bnodes for rdf lists are lost)""" def __init__(