Created
April 16, 2014 03:17
-
-
Save wmfairuz/10802411 to your computer and use it in GitHub Desktop.
Get outgoing/ingoing relationship for a class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| START wc = node:classes(name = "WireContainer") | |
| MATCH wc-[r]->y | |
| RETURN type(r), y.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| START o = node(24086), | |
| c = node:classes(name = "WireContainer") | |
| MATCH o-[:RELATED_TO_SPECIAL]->wc-[:INSTANCE_OF]->c | |
| WHERE wc.headend = "D001" AND wc.primer = "9" | |
| RETURN id(o), o.name, id(wc), wc.name, wc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment