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
2
votes
1 answer

Python NeoModel how to return query result as JSON Object

I am fairly new to Python and in my application I am using Neomodel to load and retrieve graph data from Neo4j database. In one of my routes I have the following function: @api_mod.route('/users') …
Cracoras
  • 347
  • 3
  • 16
2
votes
0 answers

How to integrate an existing neo4j database via neomodel in django?

I'm relatively new to neo4j and want to integrate an existing database in django for python with neomodel (django-neomodel). Can the corresponding node models be derived from the existing neo4j database? Like inspectdb for relational databases in…
Max
  • 21
  • 3
2
votes
3 answers

How to convert neomodel object into json? (is not JSON serializable)

I use Falcon framework and neomodel in order to communicate with neo4j database. I have some nodes in DB and I try to return information about them via API (get methon) as a JSON object. In order to retrive information I use the code people =…
trojek
  • 3,078
  • 2
  • 29
  • 52
2
votes
0 answers

how to set StructuredRel using django-neomodel and modelForm

this is my forms.py: from django import forms from .models import Position, PositionRelForm class PositionForm(forms.ModelForm): class Meta: model = Position fields = '__all__' class PositionRelForm(forms.ModelForm): class…
2
votes
0 answers

Neo4j 3.0.1 - Neomodel 2.0.7 - Parameter provided for node creation is not a Map

I am trying out the Neomodel Source Code to make it work with Neo4j 3.0.1. I am facing this eeror saying that the Parameters provided for node creation is not a Map. {u'errors': [{u'message': u'Parameter provided for node creation is not a Map',…
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
2
votes
1 answer

Relationship to nodes of different types in neomodel

Can I have a relationship to different kind of nodes? I need something like rel = RelationshipTo('NodeTypeOne|NodeTypeTwo', 'REL'); or rel = RelationshipTo('StructuredNode', 'REL');
Taygrim
  • 379
  • 2
  • 3
  • 14
2
votes
1 answer

How to get a node by his id

So I have the id of a node and I want to get the node. For example I have the ID 1 and I want to print out the name of the node with the ID 1. I mean btw the "internal" ID of neo4j:
user4306467
1
vote
1 answer

Can't connect to Neo4j Aura with Neomodel

I'm trying to start a project using Neo4j Aura and neomodel. I've found this post and set up my connection as suggested, however when I try to run my project I get the following error: ValueError: Expecting url format:…
Anthu
  • 13
  • 3
1
vote
1 answer

Neomodel Most Efficient Way to Query Relationship Data

Suppose I have the following models from the neomodel documentation. class FriendRel(StructuredRel): since = DateTimeProperty( default=lambda: datetime.now(pytz.utc) ) met = StringProperty() class Person(StructuredNode): …
Ethan Posner
  • 343
  • 1
  • 2
  • 14
1
vote
1 answer

Connecting Neo4J Database to my Django App

I am currently working on a project in which i need to use Django together with a Neo4J graph database. According to the articles i read online i have to use the django_neomodel library to do that. But when i try to install django_neomodel through…
Mich25educ
  • 295
  • 1
  • 15
1
vote
0 answers

Neomodel: unique_index not working on StringProperty()

I have a company node where the name should be unique: class Company(StructuredNode): name = StringProperty(unique_index=True) participated = ArrayProperty(StringProperty()) However, when I run the code TWICE to create the company, it…
Phillip Ng
  • 45
  • 6
1
vote
1 answer

Neomodel: ValueError: Can't install traversal 'source' exists on NodeSet

enter image description here I used django_neomodel to connect the Neo4j graph database. The graph data in Neo4j database is above which is the relationships between genes. This is my model for data. class Genes(StructuredNode): id =…
qi zuo
  • 26
  • 2
1
vote
0 answers

Neomodel 4.0 Bolt URI for multiple databases

I recently upgraded my Neo4j database from 3.5 to 4.1 and also the neomodel package. I have created multiple databases on the server. Whenever I am running a query, it always runs on a specific database. What do I need to do to target a different…
ak2492
  • 305
  • 1
  • 4
  • 14
1
vote
1 answer

Can I filter on a SemiStructured node in Neo4 Model?

I am using the Neomodel Python package with the Neo4j database and loving it. I am currently using the filter() method, but every time I use the filter() method on a property not defined in the SemiStructuredNode I get an error. In the example…
jelly5798
  • 349
  • 2
  • 9
1
vote
0 answers

How can I create a relationship at runtime in Neomodel?

I am trying to create a relationship at runtime in Neomodel. Let's say I have a Person model with no relationships: class Person(StructuredNode): forename = StringProperty() surname = StringProperty() At runtime there will be lots of…
jelly5798
  • 349
  • 2
  • 9