aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-29 22:32:35 +0300
committerBonfaceKilz2024-09-05 16:39:14 +0300
commitea1880d48734b271172497fc205ba7f28706ba2a (patch)
tree10772578bf996c6746d7ac86010c7702e8dd68e9 /gn3/api
parent1cb8b2c3b242522461f7db98008a9e7e882bee9a (diff)
downloadgenenetwork3-ea1880d48734b271172497fc205ba7f28706ba2a.tar.gz
Restructure RDF module.
* gn3/api/metadata.py: Import constants from gn3.db.rdf * gn3/api/metadata_api/wiki.py: Ditto. Import "get_wiki_entries_by_symbol" from gn3.db.rdf.wiki. * gn3/db/constants.py: Delete file and move all constants ... * gn3/db/rdf.py: ... and functions ... * gn3/db/rdf/__init__.py: ... here. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/metadata.py2
-rw-r--r--gn3/api/metadata_api/wiki.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 3f28f5d..6110880 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -15,7 +15,7 @@ from gn3.db.datasets import (retrieve_metadata,
get_history)
from gn3.db.rdf import (query_frame_and_compact,
query_and_compact)
-from gn3.db.constants import (
+from gn3.db.rdf import (
RDF_PREFIXES, BASE_CONTEXT,
DATASET_CONTEXT,
DATASET_SEARCH_CONTEXT, PUBLICATION_CONTEXT,
diff --git a/gn3/api/metadata_api/wiki.py b/gn3/api/metadata_api/wiki.py
index a4abef6..b9942a0 100644
--- a/gn3/api/metadata_api/wiki.py
+++ b/gn3/api/metadata_api/wiki.py
@@ -5,8 +5,8 @@ from typing import Any, Dict
from flask import Blueprint, request, jsonify, current_app, make_response
from gn3 import db_utils
from gn3.db import wiki
-from gn3.db.rdf import (query_frame_and_compact,
- get_wiki_entries_by_symbol)
+from gn3.db.rdf import query_frame_and_compact
+from gn3.db.rdf.wiki import get_wiki_entries_by_symbol
wiki_blueprint = Blueprint("wiki", __name__, url_prefix="wiki")