Thank you Luigi,
in this case is there a command to list all the existing "classes"
extending E?
The command CLASS doesn't list lightweight edges, since they're not real
classes.

Cheers,
   Riccardo

2014-11-25 18:27 GMT+01:00 Luigi Dell'Aquila <[email protected]>:

> Hi Riccardo,
>
> what TinkerPop calls labels is represented by OrientDB classes.
> You can create a lightweight edge of a particular class with this syntax:
>
> CREATE EDGE MyLabel FROM #14:1 TO #14:0
>
> Of course the class MyLabel has to exist and has to extend E
>
> If you use the SET labelName = value, the labelName will become a property
> of the edge, so the edge will become a regular one (not lightweight)
>
> Luigi
>
>
>
> 2014-11-25 18:21 GMT+01:00 Riccardo Tasso <[email protected]>:
>
>> Hi, if I tried the following command:
>> CREATE EDGE FROM #14:1 TO #14:0 SET @label="myLabel"
>> But it seems to create a new record in class E.
>> What if I would create a new lightweight edge from command line?
>>
>> I'm using orient 1.7.10.
>>
>> Cheers,
>>    Riccardo
>>
>> --
>>
>> ---
>> 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.
>

-- 

--- 
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