Export RDF from neo4j

How do you export an entire Neo4j graph to RDF? I have tried neosemantics app, adding the neosemantics plugin to neo4j desktop, and using rdflib-neo4j. None of it seems to work. This should be a pretty simple thing to do. Anyone any ideas?

1 Like

same here !!
I want to build a knowledge graph but I'm stuck at this point.

After hearing from several people, both confused (like us) and those who attempt to offer solutions, I am wondering whether exporting to RDF is a ruse. I would like someone to prove me wrong.

Scott - should be possible with Neosemantics... Exporting RDF data - Neosemantics

You just need to construct a query to return the whole graph. Something like:

match (n) return n union match ()-[n]-() return n

@john.stegeman Thank you for replying. The issue is not, "using the correct Cypher to return the whole graph". I am unable to do several things. 1.) enter into the Neosemantics app. 2.) have the Neosemantics plugin display as installed in Neo4j desktop ( yes I did install the correct version jar file in the correct plugins directory and set the setting in the conf file). 3.) run cypher commands in the browser. I have attached some screenshots in this and the next 2 replies.

@scott6
did you check this link : GitHub - neo4j-labs/neosemantics: Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧

Another thing about your graph,
is it imported like RDF or you build it ?

It was built. I doubt the import feature would work since the export feature is not. I will look through your previous post. Thanks.

Hey @scott6, the last neosemantics release was for Neo4j version 5.14, so I'd recommend selecting that version in Neo4j Desktop if you haven't already.

I'm the author of the neosemantics app. To be honest, it hasn't been touched in a long while and has some really old/outdated UI dependencies, so I can't get it to build on my local machine. Sorry about that! The app is more of a helper than anything else, so it won't stop you from using the plugin or executing the procedures in Neo4j Browser.

Let me know if I can help out in any way

Thanks @adam_cowley . I tried to download 5.14 of the plugin. I placed the jar file in the plugins folder and then ran Desktop. I am still seeing the same results. No ability to install it from the Desktop and Neosemantics app keeps spinning when trying to load it.

What I am trying to do is get an export of the Graph database in RDF format. According to Neo4j's documentation, the steps I have done is the way to do this. If there is some other way to allow me to achieve my goal, then please let me know.

Thanks.