# CSV to RDF N-QUAD conversion for DGraph

**URL:** <https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303>\
**Category:** Users\
**Created:** [April 9, 2019, 4:15pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303 "2019-04-09T16:15:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![amipandatdoc](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amipandatdoc/32/1674_2.png) [@amipandatdoc](https://discuss.dgraph.io/u/amipandatdoc)\
**Post date:** [April 9, 2019, 4:15pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/1 "2019-04-09T16:15:04Z")

</div>

Hello,  
I want to convert csv data to RDF N-Quad format .  
I have looked for a tool on github but it shows error 404.

 ![Screenshot%20from%202019-04-09%2021%3A49%3A09](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/3/36b717e615e355accd42bcb32cc0ed4e3f5b9666.png)  
Is there any way for this conversion?

---

<div class="post-metadata">

**Author:** ![dmai](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/dmai/32/1254_2.png) [@dmai](https://discuss.dgraph.io/u/dmai)\
**Post date:** [April 9, 2019, 4:20pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/2 "2019-04-09T16:20:43Z")

</div>

If you’re looking to load data into Dgraph, you can convert [CSV into JSON](https://docs.dgraph.io/howto/#loading-csv-data) and then load it into Dgraph.

---

<div class="post-metadata">

**Author:** ![amipandatdoc](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amipandatdoc/32/1674_2.png) [@amipandatdoc](https://discuss.dgraph.io/u/amipandatdoc)\
**Post date:** [April 9, 2019, 4:25pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/3 "2019-04-09T16:25:42Z")

</div>

Actually I have 98522 triples in csv file …so after converting it into JSON I have run it into mutation console but it shows an error that Transaction aborted rpc error. It works fine till 40000 triples.  
Then I have tried to use Dgraph live but it only accepts rdf.gz file  
So…now what to do?

---

<div class="post-metadata">

**Author:** ![dmai](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/dmai/32/1254_2.png) [@dmai](https://discuss.dgraph.io/u/dmai)\
**Post date:** [April 9, 2019, 4:42pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/4 "2019-04-09T16:42:00Z")

</div>

Aborts transactions are OK during a live load. The live loader will retry an aborted transaction until it succeeds. If it gets stuck retrying the transaction, then it’s possible that the data is invalid and the mutation never succeeds.

Bulk Loader supports JSON data in the latest version. JSON support for the Live Loader will be available in the next release this month.

---

<div class="post-metadata">

**Author:** ![amipandatdoc](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amipandatdoc/32/1674_2.png) [@amipandatdoc](https://discuss.dgraph.io/u/amipandatdoc)\
**Post date:** [April 9, 2019, 4:43pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/5 "2019-04-09T16:43:25Z")

</div>

Okay so I can use Bulk loader as of noe for JSON data…right?

---

<div class="post-metadata">

**Author:** ![dmai](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/dmai/32/1254_2.png) [@dmai](https://discuss.dgraph.io/u/dmai)\
**Post date:** [April 9, 2019, 4:45pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/6 "2019-04-09T16:45:03Z")

</div>

Bulk Loader supports JSON data in the latest release v1.0.13.

---

<div class="post-metadata">

**Author:** ![amipandatdoc](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amipandatdoc/32/1674_2.png) [@amipandatdoc](https://discuss.dgraph.io/u/amipandatdoc)\
**Post date:** [April 9, 2019, 4:46pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/7 "2019-04-09T16:46:19Z")

</div>

okay…  
Thanks a ton!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [May 9, 2019, 4:46pm UTC](https://discuss.dgraph.io/t/csv-to-rdf-n-quad-conversion-for-dgraph/4303/8 "2019-05-09T16:46:20Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
