aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-11-20 17:07:32 +0300
committerBonfaceKilz2023-11-27 12:29:25 +0300
commit31a9f9af4b87dcbc8e07785bcc2bbe59963e69bc (patch)
treeceb11da186394b3593ce9198d138730b5576ed2f /gn3
parent353a20bcc3117cf22c1c2fdf60859228dd8cd370 (diff)
downloadgenenetwork3-31a9f9af4b87dcbc8e07785bcc2bbe59963e69bc.tar.gz
Use "dcat:Dataset" when framing when fetching phenotypes.
* gn3/api/metadata.py (phenotypes): Filter for "dcat:Dataset" in json-ld context. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/metadata.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 046c928..b97a4c4 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -463,6 +463,9 @@ CONSTRUCT {
""").substitute(prefix=RDF_PREFIXES, name=name)
_context = {
"@context": PHENOTYPE_CONTEXT,
+ "dataset": {
+ "type": "dcat:Dataset",
+ },
"type": "gnc:Phenotype",
}
return query_frame_and_compact(