Company
Date Published
Author
Michael Hunger
Word count
1601
Language
English
Hacker News points
None

Summary

Neo4j's query language Cypher can be used to load data from CSV directly, but not from JSON files or URLs. However, with the help of user-defined procedures like `apoc.load.json`, it is possible to ingest document-structured information from APIs and other sources into a more usable graph model. This can be achieved by retrieving data from APIs that return JSON responses, such as Stack Overflow's API, and then using Cypher queries to deconstruct and insert the data into Neo4j. The process involves creating a graph model, building a Cypher query to import the data, and executing it on the Neo4j server or embedded API. Different programming languages like Python, JavaScript, Ruby, Java, and Bash can be used to call the transactional Cypher endpoint directly, allowing developers to easily access web-APIs and transform their data into a graph structure without duplication of information and rich relationships.