From ffb6ce44e8271270f45e703e00b72cb1a508cb6f Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 24 Oct 2023 12:43:35 +0300 Subject: Add extra prefixes to the context. * gn3/api/metadata.py (groups): Update the json-ld's context. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 0c5e0a6..fff458c 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -750,6 +750,14 @@ CONSTRUCT { "shortName": "gnt:shortName", "code": "gnt:code", "mappingMethod": "gnt:mappingMethod", + "geneticType": "gnt:geneticType", + "fullName": "skos:prefLabel", + }, + }) + except (RemoteDisconnected, URLError): + return jsonify({}) + + @metadata.route("/groups/", methods=["GET"]) def fetch_group_by_species(name): """Fetch the list of groups""" -- cgit v1.2.3