# DAG graph repesented as a JSON file to ML feature vectors

**URL:** <https://community.neo4j.com/t/dag-graph-repesented-as-a-json-file-to-ml-feature-vectors/6586>\
**Category:** Neo4j Graph Platform\
**Created:** [April 14, 2019, 10:06am UTC](https://community.neo4j.com/t/dag-graph-repesented-as-a-json-file-to-ml-feature-vectors/6586 "2019-04-14T10:06:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amroghoneim](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/amroghoneim/32/4334_2.png) [@amroghoneim](https://community.neo4j.com/u/amroghoneim)\
**Post date:** [April 14, 2019, 10:06am UTC](https://community.neo4j.com/t/dag-graph-repesented-as-a-json-file-to-ml-feature-vectors/6586/1 "2019-04-14T10:06:38Z")

</div>

Hi,  
I am trying to extract features from graph given as a JSON file and then use these features to train and test a certain task. how do I go about doing this?

---

<div class="post-metadata">

**Author:** ![david\_allen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/david_allen/32/13090_2.png) [@david\_allen](https://community.neo4j.com/u/david_allen)\
**Post date:** [April 14, 2019, 8:43pm UTC](https://community.neo4j.com/t/dag-graph-repesented-as-a-json-file-to-ml-feature-vectors/6586/2 "2019-04-14T20:43:50Z")

</div>

Relative to the training and testing, beats me; depends entirely on what you're trying to get out of the data.

To begin the process though, use `apoc.load.json` to load the JSON URL. You'll get an object in memory which you can then process with cypher to create a graph. What you do with the graph then is up to you. [Neo4j APOC Procedures User Guide](https://neo4j-contrib.github.io/neo4j-apoc-procedures/#load-json)
