hubmapconsortium / ontology-api

The HuBMAP Ontology Service
MIT License
4 stars 3 forks source link

Change one character in the cypher for concepts/{id}/concepts to properly limit to "back relations" not "both relations" #138

Closed computationdoc closed 2 years ago

computationdoc commented 2 years ago

Line 200 of https://github.com/hubmapconsortium/ontology-api/blob/master/server/openapi_server/managers/neo4j_manager.py just needs to be changed from:

            ' MATCH (a:Term)<-[:PREF_TERM]-(b:Concept)-[c]-(d:Concept)-[:PREF_TERM]->(e:Term)' \

to

            ' MATCH (a:Term)<-[:PREF_TERM]-(b:Concept)<-[c]-(d:Concept)-[:PREF_TERM]->(e:Term)' \

Literally that is just one character added (the less than sign after (b:Concept) )