REST::Neo4p - Perl object bindings for a Neo4j database
use REST::Neo4p; REST::Neo4p->connect('http://127.0.0.1:7474');
REST::Neo4p provides a Perl 5 object framework for accessing and manipulating a Neo4j graph database server via the Neo4j REST API. Its goals are
REST::Neo4p
(1) to make the API as transparent as possible, allowing the user to work exclusively with Perl objects, and
(2) to exploit the API's self-discovery mechanisms, avoiding as much as possible internal hard-coding of URLs.
Neo4j entities are represented by corresponding classes:
Nodes : REST::Neo4p::Node
Relationships : REST::Neo4p::Relationship
Indexes : REST::Neo4p::Index
Actions on class instances have a corresponding effect on the database (i.e., REST::Neo4p approximates an ORM).
The class REST::Neo4p::Query provides a DBIesqe Cypher query facility.
REST::Neo4p->connect( $server )
$node = REST::Neo4p->get_node_by_id( $id );
$relationship = REST::Neo4p->get_relationship_by_id( $id );
$index = REST::Neo4p->get_index_by_name( $name );
@all_relationship_types = REST::Neo4p->get_relationship_types;
@all_indexes = REST::Neo4p->get_indexes; @node_indexes = REST::Neo4p->get_node_indexes; @relationship_indexes = REST::Neo4p->get_relationship_indexes;
Mark A. Jensen CPAN ID: MAJENSEN majensen -at- cpan -dot- org
To install REST::Neo4p, copy and paste the appropriate command in to your terminal.
cpanm
cpanm REST::Neo4p
CPAN shell
perl -MCPAN -e shell install REST::Neo4p
For more information on module installation, please visit the detailed CPAN module installation guide.