about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-12-15 14:42:50 +0300
committerBonfaceKilz2023-12-15 14:49:26 +0300
commit1beeb22018dd7dc68e2da3bc733a44fd5f5a385b (patch)
treed6599956c5aa81fd048d98b2a0e77e02bc82628b
parentd20c8a470c86f38d9226a6563ef28fce0bffa042 (diff)
downloadgenenetwork3-1beeb22018dd7dc68e2da3bc733a44fd5f5a385b.tar.gz
Update ProbeSet's context.
* gn3/api/metadata.py (probesets): Update context.

Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/api/metadata.py56
1 files changed, 31 insertions, 25 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 50b9561..303c228 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -918,37 +918,43 @@ CONSTRUCT {
 """).substitute(prefix=RDF_PREFIXES, name=name)
         _context = {
             "@context": BASE_CONTEXT | {
-                "gnt": "http://genenetwork.org/term/",
-                "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
-                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
-                "skos": "http://www.w3.org/2004/02/skos/core#",
-                "dct": "http://purl.org/dc/terms/",
-                "name": "rdfs:label",
                 "alias": "skos:altLabel",
+                "alignID": "gnt:hasAlignID",
+                "blatMbEnd": "gnt:hasBlatMbEnd",
+                "blatMbStart": "gnt:hasBlatMbStart",
+                "blatScore": "gnt:hasBlatScore",
+                "blatSeq": "gnt:hasBlatSeq",
                 "chip": "gnt:hasChip",
-                "targetId": "gnt:hasTargetId",
-                "symbol": "gnt:symbol",
-                "description": "dct:description",
-                "targetsRegion": "gnt:targetsRegion",
                 "chr": "gnt:chr",
+                "chromosome": "gnt:chromosome",
+                "comments": "rdfs:comments",
+                "dct": "http://purl.org/dc/terms/",
+                "description": "dct:description",
+                "gene": "gnt:gene",
+                "kgID": "gnt:hasKgID",
+                "location": "gnt:location",
                 "mb": "gnt:mb",
-                "mbMm8": "gnt:mbMm8",
-                "mb2016": "gnt:mb2016",
+                "name": "rdfs:label",
+                "references": "dct:references",
+                "skos": "http://www.w3.org/2004/02/skos/core#",
+                "species": "gnt:belongsToSpecies",
                 "specificity": "gnt:hasSpecificity",
-                "blatScore": "gnt:hasBlatScore",
-                "blatMbStart": "gnt:hasBlatMbStart",
-                "blatMbStart2016": "gnt:hasBlatMbStart2016",
-                "blatMbEnd": "gnt:hasBlatMbEnd",
-                "blatMbEnd2016": "gnt:hasBlatMbEnd2016",
-                "blatSeq": "gnt:hasBlatSeq",
-                "targetSeq": "gnt:hasTargetSeq",
-                "homologene": "gnt:hasHomologeneId",
-                "uniprot": "gnt:hasUniprotId",
-                "pubchem": "gnt:hasPubChemId",
-                "kegg": "gnt:hasKeggId",
-                "omim": "gnt:hasOmimId",
-                "chebi": "gnt:hasChebiId",
+                "strand": "gnt:Strand",
+                "strandProbe": "gnt:strandProbe",
+                "symbol": "gnt:symbol",
+                "targetID": "gnt:hasTargetId",
+                "targetRegion": "gnt:targetsRegion",
+                "targetSequence": "gnt:hasTargetSeq",
+                "transcript": "gnt:transcript",
+                "txEnd": "gnt:TxEnd",
+                "txStart": "gnt:TxStart",
+                "unigenID": "gnt:hasUnigenID",
+                "uniprot": "gnt:uniprot",
+            },
+            "probeset": {
+                "type": "gnc:Probeset",
             },
+            "type": "gnc:Probeset",
         }
         return query_and_compact(
             _query, _context,