Creating node in py2neo shows up blank in Neo4j
<p>I am new to Neo4j and py2neo. I used the GraphObject model like so:</p>

<pre><code>class Capability(GraphObject):
    __primarykey__ = "term"

    term = Property()

    child_of = RelatedTo("Capability")
    parent_to = RelatedTo("Capability")
</code></pre>

<p>After I create a "Capability":</p>

<pre><code>c = Capability()
c.term = name
graph.push(c)
</code></pre>

<p>Querying the database in the Neo4j browser gives me this:</p>

<p><a href="http://i.stack.imgur.com/CGeDR.png" rel="nofollow"><img src="http://i.stack.imgur.com/CGeDR.png" alt="enter image description here"></a></p>

<p>Where the nodes are blank. Furthermore if I change the model to this:</p>

<pre><code>class Capability(GraphObject):
    __primarylabel__ = "name"
    __primarykey__ = "term"

    term = Property()

    child_of = RelatedTo("Capability")
    parent_to = RelatedTo("Capability")
</code></pre>

<p>Where the "<strong>primarylabel</strong>" I get names in the nodes in Neo4J like expected, but the node is no longer considered a "Capability" - which means I also can't search for "Capability":</p>

<p><a href="http://i.stack.imgur.com/rRQLB.png" rel="nofollow"><img src="http://i.stack.imgur.com/rRQLB.png" alt="enter image description here"></a></p>

<p>... which makes sense since I overrided the primary label, but it seems odd that the only way I can see the label of the Capability in Neo4J is by not having the node be considered a Capability. </p>

<p>So the questions is: in py2neo, how can I create a node that is considered a Capability based on the model as well as have the term label show up in the Neo4J node graph (instead of blank)?  </p>

<p>After hours of trying to figure out what I don't fully understand regarding Neo4j and the question above - I finally figured it out: "Capability" is some sort of reserved word!</p>

<p>Once I changed the class name from "Capability" to "CapabilityZ" it started working as expected. Ouch. </p>

<p>Still confused since "Capability" is not in the docs anywhere....</p>

<p>Hopefully this saves some poor schmuck like me out there.</p>

python neo4j graph-databases py2neo