From d20c8a470c86f38d9226a6563ef28fce0bffa042 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 15 Dec 2023 14:41:31 +0300 Subject: Update BASE_CONTEXT entries. * gn3/api/metadata.py: (PHENOTYPE_CONTEXT): Move "rdfs", "gnt", "gnc"... (BASE_CONTEXT): ... here. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gn3/api') diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 681eed8..50b9561 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -17,6 +17,10 @@ BASE_CONTEXT = { "data": "@graph", "id": "@id", "type": "@type", + "gnc": "http://genenetwork.org/category/", + "gnt": "http://genenetwork.org/term/", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#>", } DATASET_CONTEXT = { @@ -104,11 +108,8 @@ PUBLICATION_CONTEXT = { PHENOTYPE_CONTEXT = BASE_CONTEXT | PUBLICATION_CONTEXT | { "skos": "http://www.w3.org/2004/02/skos/core#", - "rdfs": "http://www.w3.org/2000/01/rdf-schema#", - "gnt": "http://genenetwork.org/term/", "dcat": "http://www.w3.org/ns/dcat#", "prism": "http://prismstandard.org/namespaces/basic/2.0/", - "gnc": "http://genenetwork.org/category/", "traitName": "skos:altLabel", "trait": "rdfs:label", "altName": "rdfs:altLabel", -- cgit v1.2.3