Import JSON-LD data in neo4j

Hi,

Did any one load JSON-LD data using apoc.load.json function or cypher?
Please share your thoughts and inputs.

Thanks,
Rajendra

Hey,

I think you can import JSON-LD data using neosemantics - http://jbarrasa.github.io/neosemantics/

Cheers, Mark

Thank you Mark.
Are there any other options available other than neosemantics like APOC or Cypher?

Thanks,
Rajendra

Not that I know of. I think neosemantics actually depends on APOC to do the JSON-LD import.

1 Like

After installing APOC & Neosemantics plugins, run the following cypher query.

CALL n10s.graphconfig.init();

CREATE CONSTRAINT n10s_unique_uri ON (r:Resource) ASSERT r.uri IS UNIQUE;

CALL n10s.rdf.import.fetch("file:///C:\Users\name\file_loaction\file_name.jsonld","JSON-LD");

After this step, json-ld file will be loaded and the output will have status OK & total triplets count.

You will find this link useful: https://neo4j.com/docs/labs/nsmntx/current/import/