aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-24 12:43:35 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commitffb6ce44e8271270f45e703e00b72cb1a508cb6f (patch)
treecc0bddddfaf7df5ae15c4398ec4604e37c5e6a6e
parente9b74f85c4626d42ec933e6e2dd08f16edc456c5 (diff)
downloadgenenetwork3-ffb6ce44e8271270f45e703e00b72cb1a508cb6f.tar.gz
Add extra prefixes to the context.
* gn3/api/metadata.py (groups): Update the json-ld's context. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/api/metadata.py8
1 files changed, 8 insertions, 0 deletions
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/<name>", methods=["GET"])
def fetch_group_by_species(name):
"""Fetch the list of groups"""