Hi Anmol,

You can do it with ETL, just using EDGE transformer and then defining the
loader like this (see useLightweightEdges: true):

"loader": {
        "orientdb": {
            "dbURL": ">yourDbUrl>",
            "dbType": "graph",
            "useLightweightEdges": true
        }
    }

I hope it helps

Luigi


2015-07-28 17:22 GMT+02:00 Anmol Deep <[email protected]>:

> but edge will not create Light weight Edges , we need Light Weight Edges
> without any class extension E , without any recordID being created.
>
> Regards
> Anmol
>
> On Tue, Jul 28, 2015 at 8:37 PM, Luca Garulli <[email protected]>
> wrote:
>
>> Use the "edge" transformer in ETL, not LINK.
>>
>> Best Regards,
>>
>> Founder & CEO
>> OrientDB <http://orientdb.com/>
>>
>>
>> On 28 July 2015 at 16:27, <[email protected]> wrote:
>>
>>> Hi,
>>> I did not manage to create a bi-directional lightweight with .json
>>> configuration by using ETL.
>>> If you want you can create the link from the class A to the class B
>>> using ETL and after you can use this javascript function
>>> to create the edges from B to A.
>>>
>>> var g=orient.getGraph();
>>> var b=g.command('sql','select from in_ReferenceOfA');
>>> for(i=0;i<b.length;i++){
>>>   rid_out=b[i].getProperty('out').getId().toString();
>>>   rid_in =b[i].getProperty('in').getId().toString();
>>>   g.command('sql',"create edge out_ReferenceOfB from " + rid_in + " to
>>> "+ rid_out);
>>> }
>>>
>>>
>>> Regards,
>>> Alessandro
>>>
>>> --
>>>
>>> ---
>>> 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.
>>>
>>
>>
>
>
> --
> Kind Regards,
> Anmol Deep
>
> --
>
> ---
> 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.

Reply via email to