From 8801f6d57a9347a724cc7ed6e1b5ce9600782034 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 7 Jun 2023 09:37:01 +0300 Subject: Remove trait_metadata endpoint * gn3/api/metadata.py: Remove get_trait_metadata import. (trait_metadata): Delete. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gn3') 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//trait/", 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 -- cgit v1.2.3