# Creating generic graph model by Java API

**URL:** <https://community.neo4j.com/t/creating-generic-graph-model-by-java-api/17465>\
**Category:** Java\
**Tags:** graph, modeling\
**Created:** [April 22, 2020, 11:02am UTC](https://community.neo4j.com/t/creating-generic-graph-model-by-java-api/17465 "2020-04-22T11:02:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SiwyDym](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/siwydym/32/10751_2.png) [@SiwyDym](https://community.neo4j.com/u/SiwyDym)\
**Post date:** [April 22, 2020, 11:02am UTC](https://community.neo4j.com/t/creating-generic-graph-model-by-java-api/17465/1 "2020-04-22T11:02:57Z")

</div>

Hi, I want to create app in which can be possible to create graph based on putted configuration. For now it's on very beginning, I had two nodes(Child,Parent), and two hard coded relations in this nodes, and can create simple graph. but for now I don't know how to use labels, relation, indexes. There are some resource to learn how to modelling this by java API, or maybe be more precise, how to use JAVA API in modeling?

Thanks

---

<div class="post-metadata">

**Author:** ![jggomez](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jggomez/32/7793_2.png) [@jggomez](https://community.neo4j.com/u/jggomez)\
**Post date:** [May 2, 2020, 4:25am UTC](https://community.neo4j.com/t/creating-generic-graph-model-by-java-api/17465/2 "2020-05-02T04:25:35Z")

</div>

Hi, you can do the courses by neo4j ( [GraphAcademy Online Training - GraphAcademy Online Training](https://neo4j.com/graphacademy/online-training) )

You want to create a graph from JAVA, you can use neo4j Java API and driver ([Using Neo4j from Java - Developer Guides](https://neo4j.com/developer/java/))

If you want to design a special Java API, use DSL

Thanks
