Table 3.
Examples of graph search tasks and queries using Cypher language.
| Number | Graph search task | Cypher querya,b |
| 1 |
|
match (p:Patient {label:'1'})-->(f {cat: 'dac'}) where f.code = 'C-389764' or f.code = 'C-172569' or f.code = 'C-765209' or f.code = 'C-305976' or f.code = 'C-352894' or f.code = 'C-654730' return p, f; |
| 2 |
|
match (p:Patient {label:'1'})-->(f) where (f.code = 'C-549780' and f.valcvt = 'true') or (f.code = 'C-289547' and f.valcvt='true') or (f.code = 'C-127089' and f.valcvt='true') or (f.code = 'C-029761' and f.valcvt='true') or (f.code = 'C-294680' and f.valcvt='true') return p, f; |
| 3 |
|
match (p:Patient {label:'1'})-->(f {cat: 'lab'}) where (f.code = 'C-659218' and f.valcvt = 'true') or (f.code = 'C-493765' and f.valcvt = 'up') or (f.code = 'C-573086' and f.valcvt = 'up') or (f.code = 'C-120948' and f.valcvt = 'abnormal') or (f.code = 'C-814793' and f.valcvt = 'abnormal') return p, f; |
| 4 |
|
match (p:Patient {label:'1', vpid:'_8908085766'})-->(f) match (p)-->(ap:AbstractPatient)-->(tc:TargetConcept)-->(cr:RelCat)-->(c:Concept) return p, f, ap, tc, cr, c; |
aUsing Neo4j Cypher query language.
bPatient with LC: label=1; background patient: label=0. Factor property f.code: unique local code. Factor property f.valcvt: converted value.