I am using Bulbflow to access Neo4j through python.
I'm now trying to save a python list as a node property, but am consistently running into errors. From the documentation, I can see that lists are an accepted type when defined in models, but I'd like to save a list property after the models are defined, i.e.
anode = g.vertices.get(123)
anode.specs = [(2, 0.27911702036756064), (5, 0.6708785014712791)]
anode.save()
But I get the following error:
SystemError: (
{'status': '200',
'content-length': '142',
'content-type': 'application/json; charset=UTF-8',
'access-control-allow-origin': '*',
'server': 'Jetty(6.1.25)'},
'"java.lang.IllegalArgumentException:
Unknown property type on: [[2, 0.27911702036756064], [5, 0.6708785014712791]],
class java.util.ArrayList"')
I tried using the convert_to_db
function, but wasn't sure what the syntax was.
Any ideas on how to achieve this? Is the problem that I have a list of tuples?
Thanks!
============== UPDATE ==============
Following Peter's suggestion, I tried the same with a simple flat list and ran into the same error:
SystemError: (
{'status': '200',
'content-length': '172',
'content-type': 'application/json; charset=UTF-8',
'access-control-allow-origin': '*',
'server': 'Jetty(6.1.25)'},
'"java.lang.IllegalArgumentException:
Unknown property type on: [0.0, 0.0, 0.0, 0.42659109777029425, 0.0, 0.0, 0.0, 0.0, 0.5234052770685714, 0.0],
class java.util.ArrayList"')
Any ideas?