Hi Sonu, Have you looked at edge transformer? It does exactly what you need. Take a look at:
http://www.orientechnologies.com/docs/last/Import-from-CSV-to-a-Graph.html Lvc@ On 30 March 2015 at 15:58, sck2015 <[email protected]> wrote: > Hi, I am new to orientDB but have been perusing the ETL/orientDB json > examples. Is there any way to create multiple classes of vertices from the > same json fetch in a given source file.... so supposing my json file had > records that I wanted to create json vertices of classes: Person, > Occupation, Nationality in a single file, would there a way to identify > this in the json, supposing, off the cuff, json as follows: > > [ { name: "mark anthony", > occupation: "roman general", > nationality: "roman" > }, > { name: "aurangzeb", > occupation: "emperor", > nationality: "indian" > }, > { name: "cleopatra", > occupation: "queen", > nationality: "egyptian" > } > ] > > and then create edges of type: "hasOccupation", "isNationality", > > my question is there anyway to do this in a single json etl, I think I > would have to have separate source files with just the occupation and just > the nationaltiy. > ty, Sonu > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
