graphmalizer-core
v0.0.1
Published
A better graph
Downloads
5
Maintainers
Readme
Config
You must configure a mapping type → structure
neo4j:
host: localhost
port: 7474
types:
thing: node
relation: arc
equiv: equivalence
(in config.yaml
, config.json
or --config [filename.json|filename.yaml]
)
Input
Input data elements are of this form
{
dataset: /* string */,
type: /* what you defined in config */,
operation: /* 'add' or 'remove' */
// all optional, depends on the structure
id: '123',
s: '123',
t: '123',
// whatever you want
data: { /*...*/ }
}
API
One function, input: stream, output: stream.
Example code
var H = require('highland');
var graphmalizer = require('graphmalizer-core');
var stream = H([ {type: 'thing', id: 'x'} ]);
graphmalizer(stream)
.each(H.log);
Examples
See examples/