py2neo.ogm.models.movies
– Models for the Neo4j movies database
This module contains OGM models suitable for use with the Neo4j movies
database.
-
class py2neo.ogm.models.movies.Movie(*values, **properties)[source]
-
__primarylabel__ = 'Movie'
-
__primarykey__ = 'title'
-
actors
RelatedFrom(Person
, relationship_type=’ACTED_IN’)
-
directors
RelatedFrom(Person
, relationship_type=’DIRECTED’)
-
producers
RelatedFrom(Person
, relationship_type=’PRODUCED’)
-
released
Property(key=’released’)
-
reviewers
RelatedFrom(Person
, relationship_type=’REVIEWED’)
-
tagline
Property(key=’tagline’)
-
title
Property(key=’title’)
-
writers
RelatedFrom(Person
, relationship_type=’WROTE’)
-
class py2neo.ogm.models.movies.Person(*values, **properties)[source]
-
__primarylabel__ = 'Person'
-
__primarykey__ = 'name'
-
acted_in
RelatedTo(Movie
, relationship_type=’ACTED_IN’)
-
born
Property(key=’born’)
-
directed
RelatedTo(Movie
, relationship_type=’DIRECTED’)
-
name
Property(key=’name’)
-
produced
RelatedTo(Movie
, relationship_type=’PRODUCED’)
-
reviewed
RelatedTo(Movie
, relationship_type=’REVIEWED’)
-
wrote
RelatedTo(Movie
, relationship_type=’WROTE’)