aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-06-07 09:37:01 +0300
committerBonfaceKilz2023-06-07 09:42:25 +0300
commit8801f6d57a9347a724cc7ed6e1b5ce9600782034 (patch)
tree268f17b997303fe0b9549648c5541fe584a5c04c /gn3
parent095d8bbbbc2c7c02508b2796085e203a95b135b6 (diff)
downloadgenenetwork3-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>
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/metadata.py6
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