Questions tagged [neomodel]

neomodel is a python Object Graph Mapper (OGM) for the neo4j graph database.

neomodel is an Object Graph Mapper (OGM) for the neo4j graph database, built on the awesome neo4j_driver. It is written in python.

97 questions
0
votes
2 answers

neomodel doesn't save nodes in database

I have a neomodel model: class User(StructuredNode): id = UniqueIdProperty() username = StringProperty(unique_index=True) email = StringProperty(unique_index=True) password = StringProperty() def save(self, *args, **kwargs): …
HuLu ViCa
  • 5,077
  • 10
  • 43
  • 93
0
votes
1 answer

Problems using python packages (Neomodel & py2neo) with Neo4j

I am having some issues using the Neomodel and py2neo clients with Neo4j. I have installed Neomodel and py2neo in seperate anaconda virtual environments and tested each individually. Neo4j is installed/docked using docker. Neomodel The code from…
S.Jamal
  • 137
  • 2
  • 11
0
votes
1 answer

getting nodes with location specified via NeomodelPoint

getting nodes with location, specified with NeomodelPoint give an error "Invalid instantiation via no arguments", while setting node in the same way works well (below it gives ConstraintError). What is the right way of getting nodes with specific…
Dmitriy Grankin
  • 568
  • 9
  • 21
0
votes
1 answer

I am trying to implement a choices option in models.py Countries to be selectable by user but I not able to display it properly

Following the example provided in Neomodel documentation I am not able to display choices in my form. class Person(StructuredNode): SEXES = {'F': 'Female', 'M': 'Male', 'O': 'Other'} sex = StringProperty(required=True, choices=SEXES) by…
0
votes
1 answer

How to filter NeoModel Nodes by Relationships in Python

I have the 2 StructuredNodes User and Token as a one to one relationship. Coming from using Django for relational databases, if I want to get the User given a token, I'd simply do User.objects.get(token__key=token). But using Neo4j with NeoModel,…
Iceandele
  • 630
  • 1
  • 8
  • 25
0
votes
1 answer

Django with multiple databses Mongodb and Neo4j

I am using Mongo as my primary database and Neo4j to store some relations.Hope Neo4j can reduce the query time for complicated searches in my application.I am confused regarding how to maintain relations between the two. Here my question how can we…
Milan
  • 434
  • 1
  • 4
  • 9
0
votes
0 answers

Not finding proper connections for Django to connect to Neo4j

I am trying to sync Neo4j database with Django, but I am getting the following error: I am following scholarly GIT page for Neo4django. How can I accomplish this task?
0
votes
2 answers

Filter with OR in neomodel

Recently I start to useing neo4j and neomodel and now I need to filter 2 parameters with OR in neomodel. I searched in document and codes but couldn't find anything about it. In django model there is a Q object to handle OR in queries. How can…
mastisa
  • 1,875
  • 3
  • 21
  • 39
0
votes
0 answers

Can neomodel return a sub-graph?

And if so how. I can see how to run cypher to return a list of nodes but I need the paths as well. I can sort of do this with two queries but surely there is a way to do this with just one? I'm using neomodel with django and need to return a…
Steve Gailey
  • 129
  • 1
  • 10
0
votes
1 answer

Transactions using neomodel

Based on what is said in the docs the following is available: @db.transaction def update_user_name(uid, name): user = Person.nodes.filter(uid=uid)[0] user.name = name user.save() But how about something more complex like creating a node…
kboom
  • 2,279
  • 3
  • 28
  • 43
0
votes
1 answer

neo4j is taking too much time for the cypher query "MATCH (n:City{name : "hyderabad"})-[:CONTAINS]->(p:BusinessDetails) return p"

i am using neo4j community version , i am having 1 node of "City" , and approx 5000 nodes of "BusinessDetails" connected with realtion "CONTAINS" from "City" to "BusinessDetails" , when 1 am using the cypher query MATCH (n:City{name :…
aditya mathur
  • 75
  • 1
  • 2
  • 6
0
votes
1 answer

SocketError : Operation not permitted (returning py2neo exception)

I am trying to return a bunch of rows to my web page with a render function in django, but I get the following error. Request Method: POST Request URL: http://localhost:8000/neoapp/user_rec.html Django Version: 1.8.6 Python Version:…
goelakash
  • 2,502
  • 4
  • 40
  • 56
0
votes
0 answers

Neo4j and neomodel are throwing unique exception on single parameter

I am populating a database and I have these this model: class Album(StructuredNode): name = StringProperty(unique_index=False, required=True) artist = StringProperty(unique_index=False, required=True) slug =…
Rob
  • 3,333
  • 5
  • 28
  • 71
0
votes
1 answer

Check the type of a property in neomodel

Is it possible to get the type of a property in neomodel? For example something like this: for n in MyNodeModel.properties: if n == StructuredNode: print('StructuredNode') I hope my questions is clear...
user4306467
0
votes
1 answer

Neomodel / py2neo - 'NodeMeta' object is not iterable

I am new to Neomodel and Neo4J. I am running a remote Neo4J server on Amazon Ec2, developing locally and running into issues when trying to access the project via the browser. When attempting to access the project via my browser, I get the…
Joe Fusaro
  • 847
  • 2
  • 11
  • 23