There are several different ways to load graph data into Amazon Neptune:
If you only need to load a relatively small amount of data, you can use queries such as SPARQL
INSERT
statements or GremlinaddV
andaddE
steps.You can take advantage of Neptune Bulk Loader to ingest large amounts of data that reside in external files. The bulk loader command is faster and has less overhead than the query-language commands. It is optimized for large datasets, and supports both RDF (Resource Description Framework) data and Gremlin data.
You can use AWS Database Migration Service (AWS DMS) to import data from other data stores (see Using AWS Database Migration Service to load data into Amazon Neptune from a different data store, and AWS Database Migration Service User Guide).
Finally, you can use Gremlin's
g.io(URL).read()
step to read in data files in GraphML(an XML format), GraphSON (a JSON format), and other formats. See TinkerPop documentation for details.