aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-01-04 21:02:55 +0300
committerBonfaceKilz2024-01-06 14:15:26 +0300
commit716c9e0f1444267bbd99c5fe1cac4729a9643c7e (patch)
treeb83cdab342c99977bf20717c50dfbd744ee348d2 /gn3/api
parentde072fd7248c8b1fe3a9c40a0309bfbc1655ac8b (diff)
downloadgenenetwork3-716c9e0f1444267bbd99c5fe1cac4729a9643c7e.tar.gz
Remove extra gene metadata from query as it's un-necessary.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/metadata.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 11f9f46..b3caa11 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -904,9 +904,8 @@ $prefix
CONSTRUCT {
?probeset ?predicate ?object ;
- gnt:geneSymbol ?gene ;
- dct:references ?probesetResource .
- ?gene ?genePred ?geneObj .
+ dct:references ?probesetResource ;
+ dct:references ?resource .
?resource rdfs:label ?resourceLabel ;
rdfs:comments ?resourceComments .
?probesetResource rdfs:label ?probesetResourceLabel ;
@@ -916,11 +915,11 @@ CONSTRUCT {
?probeset rdf:type gnc:Probeset ;
rdfs:label "$name" ;
?predicate ?object .
+ FILTER (!regex(str(?genePred), '(geneSymbol)', 'i')) .
OPTIONAL {
?probeset gnt:geneSymbol ?symbolName .
?gene gnt:geneSymbol ?symbolName ;
- rdf:type gnc:Gene ;
- ?genePred ?geneObj .
+ rdf:type gnc:Gene .
?resource ^dct:references ?gene ;
a ?resourceLink .
?resourceLink rdfs:Class gnc:ResourceLink ;