diff options
author | Munyoki Kilyungi | 2023-10-27 16:25:53 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-10-27 16:55:16 +0300 |
commit | d0f70afe4f73605a97ddc65b097a04bd26caa5cf (patch) | |
tree | 873a2d5045c24107bfe4867b74cebb24a0fb5463 | |
parent | f77389c5878b2d90028977c91d23dc16db117c46 (diff) | |
download | genenetwork3-d0f70afe4f73605a97ddc65b097a04bd26caa5cf.tar.gz |
Fix pylint error.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | gn3/api/metadata.py | 2 | ||||
-rw-r--r-- | gn3/db/rdf.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 33231a1..e1c4b10 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -891,7 +891,7 @@ CONSTRUCT { def fetch_group_by_species(name): """Fetch the list of groups (I.e. Inbredsets)""" try: - _query=Template(""" + _query = Template(""" $prefix CONSTRUCT { diff --git a/gn3/db/rdf.py b/gn3/db/rdf.py index ae6b0f2..eb4014a 100644 --- a/gn3/db/rdf.py +++ b/gn3/db/rdf.py @@ -40,7 +40,8 @@ RDF_PREFIXES = "\n".join([f"PREFIX {key}: <{value}>" def sparql_construct_query(query: str, endpoint: str) -> dict: - """Query virtuoso using a CONSTRUCT query and return a json-ld dictionary""" + """Query virtuoso using a CONSTRUCT query and return a json-ld + dictionary""" sparql = SPARQLWrapper(endpoint) sparql.setQuery(query) results = sparql.queryAndConvert() |