aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api')
-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