diff options
author | Munyoki Kilyungi | 2023-10-24 12:43:35 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-10-27 13:45:32 +0300 |
commit | ffb6ce44e8271270f45e703e00b72cb1a508cb6f (patch) | |
tree | cc0bddddfaf7df5ae15c4398ec4604e37c5e6a6e /gn3 | |
parent | e9b74f85c4626d42ec933e6e2dd08f16edc456c5 (diff) | |
download | genenetwork3-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>
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/metadata.py | 8 |
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""" |