Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-07-2019 10:26 PM
Hi all, I'm trying to export a sub graph out from my main graph and then load the sub graph into a new database. What's the best way to do it? I've the query for my sub graph.
MATCH (mainField:Field {fieldID:'F_0271BC14'})<-[:PART_OF_FIELD*..]-(subField:Field)
WITH subField, mainField
MATCH (Institute:Institute)<-[r:WORKED_IN]-(Author:Author)<-[:WRITTEN_BY]-(paperINsub:Paper)-[:PAPER_IN_FIELD]->(subField),
(Journal:Journal)<-[:PUBLISHED_ON]-(paperINsub)-[:PUBLISHED_ON]->(Conference:Conference),
(paperINsub)-[:CITED]-(paperINsub)
RETURN Institute,Author,paperINsub,subField,Journal,Conference
I want the label relation and nodes to be the same and export to a new graph. Thanks
03-08-2019 12:44 AM
Take a look at the export
procedures in APOC.
03-09-2019 06:07 AM
03-09-2019 05:24 PM
THANKS. Managed to do it with apoc.export.graphml.data
All the sessions of the conference are now available online