Reputation: 490
If I have an object "player" which is a subcategory of "person", how do I express that in a graph?
Here's an example:
Upvotes: 6
Views: 1990
Reputation: 39925
Use multiple labels:
create ... (:Player:Person {name:'a player'}) ...
In general you assign all the labels up the inheritance tree. This way doing a
match (:Person) return n
would return all the players as well.
Upvotes: 5