[orientdb] entity graphs in jpa 2.1

2014-03-12 Thread Hristo Stoyanov
Hi, is there something in OrientDB, similar to the newly introduced entity graphs in JPA 2.1: https://blogs.oracle.com/theaquarium/entry/jpa_2_1_entity_graphs -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and

[orientdb] Can't get dependencies for orientdb-graphdb--depends on SNAPSHOT versions of other dependencies

2014-03-12 Thread Vanessa Williams
Hi all, I'm doing a quick spike to see if we can use OrientDB + some Tinkerpop fairy dust to create a distributed RDF/SPARQL store. Whatever, the important thing is that including com.orientechnologies orientdb-graphdb xxx For any version fr

[orientdb] ValidationException when saving data to DB - (Test case/code and full stacktrace inside)

2014-03-12 Thread Antoine Daher
I have been having problems saving data to the DB since I updated from 1.3 to 1.7-rc2. I am getting this error whenever I'm saving a record : Caused by: com.orientechnologies.orient.core.exception.OValidationException: The field 'TestClass2.testClass1Property' has been declared as EMBEDDED with

Re: [orientdb] Import failure from 1.7-SNAPSHOT to 1.7rc2-SNAPSHOT

2014-03-12 Thread Shota Nagahori
Sorry for my late reply. > Andrey I'm using local. Shota. On Tuesday, March 11, 2014 11:29:56 PM UTC+9, Andrey Lomakin wrote: > > Could you provide me example of your test case ? > > > On Tue, Mar 11, 2014 at 4:23 PM, Dodong Juan > > wrote: > >> This is the version that I am using: >> >> >> ori

Re: [orientdb] why does out() return a different sort of object than select from V ?

2014-03-12 Thread Charles Porter
Artem -- Thanks for the correct syntax. I am still confused about 2 things: 1) what exactly *expand()* does. In short, is there a precise definition of *expand()*? 2) I also do not understand why *select out().name from* *N1* does not also give me the value of the *name* fields on the vertices r

[orientdb] Re: PHP Driver

2014-03-12 Thread Thomas Kennedy
Also if anybody knows if graphs are supported. On Wednesday, 12 March 2014 19:02:39 UTC, Thomas Kennedy wrote: > > Hi, > > Is the orient PHP driver still under active development? > > https://github.com/AntonTerekhov/OrientDB-PHP > > Im trying to use it with 1.7rc1. > > Regards, > Tom > -- ---

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Riccardo Tasso
What about executing the following query: SELECT sum(out().size()) FROM V Can it be considered more efficient than iterating over the whole vertices set or is it the same? Riccardo 2014-03-12 15:37 GMT+01:00 Luca Garulli : > Hi, > OrientDB uses lazy loading technique, so as soon as you browse

[orientdb] PHP Driver

2014-03-12 Thread Thomas Kennedy
Hi, Is the orient PHP driver still under active development? https://github.com/AntonTerekhov/OrientDB-PHP Im trying to use it with 1.7rc1. Regards, Tom -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and sto

Re: [orientdb] ORecordDuplicatedException but the records are missing?!

2014-03-12 Thread Shishya
Hi, I didnt want to create a new thread, but this is not exactly related. I need to know the way using this exception I am using it in following way try{ graph.commit(); }catch(ORecordDuplicatedException oe){ System

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Luca Garulli
Hi, OrientDB uses lazy loading technique, so as soon as you browse elements OrientDB loads it. Obviously not all the loaded stuff remain in memory, but is flushed away when other elements are loaded (like LRU). Lvc@ On 12 March 2014 21:33, Sotiris Beis wrote: > I just realized what you was s

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Sotiris Beis
I just realized what you was saying. Sorry. Your suggestion worked. One more quetion. I have 1M nodes and 3M edges. I wonder if when I iterate through all the nodes the whole graph is loaded in the memory, because it needs about 2G of ram to count all the edges. Sotiris On 03/12/2014 04:05 PM

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Andrey Lomakin
HI, But as I have written you use wrong method, you use *OrientBaseGraph*.countEdges but should use *OrientVertex*.countEdges You count edges for current vertex and sum them up, right ? On Wed, Mar 12, 2014 at 1:58 PM, Sotiris Beis wrote: > I have upgraded to rc2 but nothig actually changed.

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Luca Garulli
Hi, if you've lightweight edges, that is default setting, you cannot count edges. This is a limitation of lightweight edges. If you need to count edges (I can't see a real reason for this) you should disable it. alter database custom useLightweightEdges=false Look at: https://github.com/orientech

Re: [orientdb] # character in RID is problamatic

2014-03-12 Thread Gaurav Dhiman
Lets say, I get set of document RIDs from server and assign that to a JS array docs[] and later want to fetch the specific document referring its RID using below REST call through AngularJS *$http.get('http://host:port/document/db/'+doc[i]['@rid']);* Remember, *doc[i]['@rid']* will have # in i

[orientdb] Optimizing for continuous inserts and considerable number of concurrent queries

2014-03-12 Thread stefan
Hi, Now our event store is almost complete and working quite well on top of OrientDB, thank you! I'm wondering what the best setup/configuration is for our case. Inserts: - We have a single thread inserting into the database from a message queue - About 500 - 2000 event messages are

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Sotiris Beis
I have upgraded to rc2 but nothig actually changed. I initialize my graph instance this way OrientGraph orientGraph = orientGraph = new OrientGraph("plocal:"+dbPAth); and when i try to count the edges i simply do this orientGraph.countEdges() The only function I still have is this OrientBaseGra

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Sotiris Beis
No i use 1.7-SNAPSHOT. Where can i find the dependencies for rc2? On 03/12/2014 01:31 PM, Andrey Lomakin wrote: You can find it https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientVertex.java#L322 Do you use 1.7-rc2 sna

Re: [orientdb] why does out() return a different sort of object than select from V ?

2014-03-12 Thread Artem Orobets
Hi, out() references to set of vertexes that reached by out edges from current vertex. So when you include it to projection it add a *set* of vertexes connected to current one. -- verify to edges from N1 to N2 > select out() from N1 > 0 |#-2:1|[2] > --ok > --- BUT why is this not the same as s

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Andrey Lomakin
You can find it https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientVertex.java#L322 Do you use 1.7-rc2 snapshot ? On Wed, Mar 12, 2014 at 1:23 PM, Sotiris Beis wrote: > This function seems to be missing. > I use orientd

Re: [orientdb] Error in connecting plocal by OrientgraphFactory

2014-03-12 Thread prabhat
In 1.7rc2SS, I get following error Exception in thread "main" com.orientechnologies.orient.core.exception.ODatabaseException: Cannot create database at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.create(ODatabaseRecordAbstract.java:275) at com.orientechnologies.orient.core

Re: [orientdb] Error in connecting plocal by OrientgraphFactory

2014-03-12 Thread Andrey Lomakin
Hi, But it seems JVM do not think so, (because of Caused by: java.lang.ClassNotFoundException: org.iq80.snappy.Snappy ) What is value of system property "java.class.path" in your application ? On Wed, Mar 12, 2014 at 1:27 PM, prabhat wrote: > Hi Andrey, > > I do have it in my classpath. > sn

Re: [orientdb] Error in connecting plocal by OrientgraphFactory

2014-03-12 Thread prabhat
Hi Andrey, I do have it in my classpath. snappy-0.3.jar On Wed, Mar 12, 2014 at 4:44 PM, Andrey Lomakin wrote: > Hi, > So reason is > > On Wed, Mar 12, 2014 at 8:41 AM, Shishya wrote: > >> Caused by: java.lang.ClassNotFoundException: org.iq80.snappy.Snappy >> > > Do you have snappy jar in

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Sotiris Beis
This function seems to be missing. I use orientdb-1.7-SNAPSHOT On 03/12/2014 01:16 PM, Andrey Lomakin wrote: Oh hold on. But you use wrong method. I suggested to use com.tinkerpop.blueprints.impls.orient.OrientVertex#countEdges but you use OrientBaseGraph.countEdges On Wed, Mar 12, 2014 at

Re: [orientdb] Re: [1.7-rc1] Duplicate Edges

2014-03-12 Thread Andrey Lomakin
You can try to check edges presence directly, but it will never work in multithreading environment. You should relay on index for this cases. On Tue, Mar 11, 2014 at 10:54 PM, cp2 wrote: > > >>>*So every time you will have duplication exception will be thrown and > transaction will be reverted.

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Andrey Lomakin
Oh hold on. But you use wrong method. I suggested to use com.tinkerpop.blueprints.impls.orient.OrientVertex#countEdges but you use OrientBaseGraph.countEdges On Wed, Mar 12, 2014 at 1:15 PM, Andrey Lomakin wrote: > That is stack trace form your application code. > Could you publish stack trace

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Andrey Lomakin
That is stack trace form your application code. Could you publish stack trace for exception cause too ? On Wed, Mar 12, 2014 at 11:43 AM, Sotiris Beis wrote: > Exception in thread "main" java.lang.UnsupportedOperationException: Graph > set to use Lightweight Edges, count against edges is not su

Re: [orientdb] Error in connecting plocal by OrientgraphFactory

2014-03-12 Thread Andrey Lomakin
Hi, So reason is On Wed, Mar 12, 2014 at 8:41 AM, Shishya wrote: > Caused by: java.lang.ClassNotFoundException: org.iq80.snappy.Snappy > Do you have snappy jar in your classpath ? -- Best regards, Andrey Lomakin. Orient Technologies the Company behind OrientDB -- --- You received this m

Re: [orientdb] 1.7-rc2 Memory Issue -- Unexpected loss of data

2014-03-12 Thread Andrey Lomakin
Thank you. I need to receive confirmation from one more user (they experienced this problem too) and after that I will close the bug. On Wed, Mar 12, 2014 at 8:43 AM, Shishya wrote: > Hi Andrey, > > As suggested by Luca, I am using a POJO code for importing data from flat > exported Mongodb dum

Re: [orientdb] Which is the best way to count the edges of a graph

2014-03-12 Thread Sotiris Beis
Exception in thread "main" java.lang.UnsupportedOperationException: Graph set to use Lightweight Edges, count against edges is not supported at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.countEdges(OrientBaseGraph.java:1038) at eu.socialsensor.graphdatabases.OrientGraphDatabase.getGra

Re: [orientdb] Re: WARNING: Found record in transaction with the same RID but different instance

2014-03-12 Thread prabhat
Hi, My Level-1 cache was off. But I tested with v1.7rc2 and there are no warnings now Thanks Prabhat Kumar Singh On Wed, Mar 12, 2014 at 3:08 PM, Artem Orobets wrote: > Hi Shlshya, > > Do you see the warnings with enabled 1st level cache? > Could you provide a test case to let me reproduce

Re: [orientdb] Re: WARNING: Found record in transaction with the same RID but different instance

2014-03-12 Thread Artem Orobets
Hi Shlshya, Do you see the warnings with enabled 1st level cache? Could you provide a test case to let me reproduce the case? Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-03-12 8:57 GMT+02:00 Shishya : > Hi, > > I see such warnings in 1.7rc1 as well. > Do