From 31a9f9af4b87dcbc8e07785bcc2bbe59963e69bc Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 20 Nov 2023 17:07:32 +0300 Subject: 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 --- gn3/api/metadata.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn3') 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( -- cgit v1.2.3