Using Neo4j property sheet
Properties are key/value pairs that can be set on both nodes and relationships. You can use the property sheet to:
- inspect properties
- edit property values
- remove a property
- create new properties
- rename property keys
Basic usage
Neo4j Graph view integrates with the property view of the Eclipse IDE. There are two ways to make the property sheet show up:
- The Neo4j Property sheet opens as part of the Neo4j perspective, which is found in the menu through: Window -> Open Perspective -> Neo4j
- You can open it independently from the menu: Window -> Show View -> General -> Properties
Note: IDs and relationship types can not be altered (by Neo4j design).
Inspect properties
When you select a node or relationship in the Neo4j Graph view, the properties view will show the keys and values of all properties.
Edit property values
Property values can be altered by editing the text representation
of the value (just click into them). Standard Java parse[Type]()
methods are used to parse the input.
There's also different ways to use copy & paste:
- Copy & paste text in the value editor works just the usual way.
Copy &
paste using the context menu will copy the key name and the value in a typesafe way.
Remove a property
Right-click on the property key and choose the Remove
()
action from the context menu.
Create new properties
By right-clicking the property sheet you get access to the "New"
and "New[]" (both
icon) menu alternatives. This is while Neo4j properties can be either
single-valued or contain an array of values. Selecting one of the
alternatives will bring up a list of types to choose from:
String
char
long
int
short
byte
double
float
boolean
After choosing type you will be prompted for the key name and the value.
Rename property keys
As a convenience function, you can also rename a property key.
Right-click the property key and choose the Rename ()
button from the context menu. Neoclipse will prompt you for the new key
name.