Get a table containing the name and the height of each storey and sort them in ascending order. (Cypher)
MATCH(s:Storey) RETURN s. Name, s.Height ORDER BY s.Height ASC
Get all properties of the story with the greatest height.
MATCH(s:Storey) RETURN PROPERTIES(s) ORDER
BY s. Height DESC LIMIT 1
Get a list of all labels used in your graph and the number of nodes using this label.
MATCH (n) RETURN DISTINCT LABELS(n), COUNT (n)
Get all nested rooms that have a NESTS ROOMS relationship to the room named Biochemical Startup, Inc. . Interpret the result and think about a potential built environment.
MATCH p = (r: Room{Name:"Biochemical Startup, Inc. "})->[:NESTS_ROOMS]-(n) RETURN p
Get all adjacent rooms to Component with ComponentName Door.0.2. How would you interpret the result?
MATCH p1 = (c: Component {ComponentName: "Door. 0.2'1)<- (r: Room) RETURN p1
CREATE (b:Building{Name: "Building A"}))
MATCH (b:Building Name: "Building A*Y)
MATCH (s:Storey)
MERGE pattern = (b)-[r: ASSEMBLED_BY]->(s) RETURN pattern
Zuletzt geändertvor 2 Jahren