diff options
author | Munyoki Kilyungi | 2023-06-07 09:37:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-06-07 09:42:25 +0300 |
commit | 8801f6d57a9347a724cc7ed6e1b5ce9600782034 (patch) | |
tree | 268f17b997303fe0b9549648c5541fe584a5c04c | |
parent | 095d8bbbbc2c7c02508b2796085e203a95b135b6 (diff) | |
download | genenetwork3-8801f6d57a9347a724cc7ed6e1b5ce9600782034.tar.gz |
Remove trait_metadata endpoint
* gn3/api/metadata.py: Remove get_trait_metadata import.
(trait_metadata): Delete.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | gn3/api/metadata.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index aacc20b..b54f032 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -9,7 +9,6 @@ from flask import current_app from SPARQLWrapper import SPARQLWrapper from gn3.db.rdf import get_dataset_metadata -from gn3.db.rdf import get_trait_metadata from gn3.db.rdf import sparql_query from gn3.db.rdf import RDF_PREFIXES @@ -32,14 +31,9 @@ def dataset(name): return jsonify({}) -@metadata.route("/dataset/<dataset_name>/trait/<trait_name>", methods=["GET"]) -def trait_metadata(dataset_name, trait_name): - """Fetch a trait's metadata given the trait_name and dataset_name'""" try: return jsonify( - get_trait_metadata( SPARQLWrapper(current_app.config.get("SPARQL_ENDPOINT")), - trait_name, dataset_name ).data ) # The virtuoso server is misconfigured or it isn't running at all |