[orientdb] Re: How to get records that are linked to each of given vertices

2015-03-12 Thread Red-0ne
or how many will be queried. This is not an efficient query if Data contains millions of edges. It would be easier to build using the Blueprints Graph API. -Colin On Friday, March 6, 2015 at 3:39:12 PM UTC-6, Red-0ne wrote: Ok here is an example: CREATE DATABASE remote:localhost/testdb root

[orientdb] Re: Pass object to OrientDB function

2015-03-07 Thread Red-0ne
You can do it as per function documentation http://www.orientechnologies.com/docs/2.0/orientdb.wiki/OrientDB-REST.html#function but you have to *url encode* your serialized object. In order to pass: {x:1,y:2} you have to send:

[orientdb] Re: How to get records that are linked to each of given vertices

2015-03-06 Thread Red-0ne
. Sorry, if I'm being dense. :-) -Colin On Thursday, March 5, 2015 at 4:05:44 PM UTC-6, Red-0ne wrote: Sorry for being misleading. A, B, C are vertices of themselves and created through CREATE VERTEX command. I just tried to represent them by their @rids in the above query. On Thursday, 5

[orientdb] Re: How to get records that are linked to each of given vertices

2015-03-05 Thread Red-0ne
but not. :-) Are A, B, C always unique 'tags' as in properties of vertices that denote some kind of type? Or, are A, B, C types of vertices themselves? On Thursday, March 5, 2015 at 5:37:37 AM UTC-6, Red-0ne wrote: Actually vertices A, B, C... are kind of *tags*, and Vi are *data*. My

[orientdb] How to get records that are linked to each of given vertices

2015-03-03 Thread Red-0ne
I have a database where vertices *Vi* are linked to vertex *A* or *B* or *both* via edge *'hasAspect*'. I want to get all the vertices that are linked to both *A* and *B*. The only way I found is (having A and B being @rids): SELECT FROM V WHERE out('hasAspect') CONTAINS (@rid = A) AND

[orientdb] Error updating OUser record when OIdentity extends V

2015-01-27 Thread Red-0ne
Hello, We are trying to have a *Member* class that extends *OUser*. This *Member *class should also extends *V*. Additionally, *V* have to extend *ORestricted*. A *member* ORole is needed to. For that we've done the following (using console.sh): DROP DATABASE remote:localhost/sometestdb root

[orientdb] Re: Error updating OUser record when OIdentity extends V

2015-01-27 Thread Red-0ne
UTC+1, Red-0ne wrote: Hello, We are trying to have a *Member* class that extends *OUser*. This *Member *class should also extends *V*. Additionally, *V* have to extend *ORestricted*. A *member* ORole is needed to. For that we've done the following (using console.sh): DROP DATABASE