[orientdb] Re: Edge Query Issue

2015-06-03 Thread Thomas Kennedy
The issue was that I had not extended the Hour vertex as superclass V

On Wednesday, 3 June 2015 11:15:39 UTC+1, SavioL wrote:
>
> Hi Thomas,
>
> you can try a query like this:
>
> select name_event from (select expand(out('registered')) from Hour where 
> value = '23')
>
> regards,
> Luigi S.
>

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[orientdb] Re: Edge Query Issue

2015-06-03 Thread SavioL
Hi Thomas,

you can try a query like this:

select name_event from (select expand(out('registered')) from Hour where 
value = '23')

regards,
Luigi S.

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[orientdb] Re: Edge Query Issue

2015-06-02 Thread Thomas Kennedy
Correction it gives me the below record but I want to expand the 
out('registered_events') relationship

METADATAPROPERTIESOUT
@rid
@version
@class
hour
registered_events
#24:7 
41
Hour23
#27:0 
 
#27:1 
 
#27:2 
 
#27:3 
 
#27:4 
 
#27:5 
 

On Tuesday, 2 June 2015 23:39:55 UTC+1, Thomas Kennedy wrote:
>
> I have a time series model where I create an edge between a hour vertex 
> and an event vertex. The edge is called registered_event.
>
> I have tried the following query but it is not giving me results. Any 
> ideas?
>
> select expand(month[12].day[3].hour[23]).out('registered_event') from Year 
> where year = 2015
>
>
On Tuesday, 2 June 2015 23:39:55 UTC+1, Thomas Kennedy wrote:
>
> I have a time series model where I create an edge between a hour vertex 
> and an event vertex. The edge is called registered_event.
>
> I have tried the following query but it is not giving me results. Any 
> ideas?
>
> select expand(month[12].day[3].hour[23]).out('registered_event') from Year 
> where year = 2015
>
>
On Tuesday, 2 June 2015 23:39:55 UTC+1, Thomas Kennedy wrote:
>
> I have a time series model where I create an edge between a hour vertex 
> and an event vertex. The edge is called registered_event.
>
> I have tried the following query but it is not giving me results. Any 
> ideas?
>
> select expand(month[12].day[3].hour[23]).out('registered_event') from Year 
> where year = 2015
>
>

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.