Skip to content

Query nodes from Neo4j

Minh Dung Do edited this page Jan 23, 2022 · 1 revision

Query data.

Procedure to query training data.

RETURN main.queryTrainData("node")

This procedure is used to query the training dataset from Neo4j and populate the global trainDataList in Java Code. "node" stands for the name of the node in Neo4j that the user would like to query.

Query testing data.

RETURN main.queryTestData("node")

This procedure is used to query the testing dataset from Neo4j and populate the global testDataList in Java Code. "note" stands for the name of the node in Neo4j that the user would like to query.

Query and auto split data.

RETURN main.queryAutoSplitData("node","train_ratio")

This procedure is used to query the nodes from the Neo4j graph database and split the data based on the training ratio given. "node" stand for the name of the node in Neo4j that the user would like to query. "train_ratio" is the ratio of the training dataset (example: 0.7)

Clone this wiki locally