如何在Neo4j节点中显示特定属性

时间:2018-09-07 14:16:50

标签: neo4j cypher

我正在Neo4j中创建图形,但是当我在Neo4j浏览器中浏览节点时,有没有办法定义要显示的节点的属性?

对于节点Flight,我希望在节点中显示属性FL_NUM,但它会自动显示另一个属性:DIV_AirportLandings,如下所示。

USING PERIODIC COMMIT
LOAD CSV WITH HEADERS
FROM "file:///Flight_data/5may2018.csv" AS line
WITH DISTINCT line
MERGE (f:Flight { id: TOINT(line.`flight_id`)} )
SET f.FlightNum = line.FL_NUM
SET f.Distance = line.DISTANCE
SET f.Diverted = line.DIVERTED
SET f.Cancelled = line.CANCELLED
SET f.CRS_ElapsedTime = line.CRS_ELAPSED_TIME
SET f.Actual_ElapsedTime = line.ACTUAL_ELAPSED_TIME
SET f.DIV_AirportLandings = line.DIV_AIRPORT_LANDINGS
SET f.DIV_ReachedDest = line.DIV_REACHED_DEST

谢谢

enter image description here

1 个答案:

答案 0 :(得分:1)

在结果面板(仅在查询下方)中,您具有标签的构面。 只需单击Filght(25),然后框的底部就会出现一个栏,您可以在其中选择要显示的颜色,大小和属性。