Coder Social home page Coder Social logo

anne's Introduction

ANNE

A example ANNE stack app (AngularJS, NodejS, Neo4j, Express)

Accompanying the standard npm neo4j driver is a custom JS Graph Manipulation library in /API/src/lib/graph.js

This js library standardizes a method of interacting with graph data allowing for Addition, Subtraction, and the computation of differences between any 2 subgraphs.

Subgraph - Standard collection of Nodes and Rels

{"nodes":{"uuid":"NodeObject"}, "rels":{"uuid":"RelObject"}}

Node - Standard Node Object

{"labels":[], "properties":{"uuid":"string", "arbitrary_props":""}}

Rel - Standard Relationship object

{"type":"type_string", "properties":{"uuid":"string", "arbitrary_props":""}, "from_id" : "uuid", "to_id":"uuid"}

Subgraph Indexes - These additional fields add no additional information to the Subgraph but do provide convenient O(1) lookups within the subgraph

{"nodes":{"uuid":"NodeObject"}, "rels":{"uuid":"RelObject"}, "node_label_index":{"label":["uuid_array"]}, "incoming":{"rel_type":{"to_node_uuid":["rel_uuid_array"]}}, "outgoing":{"rel_type":{"from_node_uuid":["rel_uuid_array"]}} }

Differences - Computed differences between any two Subgraphs.

{"Extra":"Subgraph", "Missing":"Subgraph", "Updated":{"nodes":{"updated":{"prop_titles":["node_uuid_array"]},"new":{"prop_titles":["node_uuid_array"]},"missing":{"prop_titles":["node_uuid_array"]}}, "rels":{"updated":{"prop_titles":["rel_uuid_array"]},"new":{"prop_titles":["rel_uuid_array"]},"missing":{"prop_titles":["rel_uuid_array"]}}}}

These JS Graph Management structures power the ANNE Stack operations, and can be performed Client-Side or Server-Side giving a standard messaging model to update state in either the DB or within a client application

anne's People

Contributors

ericcatlin avatar

Watchers

James Cloos avatar  avatar

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.