Is it somehow possible to combine these two queries in one:
select expand(outE()) from #16:11
select expand(out()) from #16:11
Best regards
Kristoffer Larsen
kl. 09:34:53 UTC+1 fredag 14. november 2014 skrev Kristoffer Larsen
følgende:
>
> Hello
>
> Traverse returns a list of all edges and vertices that has been traversed,
> thats not what I am looking for.. I want the edge property to be in the
> same object as the vertex properties.
> Some query like:
>
> Select expand(outV('contains')), expand(outE('contains')) from #16:11
>
> But i cant do a double expand, I would think this is possible since each
> node property have a vertex property, and all I after is a query that joins
> these two in one object and returns them
>
> kl. 22:38:15 UTC+1 torsdag 13. november 2014 skrev [email protected]
> følgende:
>>
>> Have you tried using traverse?
>> http://www.orientechnologies.com/docs/last/orientdb.wiki/Java-Traverse.html
>>
>> The result set will contain the traversal tree, so if you want to store
>> the information in a graph-like structure you'd need to rebuild the tree,
>> but it will all be there. Each result in the result set will be a vertex or
>> edge (for heavyweight edges), the information won't be mixed into a single
>> result.
>>
>> Traverse can be slow, so if you use it, it would be wise to limit the
>> target (eg, "from #16:11" instead of say "from V"), and maybe limit the
>> depth and/or fields returned in the result set.
>>
>> On Thursday, November 13, 2014 12:15:39 PM UTC-6, Kristoffer Larsen wrote:
>>>
>>> Hello
>>>
>>> Is it possible to do a query were i can get both vertex and edge
>>> property togheter.
>>> Example graph:
>>>
>>>
>>> <https://lh3.googleusercontent.com/-ZM2Oq_xg_NU/VGT0ziukw7I/AAAAAAAAADY/o2WaR1PzA30/s1600/Skjermbilde%2B2014-11-13%2Bkl.%2B19.12.21.png>
>>>
>>>
>>> I want to do a query from node #16:11 where i can get all nodes
>>> connected with contains. I want the node and vertex properties expanded in
>>> one query, how it this possible?
>>>
>>> Best regard
>>> Kristoffer Larsen
>>>
>>>
>>>
>> The content of this email message is for informational purposes only and
>> is not intended as legal, accounting or any other form of professional
>> advice. Any information contained in this email message (including any
>> attachments) is not intended or written to be used, and cannot be used, for
>> the purpose of (i) avoiding penalties under the Internal Revenue Code or
>> (ii) promoting, marketing or recommending to another party any transaction
>> or matter addressed herein. IF YOU ARE AN UNINTENDED RECIPIENT: This email
>> may contain confidential material intended for the sole use of the intended
>> recipient(s). Any review, use, distribution or disclosure by others is
>> strictly prohibited. Please contact the sender by reply email and delete
>> all copies of this message. Your cooperation is appreciated.
>>
>
--
---
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.