aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/api/metadata.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 55ac7f1..e85ac87 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -903,13 +903,24 @@ def probesets(name):
$prefix
CONSTRUCT {
- ?probeset ?predicate ?object ;
- gnt:hasChip ?chipName .
+ ?probeset ?predicate ?object .
+ ?symbol ?symbolPred ?symbolObj .
+ ?resource rdfs:label ?resourceLabel ;
+ rdfs:comments ?resourceComments .
+ ?chip rdfs:label ?chipName .
} WHERE {
?probeset rdf:type gnc:Probeset ;
rdfs:label "$name" ;
?predicate ?object .
- FILTER (?predicate != gnt:hasChip) .
+ OPTIONAL {
+ ?symbol ^gnt:symbol ?probeset ;
+ rdf:type gnc:GeneSymbol ;
+ ?symbolPred ?symbolObj .
+ ?resource ^dct:references ?symbol ;
+ a ?resourceLink .
+ ?resourceLink rdfs:label ?resourceLabel ;
+ rdfs:comments ?resourceComments .
+ } .
OPTIONAL{
?probeset gnt:hasChip ?chip .
?chip rdfs:label ?chipName .