Skip to content

Commit

Permalink
[src] fix queries as dict
Browse files Browse the repository at this point in the history
  • Loading branch information
majidaldo committed Feb 21, 2025
1 parent 8851306 commit 30b83eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bim2rdf/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ def query(*, db: Path|Store|str=Path('db'), query: str|Path,
query = Path(query).read_text()
else:
assert(isinstance(query, str))
assert(query in (queries))
query = getattr(queries, query)
query = queries[query]
assert('construct' in query.lower() )
query = str(SPARQLQuery(query))
if isinstance(db, (Path,str)):
Expand Down

0 comments on commit 30b83eb

Please sign in to comment.