aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/api/metadata.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index e85ac87..45b731e 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -903,7 +903,8 @@ def probesets(name):
$prefix
CONSTRUCT {
- ?probeset ?predicate ?object .
+ ?probeset ?predicate ?object ;
+ gnt:geneSymbol ?symbol .
?symbol ?symbolPred ?symbolObj .
?resource rdfs:label ?resourceLabel ;
rdfs:comments ?resourceComments .
@@ -912,9 +913,11 @@ CONSTRUCT {
?probeset rdf:type gnc:Probeset ;
rdfs:label "$name" ;
?predicate ?object .
+ FILTER (!regex(str(?predicate), '(geneSymbol)', 'i')) .
OPTIONAL {
- ?symbol ^gnt:symbol ?probeset ;
- rdf:type gnc:GeneSymbol ;
+ ?probeset gnt:geneSymbol ?symbolName .
+ ?symbol gnt:geneSymbol ?symbolName ;
+ rdf:type gnc:Gene ;
?symbolPred ?symbolObj .
?resource ^dct:references ?symbol ;
a ?resourceLink .