Really appreciate your reply , but I think may be I have been unable to
explain my problem clearly , I will do one more try .
I am putting down my Schema now :
orientDB class Shelf
Properties :
---
out_ShelfContainsSlotBINARYBOOLEANEMBEDDEDEMBEDDEDLISTEMBEDDEDMAPEMBEDDEDSET
DECIMALFLOATDATEDATETIMEDOUBLEINTEGERLINKLINKLISTLINKMAPLINKSETLONGSHORT
STRINGBINARYBOOLEANEMBEDDEDEMBEDDEDLISTEMBEDDEDMAPEMBEDDEDSETDECIMALFLOAT
DATEDATETIMEDOUBLEINTEGERLINKLINKLISTLINKMAPLINKSETLONGSHORTSTRINGCard
CircuitConnectionCustomerLocationDeviceEElementManagerEquipmentExchange
ExchangeLocalAddressForkJoinProcessGroupVertexGeoCoordinateLagLocation
LogicalPortNumberNumberPoolOFunctionOIdentityORIDsORestrictedORoleOSchedule
OTriggeredOUserPassiveDevicePhysicalConnectionPhysicalPortPort
ProcessDesignVertexProcessGroupVertexProcessVertexProtectionGroupRack
ReservationSequenceProcessGroupVertexServiceServicePackageShelfSlotV_studioCase
Insensitivedefault
Rename
Drop
----
orientDB class Slot
Properties :
in_ShelfContainsSlotBINARYBOOLEANEMBEDDEDEMBEDDEDLISTEMBEDDEDMAPEMBEDDEDSET
DECIMALFLOATDATEDATETIMEDOUBLEINTEGERLINKLINKLISTLINKMAPLINKSETLONGSHORT
STRINGBINARYBOOLEANEMBEDDEDEMBEDDEDLISTEMBEDDEDMAPEMBEDDEDSETDECIMALFLOAT
DATEDATETIMEDOUBLEINTEGERLINKLINKLISTLINKMAPLINKSETLONGSHORTSTRINGCard
CircuitConnectionCustomerLocationDeviceEElementManagerEquipmentExchange
ExchangeLocalAddressForkJoinProcessGroupVertexGeoCoordinateLagLocation
LogicalPortNumberNumberPoolOFunctionOIdentityORIDsORestrictedORoleOSchedule
OTriggeredOUserPassiveDevicePhysicalConnectionPhysicalPortPort
ProcessDesignVertexProcessGroupVertexProcessVertexProtectionGroupRack
ReservationSequenceProcessGroupVertexServiceServicePackageShelfSlotV_studioCase
Insensitivedefault
Rename
Drop
Now consider Shelf .csv *has* *no* reference of Slot and Slot.csv *has*
*reference* of Shelf in the .csv as foreign key .
Now please help me how can I use Edge transformer to create bidirectional
references .
OK I may have got the understanding of lightWeightEdges wrong as internally
implemented as *LINKS* , sorry for that .
Now we are clear , can you help me Luca , Luigi .
Best Regards
Anmol Deep
On Wednesday, 29 July 2015 12:09:47 UTC+5:30, Luigi Dell'Aquila wrote:
> sorry, wrong formatting:
>
> "loader": {
> "orientdb": {
> "dbURL": "<yourDbUrl>",
> "dbType": "graph",
> "useLightweightEdges": true
> }
> }
>
>
> 2015-07-29 8:39 GMT+02:00 Luigi Dell'Aquila <[email protected]
> <javascript:>>:
>
>> 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] <javascript:>>
>> :
>>
>>> 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]
>>> <javascript:>> 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] <javascript:>> 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] <javascript:>.
>>>>> 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] <javascript:>.
>>> 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.