From 1a14fe968149908ecedb71500314f666985dfa27 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 15 Feb 2024 11:31:34 +0300 Subject: Use correct names for dataset entries in json result. Since we are appending to an already flattened json-ld file, we don't need to add the prefixes. * gn3/api/metadata.py (DATASET_CONTEXT): Add missing "experimentType" key. * gn3/db/datasets.py (retrieve_dataset_metadata): Match the __subject dict with entries from DATASET_CONTEXT. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn3/api') diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index fbdc8f5..7334abb 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -38,6 +38,7 @@ DATASET_CONTEXT = { "description": "dct:description", "ex": "http://example.org/stuff/1.0/", "experimentDesignInfo": "gnt:hasExperimentDesignInfo", + "experimentType": "gnt:hasExperimentType", "foaf": "http://xmlns.com/foaf/0.1/", "geoSeriesId": "gnt:hasGeoSeriesId", "gnt": "http://genenetwork.org/term/", -- cgit v1.2.3