# How to generate rdf.gz file

**URL:** <https://discuss.dgraph.io/t/how-to-generate-rdf-gz-file/5009>\
**Category:** Dgraph\
**Created:** [September 5, 2019, 2:47am UTC](https://discuss.dgraph.io/t/how-to-generate-rdf-gz-file/5009 "2019-09-05T02:47:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chengxinpeng](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chengxinpeng/32/2034_2.png) [@chengxinpeng](https://discuss.dgraph.io/u/chengxinpeng)\
**Post date:** [September 5, 2019, 2:47am UTC](https://discuss.dgraph.io/t/how-to-generate-rdf-gz-file/5009/1 "2019-09-05T02:47:55Z")

</div>

I use gzip to zip rdf file,but i find it can’t be loaded into dgraph,which method i can use to generate data by myself

 ![%E5%9B%BE%E7%89%87](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/c/c1128f94879dbae3a29dbc6de78b0b2ff0124f3d.png)  
 ![%E5%9B%BE%E7%89%87](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/9/9e011d6e954e60a0132971614329d1d0b1169e99.png)

---

<div class="post-metadata">

**Author:** ![amanmangal](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amanmangal/32/1249_2.png) [@amanmangal](https://discuss.dgraph.io/u/amanmangal)\
**Post date:** [September 5, 2019, 3:01am UTC](https://discuss.dgraph.io/t/how-to-generate-rdf-gz-file/5009/2 "2019-09-05T03:01:54Z")

</div>

I think something seems off with the rdf data itself. Could you provide some example data here?
