Skip to content

Commit

Permalink
use single line for variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
prohde committed Aug 31, 2023
1 parent d299f7c commit 5d9d20c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions FedSDM/rdfmtmgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,10 +785,7 @@ def get_graph_stat(graph: str = None, source: str = None) -> list:
"""
mdb = get_mdb()
if source is None:
source = '?name'
else:
source = '"' + source + '"'
source = '"' + source + '"' if source is not None else '?name'
if graph is not None:
query = 'SELECT DISTINCT ?subject ?target WHERE { GRAPH <' + graph + '> {\n' \
' ?subject a mt:RDFMT .\n' \
Expand Down

0 comments on commit 5d9d20c

Please sign in to comment.