diff options
author | Munyoki Kilyungi | 2023-12-15 14:41:31 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-12-15 14:49:26 +0300 |
commit | d20c8a470c86f38d9226a6563ef28fce0bffa042 (patch) | |
tree | 5cf906a33dfc641fb2be949d9fc4feeb1b9b5698 /gn3 | |
parent | 20808f047414f0bd28e039f4db73428f9f251eee (diff) | |
download | genenetwork3-d20c8a470c86f38d9226a6563ef28fce0bffa042.tar.gz |
Update BASE_CONTEXT entries.
* gn3/api/metadata.py: (PHENOTYPE_CONTEXT): Move "rdfs", "gnt",
"gnc"...
(BASE_CONTEXT): ... here.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/metadata.py | 7 |
1 files changed, 4 insertions, 3 deletions
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", |