about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-26 13:09:54 +0300
committerBonfaceKilz2024-08-26 15:35:33 +0300
commit301a7a3de96cee0afb5e1c1a9d82c412da5658bc (patch)
tree2fd9c5ab4e198fb866a1d0280d657200045dfdf8
parent12f8be8cda5e877dcd17ea6defea94daf1cb76e1 (diff)
downloadgenenetwork3-301a7a3de96cee0afb5e1c1a9d82c412da5658bc.tar.gz
Fix pylint errors.
* gn3/api/metadata.py: Remove duplicate imports.
* gn3/db/constants.py: Add docstring.
* gn3/db/rdf.py (get_wiki_entries_by_symbol): Remove duplicate
dictionary key.

Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/api/metadata.py3
-rw-r--r--gn3/db/constants.py3
-rw-r--r--gn3/db/rdf.py1
3 files changed, 4 insertions, 3 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index f51616e..4ce32e0 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -16,13 +16,12 @@ from gn3.auth.authorisation.errors import AuthorisationError
 from gn3.db.datasets import (retrieve_metadata,
                              save_metadata,
                              get_history)
-from gn3.db.rdf import RDF_PREFIXES
 from gn3.db.rdf import (query_frame_and_compact,
                         query_and_compact,
                         get_wiki_entries_by_symbol)
 from gn3.db.constants import (
     RDF_PREFIXES, BASE_CONTEXT,
-    DATASET_CONTEXT, SEARCH_CONTEXT,
+    DATASET_CONTEXT,
     DATASET_SEARCH_CONTEXT, PUBLICATION_CONTEXT,
     PHENOTYPE_CONTEXT
 )
diff --git a/gn3/db/constants.py b/gn3/db/constants.py
index 231dc8b..a8c9dc7 100644
--- a/gn3/db/constants.py
+++ b/gn3/db/constants.py
@@ -1,3 +1,6 @@
+"""
+This module contains some constants used in other modules.
+"""
 PREFIXES = {
     "dcat": "http://www.w3.org/ns/dcat#",
     "dct": "http://purl.org/dc/terms/",
diff --git a/gn3/db/rdf.py b/gn3/db/rdf.py
index 4fd47cb..e7942be 100644
--- a/gn3/db/rdf.py
+++ b/gn3/db/rdf.py
@@ -87,7 +87,6 @@ CONSTRUCT {
         "reason": "gnt:reason",
         "species": "gnt:species",
         "pubmed_id": "dct:references",
-        "web_url": "foaf:homepage",
         "email": "foaf:mbox",
         "initial": "gnt:initial",
         "comment": "rdfs:comment"