aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-04-17 14:30:13 +0300
committerBonfaceKilz2024-04-30 12:18:58 +0300
commitf389570cc325a712883b8895d3f3568ba766d55e (patch)
tree15a188044d430101a51bb478a45479a23d0d637b /gn3/api
parent20fc20b76b71e570691b70ef32e7028530760788 (diff)
downloadgenenetwork3-f389570cc325a712883b8895d3f3568ba766d55e.tar.gz
Rename retrieve_dataset_metadata to retrieve_metadata.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/metadata.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 7334abb..fe7e903 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -6,7 +6,8 @@ from flask import Blueprint
from flask import request
from flask import current_app
-from gn3.db.datasets import retrieve_dataset_metadata
+from gn3.db.datasets import (retrieve_metadata,
+ save_dataset_metadata)
from gn3.db.rdf import RDF_PREFIXES
from gn3.db.rdf import (query_frame_and_compact,
query_and_compact,
@@ -197,7 +198,7 @@ CONSTRUCT {
_query, _context,
current_app.config.get("SPARQL_ENDPOINT")
)
- return __result | retrieve_dataset_metadata(
+ return __result | retrieve_metadata(
(Path(
current_app.config.get("DATA_DIR")
) / "gn-docs/general/datasets" /