aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/triple_store
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-03-02 16:46:11 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-03-02 16:46:11 +0100
commit2c6c23f85e7f2123c508f9ff8a4aa776948bb589 (patch)
treec343b8aa7ae1d148ae317c406df6fe85747bd99a /bsfs/triple_store
parent6b9379d75198082054c35e44bc2cd880353a7485 (diff)
downloadbsfs-2c6c23f85e7f2123c508f9ff8a4aa776948bb589.tar.gz
bsfs-2c6c23f85e7f2123c508f9ff8a4aa776948bb589.tar.bz2
bsfs-2c6c23f85e7f2123c508f9ff8a4aa776948bb589.zip
minor style fixes
Diffstat (limited to 'bsfs/triple_store')
-rw-r--r--bsfs/triple_store/sparql/parse_filter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsfs/triple_store/sparql/parse_filter.py b/bsfs/triple_store/sparql/parse_filter.py
index bf19a02..2f5a25b 100644
--- a/bsfs/triple_store/sparql/parse_filter.py
+++ b/bsfs/triple_store/sparql/parse_filter.py
@@ -151,16 +151,16 @@ class Filter():
raise errors.BackendError(f'the range of predicate {pred} is undefined')
dom, rng = pred.domain, pred.range
# encapsulate predicate uri
- puri = f'<{puri}>' # type: ignore [assignment] # variable re-use confuses mypy
+ uri_str = f'<{puri}>'
# apply reverse flag
if node.reverse:
- puri = '^' + puri
+ uri_str = '^' + uri_str
dom, rng = rng, dom # type: ignore [assignment] # variable re-use confuses mypy
# check path consistency
if not node_type <= dom:
raise errors.ConsistencyError(f'expected type {dom} or subtype thereof, found {node_type}')
# return predicate URI and next node type
- return puri, rng
+ return uri_str, rng
def _any(self, node_type: bsc.Vertex, node: ast.filter.Any, head: str) -> str:
"""