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
1
vote
1 answer

Python Neo4j Self reference

I am using neomodel library from https://github.com/robinedwards/neomodel . Documentation http://neomodel.readthedocs.org/en/latest/ I have 2 classes Entity and Category - every Category belongs to one Entity, and every Entity can have a…
Ananth
  • 4,227
  • 2
  • 20
  • 26
1
vote
3 answers

Neo4j and Django

Is ist possible to use neomodel to make models in django? How do I have to integrate neo4j in django? I'm using Python 3, so neo4django isn't really an option. I'm new to both of them and at the moment I'm a little confused... Thanks a lot! :3
user4306467
1
vote
0 answers

Neo4Django - How to define relationships dynamically?

I don't have static lists of nodes and relationships between them. Users will enter their own data to the db, along with relationships. For example, after registration they will have a person node with name and userid properties, and after adding…
0xmtn
  • 2,625
  • 5
  • 27
  • 53
1
vote
0 answers

When I use RelationshipFrom() method in NeoModel, Python, get KeyError: '__file__'

I'm trying to make web server using Python, Neo4j, NeoModel and Heroku. And because I'm not familiar with NeoModel, I'm now trying to learn from Github NeoModel Basic tutorial. I have a trouble when I compile this code. from neomodel import…
1
vote
3 answers

Failed to get relationships with Neomodel and jexp-batch-import

I'm using neomodel and the jexp-batch-importer(https://github.com/jexp/batch-import). My model looks like the following. class TokenRel(StructuredRel): weight = IntegerProperty(default = 1) class TokenNode(StructuredNode): identifier =…
user2715478
  • 1,273
  • 12
  • 17
0
votes
2 answers

{ "detail": "You do not have permission to perform this action." } error while making a GET request

I am stuck for a few days with this, and nothing is working for me. So, my db is in Neo4j, and I am making API with Django DRF. These are the relevant files: models.py class NeoUser(StructuredNode): uid = UniqueIdProperty() …
0
votes
1 answer

Python Neomodel TypeError: Parameters of type UniqueIdProperty are not supported

When saving my object, I am getting this error, and I don't know why, what am I doing wrong? As far as I can see, I am using the UniqueIdProperty according to the documentation. Traceback (most recent call last): File…
LarsJaeger
  • 100
  • 7
0
votes
1 answer

Neo4J Django neomodel not showing nodes in the explorer

I'm new to Graph database and using Neo4j database with neomodel library in Django application. The settings are defined as NEOMODEL_NEO4J_BOLT_URL = os.environ.get('NEO4J_BOLT_URL') NEOMODEL_SIGNALS = True NEOMODEL_FORCE_TIMEZONE =…
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
0
votes
1 answer

neomdel nodes not deleting through APIs on hosted system

We have signals for creating and deleting neomodel node instances based on creation and deletion of mysql instances. On a hosted system, when calling functions through shell or custom management commands it's working perfectly fine and signals are…
0
votes
1 answer

The save function of neomodel is not working

I have a neomodel Model: from neomodel import StructuredNode, StringProperty, UniqueIdProperty, db db.set_connection('bolt://neo4j:password@masir_neo4j:7687') class City(StructuredNode): id = UniqueIdProperty() name =…
Hanie Asemi
  • 1,318
  • 2
  • 9
  • 23
0
votes
1 answer

Neomodel + Aura DB -> Exception ignored in:

I'm getting exception in console during running the next code: ImportError: sys.meta_path is None, Python is likely shutting down Exception ignored in: I'm using Python 3.10, neomodel and Neo4j…
Dzianis
  • 1
  • 1
0
votes
0 answers

How to convert Neomodel relationship data into JSON for passing it to Cytoscape.js

I am trying to display Neo4J graph data in my Django template. For querying I am using neomodel, and Cytoscape.js for graph visualization. I am able to convert nodes data in the form of JSON that cytoscape.js requires, but for edges I don't have…
shrikant02
  • 15
  • 6
0
votes
0 answers

Data not rendering in Cytoscape.js in the Django template

I am trying to display the data in the Django template in the form of graph. I am getting the data from Neo4J and for querying I am using neomodel. First I am serializing the data in the form of JSON accepted my Cytoscape.js. This is my…
shrikant02
  • 15
  • 6
0
votes
0 answers

Cytoscape.js not loading graph in Django

I am trying to show graph in the HTML template of my Django application, I first tried with the actual data that I am working with (I am using the Neomodel to fetch the data from Neo4J and then transforming it to right JSON for cytoscape), but it…
shrikant02
  • 15
  • 6
0
votes
1 answer

Obtaining node id and parent id in cypher or with neomodel

I'm using neomodel and I have the following models: class ForumElement(StructuredNode): uid = UniqueIdProperty() created_at = DateTimeProperty(default=dt.datetime.utcnow()) text = StringProperty() is_visible =…