Re: [orientdb] Re: Help converting relational database schema to graph

2015-03-19 Thread Ata Annamamedov
I'm glad it could work for you. And yes, it is absolutely possible to add link property on the edge (we do that without any problem). With best regards, Ata On Wed, Mar 18, 2015 at 8:18 PM, Phil gilberth...@gmail.com wrote: Thanks Ata, yes that would work if it's possible to add a link

[orientdb] How to move a vertex and maintain relations

2015-03-19 Thread CasperCLD
The title pretty much says all. I want to move a record in OrientDB from the 'Asset' class to a new class (that keeps the old version of the class 'Asset'). This is possible with MOVE VERTEX x to y. However this creates a new @RID for the node and I don't want to update all relations of the old

Re: [orientdb] Re: Is using ElasticSearch with OrientDB possible?

2015-03-19 Thread Nicolas Harraudeau
Hi Enrico, Thank you for your rapid answer. This is indeed an interesting possibility. However, I see some problems: - If I understand correctly there is one index per OrientDB node. Elasticsearch has its own replication and consistency mechanism. Thus the index should be updated only once.

Re: [orientdb] Determine record owner?

2015-03-19 Thread Rob Gratz
I checked the _allow field and it does have the owner, but I am also using that field to implement hierarchical access to data so that field has more than just the owner. It has the owner and all of the owner's parents so not an easy way to determine which in fact is the owner of the data.

Re: [orientdb] Determine record owner?

2015-03-19 Thread Luigi Dell'Aquila
Hi Rob, you could just define a new hook that just tracks the information you need. You can start just copy/pasting ORestrictedAccessHook Luigi 2015-03-19 15:28 GMT+01:00 Rob Gratz gratz@gmail.com: I checked the _allow field and it does have the owner, but I am also using that field to

[orientdb] Re: Tinkerpop3 support in OrientDB

2015-03-19 Thread odbuser
No I don't think there is any support. OrientDB 2.0 still uses Tinkerpop 2.4.0. Tinkerpop3 changes a lot things... including subprojects like Frames which doesn't exist in the same form anymore. What is the strategy concerning Tinkerpop3? I would also like to use it but it will also require

[orientdb] Re: How to move a vertex and maintain relations

2015-03-19 Thread CasperCLD
In the web UI i execute: MOVE VERTEX #12:0 TO CLASS:Version And the result is: { result: [ { @type: d, @version: 0, old: #12:0, new: #16:0, @fieldTypes: old=x,new=x } ], notification: Query executed in 0.024

Re: [orientdb] Re: filter by edge property both ways

2015-03-19 Thread Mihai Pricop
As vitorenesduarte suggested, I found the answer. Yes I should look for edges, filter the edges, than take out the vertices from the edges, like following: select expand( unionAll(inE('knows')[method='friend'].out, outE('knows')[method='friend'].in ) from rid The problem with this query is that

[orientdb] Re: How to move a vertex and maintain relations

2015-03-19 Thread odbuser
OrientDB 2.0.5 MOVE doesn't work at all for me... but even if it did, are you sure it's supposed to keep copy and create a new rid? I wouldn't think so but I can't verify it. create class A extends V Class created successfully... create class B extends V Class created successfully...

[orientdb] Re: Help converting relational database schema to graph

2015-03-19 Thread Colin
Hi Phil, It's the query that never ends...! I looked over your schema and data, and maybe I misunderstood you or came up with my own interpretation, but in my mind each tag was its own instance 'owned' by a particular person. I would expect that a person could create his own custom tags from

[orientdb] Re: OrientDB Community 2.0.3 - Losing connection to a remote database

2015-03-19 Thread Ivan Jovanovic
Hello Colin, Thanks again for your reply and your time! By preparing a code snippet to send it to you, I started commenting the code to explain what particular pieces of code are meant to do. While doing so, I realized what the problem was! During all this time I failed to see that the

[orientdb] Re: Pass parameters in REST command?

2015-03-19 Thread Rasmus Eneman
No one? Is there really no way to pass parameters via REST? As they works in the Java API I would assume I can pass parameters via the REST API. On Saturday, March 14, 2015 at 12:22:18 PM UTC+1, Rasmus Eneman wrote: I'm trying to build a Dart driver for OrientDB but can't find how to pass

[orientdb] OrientDB query second level of relationship keeping the intermediate id

2015-03-19 Thread Mihai Pricop
I want to query a vertex in OrientDB graph database to get the second level vertices, keeping the in between vertex id. The relationship would be represented as such: User --edge-- User --edge-- User (1) (2) (3) For User 1, I want to get all User 3 (distance of 2

[orientdb] Re: Is using ElasticSearch with OrientDB possible?

2015-03-19 Thread Nicolas Harraudeau
Hi Patrick, I have searched a way to do it myself but didn't found a correct way to do it. Here is what I found: Having worked with indexing problems before on another search engine and other sources, there are always two different jobs: - The first one does a full scan of the source. With

Re: [orientdb] Re: Is using ElasticSearch with OrientDB possible?

2015-03-19 Thread Enrico Risa
Hi Guys, i'm the maintainer of Lucene Plugin, for the plugin i implemented a custom index engine. You can see some documentation here. http://www.orientechnologies.com/docs/2.0/orientdb.wiki/Custom-Index-Engine.html The integration should not be too hard. Once implemented You could create an

Re: [orientdb] Re: Pass parameters in REST command?

2015-03-19 Thread Enrico Risa
Hi Rasmus i think there is not such way to pass parameters via Rest. Query/Command api works with get where query is in the url or post where query is in the body. 2015-03-19 16:47 GMT+01:00 Rasmus Eneman pie.or@gmail.com: No one? Is there really no way to pass parameters via REST? As