I'm working on a microservice linking system.  The way I have it structured 
in Orient is with 3 classes.  API, Version, Resource which each have a 
single property.  API has URL (e.g. http://items-api.coolworks.biz), 
Version has Name (e.g. v1), Resource has URI (e.g. item/1).  So obviously 
in the graph they are related as

     (API)->(Version)->(Resource)

Then what I do is relate the Resources to each other, such that 
http://items-api.coolworks.biz/v1/item/1 is related to 
http://owner-api.coolworks.biz/v1/owner/1.  Maybe that's best visualized 
thus

     (API)->(Version)->(Resource)
                                       |
                                  linked_to
                                       |
     (API)->(Version)->(Resource)

So what I'm looking for is a single query that will give me the 
concatenated URL's by combining the properties of the given nodes after 
finding the related Resources.

I've got this so far

    select expand(both('linked_to')) from (traverse linked_to from (select 
* from Resource where uri='item/1'))

which does properly find me the related Resources but rather than just 
return the Resource vertices I'd like to return the full URL based on these 
schema.

Any ideas? 

Thanks!
~Chris




-- 

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