From f389570cc325a712883b8895d3f3568ba766d55e Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 17 Apr 2024 14:30:13 +0300 Subject: Rename retrieve_dataset_metadata to retrieve_metadata. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gn3/api') 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" / -- cgit v1.2.3