From 301a7a3de96cee0afb5e1c1a9d82c412da5658bc Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 26 Aug 2024 13:09:54 +0300 Subject: 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 --- gn3/api/metadata.py | 3 +-- gn3/db/constants.py | 3 +++ gn3/db/rdf.py | 1 - 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" -- cgit 1.4.1