# How to export my graph to RDF

**URL:** <https://community.neo4j.com/t/how-to-export-my-graph-to-rdf/61629>\
**Category:** Linked Data, RDF, Ontology\
**Created:** [March 23, 2023, 8:47am UTC](https://community.neo4j.com/t/how-to-export-my-graph-to-rdf/61629 "2023-03-23T08:47:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hxl1434302006](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/hxl1434302006/32/28100_2.png) [@hxl1434302006](https://community.neo4j.com/u/hxl1434302006)\
**Post date:** [March 23, 2023, 8:47am UTC](https://community.neo4j.com/t/how-to-export-my-graph-to-rdf/61629/1 "2023-03-23T08:47:21Z")

</div>

Hi, I am pretty new to Neo4j and the Graph Data Science Library. And I want to export the whole graph from my neo4j graph into RDF format. I studied the n10s documentation and tried to use

```
call n10s.rdf.export.cypher("match(n) return n",{stream:True})

```

and  
`call n10s.rdf.export.cypher("MATCH (n)-[r]-(m) RETURN n,r, m")`

But none of them work, the query results are empty.

But when I execute match(n) return n, the result is

 ![1679561064852](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/2/4/24304a3b955e04a63ca881e996318c643bb6697b.png)

So how can I export this graph in RDF format?

Thanks!

---

<div class="post-metadata">

**Author:** ![jesus\_barrasa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jesus_barrasa/32/27513_2.png) [@jesus\_barrasa](https://community.neo4j.com/u/jesus_barrasa)\
**Post date:** [March 27, 2023, 7:46am UTC](https://community.neo4j.com/t/how-to-export-my-graph-to-rdf/61629/2 "2023-03-27T07:46:48Z")

</div>

Difficult to say without some additional context.  
Is the graph the result of importing RDF?  
If it's not, then you don't need an GraphConfig so if there is one I suggest deleting it

```auto
call n10s.graphconfig.drop()

```

Can you give this a try and let us know if that solves the problem?

Thanks.

JB
