Skip to content

jillix/flow-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Flow API

Environment

scope.env.FlowApiStore = {/*Store config*/};

Result

data.readable = ReadableObjectStream();

Public Methods

sequence

data.node = "nodeId";
data.role = "roleId";

getOutNodes

data.from = "nodeId";
data.out = ["predicate"];

getNodeData

data.node = "nodeId";

getNodeName

data.node = "nodeId";

setNodeData

data.node = "nodeId";
data.data = {};

setNodeName

data.node = "nodeId";
data.name = "Node Name!@#";

addOutNode

data.add = "FromNodeId";
data.out = "predicate";
data.node = "ToNodeId";

addOutCreate

data.add = "FromNodeId";
data.out = "predicate";
data.create = {
    name: "Node name!#@",
    data: {}
};

setOutNode

data.set = "FromNodeId";
data.out = "predicate";
data.node = "ToNodeId";

setOutCreate

data.set = "FromNodeId";
data.out = "predicate";
data.create = {
    name: "Node name!#@",
    data: {}
};

removeNode

data.node = "nodeId";

removeOut

data.node = "nodeId";
data.out = ["predicate"];

search

data.query = "Search query";
data.filters = {
    type: "nodeType",
    start: "nodeId"
};

Store API

sequence

  • NodeId
  • roleId

entrypoint

  • NodeName

outNodes

  • NodeId

getObject

  • NodeId

incomming

  • NodeId

outgoing

  • NodeId

remove

  • triples: Array of triples to delete.

write

  • triples: Array of triples to write.