diff options
author | Munyoki Kilyungi | 2023-11-20 17:07:32 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-11-27 12:29:25 +0300 |
commit | 31a9f9af4b87dcbc8e07785bcc2bbe59963e69bc (patch) | |
tree | ceb11da186394b3593ce9198d138730b5576ed2f | |
parent | 353a20bcc3117cf22c1c2fdf60859228dd8cd370 (diff) | |
download | genenetwork3-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>
-rw-r--r-- | gn3/api/metadata.py | 3 |
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( |