Book Image

Building web applications with Python and Neo4j

By : Sumit Gupta
Book Image

Building web applications with Python and Neo4j

By: Sumit Gupta

Overview of this book

Table of Contents (14 chapters)
Building Web Applications with Python and Neo4j
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Declaring models and properties


In this section, we will discuss creating the model and the properties using various APIs exposed by Neomodel. We will also learn about the mapping of the models and properties with Neo4j nodes.

Let's move forward and see how Neomodel provides the mapping of Neo4j nodes and creates a data model.

Neo4j consists of nodes and these nodes can further have labels and properties. Properties in Neo4j can contain String, Numeric, Boolean, or collections of any other type of value. Refer to http://neo4j.com/docs/stable/property-values-detailed.html for the complete list of data types supported by Neo4j.

Neomodel defines all the necessary base classes for mapping Neo4j nodes and properties, provides a wrapper over the structure of Neo4j, and provides the full-fledged functionality of an object graph mapping.

Defining nodes

Neomodel defines neomodel.StructuredNode as a base class that needs to be extended by all the user defined classes, which intend to define the structure...