[orientdb] Using functions in studio

2015-03-18 Thread Jo Mo
I tried to use orient.getDatabase() and orient.getGraph() as described in documentation with no use. It always raise error: non instance of graph or no instance in db accordingly. What worked was the db object which is said by documentation to be for version 1.5 and before while I am using

[orientdb] OrientDB Community 2.0.5 - Seems bug: two times hook event triggering

2015-03-18 Thread Андрей Гришин
Hi all! I'm using OrientDB 2.0.5 release now and encountered one problem with my hook. I have recursively linked object structure, which my hook need to process, and i've wrote simple demo showing problem below: abstract class AbstractClass { @OVersion private Object version;

[orientdb] Implementing support for FetchType.LAZY

2015-03-18 Thread Wouter de Vaal
Hi, We are currently using the Object API to load some big objects using detachAll. So big that performance is impacted due to the way we set up our relations. Getting a single object may result in getting an enormous object tree/graph, while most of the time only a partial tree/graph is

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

2015-03-18 Thread ata
Phil, I think it is easy to accomplish by adding property on the edge. Let us say you have Person ---tagged--- Resource, where tagged is edge. You could add tag_type property (link to tag vertex) on this edge class. Alternatively, if finding what resources are tagged with which particular tag

[orientdb] Orientdb + gremlin + memoize

2015-03-18 Thread userbn
Hello, I'm trying to use the memoize function with orientdb like described at : http://gremlindocs.com/#transform/memoize = My request looks like this g.v('xx:x').out('out_one').as('vertex_of_interest').out('out_two').memoize('out_one').first_out_attribute It returns always null, unless when i

[orientdb] In memory database on two server's implementing replication architecture.

2015-03-18 Thread Mahesh Wabale
i had getting an error com.orientechnologies.orient.server.distributed.ODistributedException: Error on creating cluster 'pu_node2' in class 'pu' while creting any class in in-memory database want a solution on this. -- --- You received this message because you are subscribed to

[orientdb] Re: Error On Initial Import, Vertex Already Loaded?

2015-03-18 Thread Saad Mufti
You live and you learn, turns out at least on the import OrientDB cannot handle a property of a node/vertex named id. Is that known to be reserved or something? I changed it to our_id and the import worked flawlessly after that. Saad On Tuesday, March 17, 2015 at 7:48:06 PM UTC-4, Saad

Re: [orientdb] Determine record owner?

2015-03-18 Thread Patrick Hoeffel
Luigi, If my classes all extend from V or E (which they do, as is expected for graphs), then how can these records be secured? I could add those 4 properties to the V and E base classes, but I assume that the security infrastructure expects there to be a class called ORestricted in the object

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

2015-03-18 Thread Colin
Hi Phil, I may just be missing something, but here's a simple example of what I'm thinking. select from (select expand(in(AppliedTag)) from (select expand(out(HasTag)) from Resource where Id=Resource1) where Id=Red) where Name = Bob This will return Bob after selecting Resource1 and then

[orientdb] Help creating a not() function

2015-03-18 Thread Wouter de Vaal
Hi, I am trying to create a function to filter record to negate an expression. I am starting with a simple test and that already fails. I'm trying to test this: SELECT FROM Foo WHERE NOT(num = :myParam) where myParam is some integer and num is filled with integer. Here's my function:

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

2015-03-18 Thread Phil
Thanks Ata, yes that would work if it's possible to add a link property to an edge. On Wednesday, March 18, 2015 at 11:04:36 AM UTC+1, a...@yakyn.com wrote: Phil, I think it is easy to accomplish by adding property on the edge. Let us say you have Person ---tagged--- Resource, where tagged

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

2015-03-18 Thread Ivan Jovanovic
Hi Colin, That's the least I can do. Thank you for your replies, and for your help and for your time! I have tried replacing factory.getTx() with directly instantiating an OrientGraph every time that I need it and repeating experiments from yesterday (7 runs, each time uploading 50

Re: [orientdb] Determine record owner?

2015-03-18 Thread Luigi Dell'Aquila
Hi Patrick, you can just let V and E extend ORestricted ;-) Luigi 2015-03-18 13:52 GMT+01:00 Patrick Hoeffel patrick.hoef...@gmail.com: Luigi, If my classes all extend from V or E (which they do, as is expected for graphs), then how can these records be secured? I could add those 4

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

2015-03-18 Thread Phil
With the data in my diagram would this not also return Bob if he applied the red tag only to Resource2 and not Resource1 ? He tagged Resource1 only with blue. On Wednesday, March 18, 2015 at 3:11:12 PM UTC+1, Colin wrote: Hi Phil, I may just be missing something, but here's a simple example

[orientdb] Help translate gremlin to OSQL

2015-03-18 Thread Khaled B
Hello, I've been using gremlin for a while with Orientdb , however I noticed that I can get queries answered even faster with Orient SQL. is it possible to translate the following gremlin script into OSQL: Graph: User --- Likes --- Item Goal: Find top 15 similar items to item x and filter

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

2015-03-18 Thread Colin
No, because the inner most select specifies Resource1 as a starting point. -Colin Orient Technologies The Company behind OrientDB On Wednesday, March 18, 2015 at 9:28:22 AM UTC-5, Phil wrote: With the data in my diagram would this not also return Bob if he applied the red tag only to

[orientdb] Re: Best design to migrate rdbms database to orientdb

2015-03-18 Thread Colin
Sorry for the delay. I actually didn't see you had responded. Just change your query to this: select from (select expand(file_link) from folder) where file_name = file1 Regards, -Colin Orient Technologies The Company behind OrientDB On Tuesday, March 17, 2015 at 2:01:21 PM UTC-5, Ghosty

[orientdb] Re: Extending ODocument class

2015-03-18 Thread Kamen Ivanov
Hello Colin, Well so far I made a proxy class which ensures that the client can set only the DB schema defined properties. In other words i have made something like this: Pseudo code: interface Step { int getOrderIndex(); String getDescription() } class StepImpl extends ODocument

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

2015-03-18 Thread Phil
Hi Colin, I've put together a quick test of this and it does indeed return Bob even if he did not apply the Red tag to Resource1. Attached are 2 files: 1) I run test_db_schema.sql as an argument to the console.sh script to create the database and schema. 2) I then start the console, connect to

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

2015-03-18 Thread Colin
Hi Ivan, Interesting findings! Would you object to sending me your code (privately), so I can look over both the reading and the writing implementation? Thanks! -Colin Orient Technologies The Company behind OrientDB On Wednesday, March 18, 2015 at 9:10:59 AM UTC-5, Ivan Jovanovic wrote: