![]() PhyAddress.addAttribute("address",data) įinal DocumentEntity from = aphCreateVertex("testGraph", "DeviceId", device, null) įinal DocumentEntity to = aphCreateVertex("testGraph", "PhysicalLocation", phyAddress, null) ĪrangoDriver. String handlePhyAddress = "PhysicalLocation/" + keyPhyAddress In the following, we will import a graph dataset into ArangoDB, export the graph from ArangoDB into the cuGraph.Graph format and and run a cuGraph algorithm. Click the From MongoDB button on the CData ribbon. De bestaande import plugins werken men meestal rechtstreeks in de database van de webshop en gebruikt men Excel om nog te importeren data geschikt te maken. This links the Excel spreadsheet to the MongoDB table selected: After you retrieve data, any changes you make to the data are highlighted in red. A method you can try is to first export your Mongo database into a JSON file as: mongoexport -db databaseName -collection collectionName -out dump.json. String handleDevice = "DeviceId/" + keyDevice ĭevice.addAttribute("device_id",data) To insert data into MongoDB, you will first need to retrieve data from the MongoDB table you want to add to. if you know the key attributes of the vertices you can build the document handle by "collectionName" + "/" + "documentKey".īaseDocument device = new BaseDocument() īaseDocument phyAddress = new BaseDocument() Since this is a dump of a complete database, you can use arangorestore to import this. However, it takes a while to translate the debian package database into arangodb documents, so here is a dump of the Debian Jessie package database. Use data source plugins when you want to import data from. For your problem with the batch mode in the arango java driver. The script used to gather this graph data is available alongside with pyarango. By adding a data source plugin, you can immediately use the data in any of your existing dashboards.
0 Comments
Leave a Reply. |