I'm using py2neo cypher to load relationship between nodes. I would like to use a json object as this relationship, so I can query it later. Here is my cypher query:
MATCH (a:OntologyNode),(b:OntologyNode)
WHERE a.cid = 'abcat1'
AND b.cid = 'abcat2'
CREATE (a)-[r:{'operand2': 'Product_Weight', 'operand1': 'Maximum_Weight', 'operator': '>='}]->(b)
Here is my error:
InvalidSyntax: Invalid input '{': expected whitespace or a rel type name (line 1, column 111 (offset: 110))
I appears it doesn't like the '{', but is there a way around this? The reason I'd like this json as a relationship, is the ability to query it.