Giter Site home page Giter Site logo

neo_active_graph's Introduction

NeoActiveGraph

Build Status

Code ClimateCode Climate Coverage

An ActiveRecord-like Neography wrapper.

The aim is to get as close as possible to the Active Record usage metods as possible. This gem relies on the Neo4j REST API. No JRuby! Yay!!

Changelog

v0.0.4

  • Initial release (WIP)

Installation

It's an early WIP. Install from here only at the moment.

Configuration

Configure Neography separately like here

OR

just use the quick init method

NeoActiveGraph.configure "http://user:[email protected]:7474"

Define Models

Define models for nodes and relationships. Both types work almost alike, except that they inherit from different classes:

  • Nodes from NeoActiveGraph::Node
class User < NeoActiveGraph::Node

  label "User"

  unique "USER_IDX", :name

  property :name, :type => String, :presence => true
  property :email, :type => String, :presence => true, :format => /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
  property :age, :type => Fixnum
end
  • Relationships from NeoActiveGraph::Relationship
# TODO

Usage

Nodes

Creating and manipulating nodes...

##License

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

Copyright (C) 2013 Paweł Waleczek [email protected]

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

You just DO WHAT THE FUCK YOU WANT TO.

neo_active_graph's People

Contributors

pwaleczek avatar

Stargazers

 avatar Régis Gaidot avatar

Watchers

James Cloos avatar

neo_active_graph's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.