[orientdb] HowTo - Record Level Security with ODocument

2015-05-29 Thread Bryan
Hello, I have been trying to get Record Level Security to work using the document database API for Java. I'm pretty new to OrientDB (I'm sure my sample code shows it). I can't seem to get the behavior I'm expecting. // Create database. ODatabaseDocumentTx db = new ODatabaseDocumentTx(path); db.

[orientdb] [Problem] [First Try] reloading objects java

2015-05-29 Thread jean safar
Hi Apologies if it is a re-post (I did try to look for a similar issue). I tried a first very simple test (orders and order items) and I am getting a strange following result on both 2.1-rc3 and 2.0. Again, that's my first 5 minutes test and I looked on the net and found similar test code

[orientdb] Re: Create edge from the same class data

2015-05-29 Thread Kapil Ranade
Thanks for the reply. The query which you suggested creates edge only from Corp to direct children of corp (i.e. Districts) I want to create edge from districts to small offices as well. Note that in real world I have 10k+ office nodes and it will be extremely painful to do it for each node by

Re: [orientdb] Re: Cannot create class on 2.1 rc3

2015-05-29 Thread mmm mmm
When creating a document db, not graph. On Friday, May 29, 2015 at 4:42:27 AM UTC-5, Luigi Dell'Aquila wrote: > > Hi, > > could you please report all the steps you execute? In particular the > statement you use to create the class. > The only way I had to reproduce it was with > > CREATE CLAS

[orientdb] Re: OrientDB ETL tool

2015-05-29 Thread James Wang
Hi Luigi, Thanks a lot for your advice. I used plocal (not remote). Retied with the server being stopped. However, I had new errors: OrientDB etl v.2.0.8 (build @BUILD@) www.orientechnologies.com BEGIN ETL PROCESSOR Error in Pipeline execution: java.lang.NullPointerException java.lang.NullPoi

Re: [orientdb] OrientDB ETL tool

2015-05-29 Thread Luigi Dell'Aquila
Hi James, it depends on how your ETL is connecting to the database, if you are connecting with remote protocol then the server has to be running, if you are connecting with plocal (embedded) then the server has to be stopped Regards Luigi 2015-05-29 13:10 GMT+02:00 James Wang : > Hi All, > >

Re: [orientdb] Re: User/Password for plocal DB.

2015-05-29 Thread Andrey Yesyev
Hi Colin, Sorry, I meant to post my server version and forgot... I'm working with 2.0.10 Community Edition. I define user/pass when creating graph factory String url = "plocal:testdb"; String user = "root"; String pass = "root"; OrientGraphFactory graphFactory = new OrientGraphFactory(url, user,

[orientdb] Re: Create edge from the same class data

2015-05-29 Thread normanLinux
Sorry, I missed part of your original post. Mea Culpa You are on exactly the right track create edge from (select from NodeX where id="Corp") to (select from NodeX where parent_id = "Corp") That should do it. Of course, this will also create the self-referencing link from Corp to Corp. In my

[orientdb] OrientDB ETL tool

2015-05-29 Thread James Wang
Hi All, I am new to OrientDB and trying to import data from a CSV file using the ETL tool. Do I need to stop the OrientDB server firstly please? Please help. Thanks a lot in advance James -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To

[orientdb] Re: Create edge from the same class data

2015-05-29 Thread normanLinux
Hi, sounds like you are not switched on to the new way of doing things. I'm currently redesigning a package to move to Orient from a Postgres database. I have a similar requirement where I need to express a hierarchy of items. E.g. item A can be the parent of items B,C,D and item C can be the

Re: [orientdb] Ruby-REST-Adapter

2015-05-29 Thread Luca Garulli
Hey Hartmut, This is a great news. I always wanted a good and maintained Ruby driver for OrientDB, but for some reasons we don't have a driver at the same level of Java, Node.js, Python, PHP or others. Let me know if you need support on this. Best Regards, Luca Garulli CEO at Orient Technolog

Re: [orientdb] Linking Records in a Transaction Does not Work

2015-05-29 Thread Luigi Dell'Aquila
Hi Omega, I reproduced it locally. I've just opened an issue about this, you can track it here https://github.com/orientechnologies/orientdb/issues/4242 Luigi 2015-05-22 12:28 GMT+02:00 Omega Silva : > Hi Luigi, > > Thanks for the response. > > I'm using a remote connection. > > On Friday, M

[orientdb] Global indexes

2015-05-29 Thread Shahram
Hi there, Right now you are using local indexes which sacrifice performance for simplicity. Do you have any plan for global indexes? Many thanks, Shahram -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and sto

Re: [orientdb] Re: async, non blocking java API

2015-05-29 Thread Luigi Dell'Aquila
Hi Mohammad, TinkerPop API is designed for synchronous communication, and OrientDB API is compliant with this behavior. If you need asynchronous communication I suggest you to use SQL and commands Regards Luigi 2015-05-29 11:31 GMT+02:00 Mohammad Naghavi : > Hi Luigi, > > I'm using the Graph

Re: [orientdb] Eval temporarily stopped

2015-05-29 Thread Luigi Dell'Aquila
Hi Fabio, Thanks for reaching out, I'll take a look at your questions and I'll be back with answers soon. Thanks Luigi 2015-05-29 10:52 GMT+02:00 Fabio Ricci : > Dear OrientDB community > > thank you for helping in the first phases of my evaluation of OrientDB > using RDF material / embedded

Re: [orientdb] Re: dotted entities

2015-05-29 Thread Luigi Dell'Aquila
Hi Ciro, it just means that Studio did not fetch all the info from that node (sometimes Studio tries to represent connected vertices even with partial information, some other times it just "forgets" to update nodes after full load...). Try to move the mouse on the vertex and click on the eye icon,

Re: [orientdb] I don't create query (pyorient)

2015-05-29 Thread Luigi Dell'Aquila
Hi, I'm not sure of what you want to achieve, but can try this: select @class, out().@class as outClass from YourClass where in 2.1 rc3 you can expand the outClass collection with UNWIND operator and have a single row for each edge: select @class, out().@class as outClass from YourClass where

Re: [orientdb] Console Import after Export returns a ClassCastException

2015-05-29 Thread ciroBorrelli skymedia
VERSION 2.1-rc2 - (May, 5th 2015) - Bug fixing: 32 issues from 2.1-rc1. Il giorno venerdì 29 maggio 2015 10:37:22 UTC+2, Andrey Lomakin ha scritto: > > Hi, > It is already fixed, which version do you use ? > > On Fri, May 29, 2015 at 11:25 AM, ciroBorrelli skymedia < > skymedi...@gmail.com > wrote

Re: [orientdb] Re: async, non blocking java API

2015-05-29 Thread Mohammad Naghavi
Hi Luigi, I'm using the Graph API for Java mostly the Tinkerpop compliant parts due to some advantages it has for me. My question was, is there a way to make the parts of that API that need communication with DB as non-blocking or should I switch all my DB interaction code to use SQL instead?

[orientdb] Re: Create edge from the same class data

2015-05-29 Thread Kapil Ranade
Hi Alessandro, Currently there is only one class called NODE having three fields id, name, parent_id All I wish to do is create "Parent -> Child" edges in nodes created using above class. Here is sample class and data creation script (Note that I have to add more than 10k offices in real life

Re: [orientdb] Ruby-REST-Adapter

2015-05-29 Thread Luigi Dell'Aquila
Hi, this is great news, thant you very much!!! Let us know how it evolves Luigi 2015-05-27 22:02 GMT+02:00 hartmut bischoff : > Hi everybody, > > the nature and status of OrientDB prevents from an evolution of a stable > binary database-adapter. > There are some projects on GitHub, they are

Re: [orientdb] Re: Cannot create class on 2.1 rc3

2015-05-29 Thread Luigi Dell'Aquila
Hi, could you please report all the steps you execute? In particular the statement you use to create the class. The only way I had to reproduce it was with CREATE CLASS AcfInbound ABSTRACT extends that is incorrect because it doesn't have a superclass name defined, the right statement would be

Re: [orientdb] Re: async, non blocking java API

2015-05-29 Thread Luigi Dell'Aquila
Hi Mohammad, What do you exactly mean? Non blocking queries can be used to query both documents and graphs, non blocking commands can be executed on both ODatabaseDocument and OrientGraph and you can execute graph queries out of the box on both. In addition, you can always convert documents do ver

Re: [orientdb] Is there a way to delete a vertex if it has no edges after deleting an edge?

2015-05-29 Thread Luigi Dell'Aquila
Hi, IMHO the easiest way to do this is to define a hook that, on edge delete, also deletes connected vertices when needed. You can write the hook in Java or Javascript, see http://orientdb.com/docs/last/Hook.html If you need further help just let me know Luigi 2015-05-27 9:55 GMT+02:00 neRok :

Re: [orientdb] Console Import after Export returns a ClassCastException

2015-05-29 Thread Andrey Lomakin
Hi, It is already fixed, which version do you use ? On Fri, May 29, 2015 at 11:25 AM, ciroBorrelli skymedia < skymedia.ag...@gmail.com> wrote: > Console Import after Export returns a ClassCastException: > > Hi, > > I have an _inmem database created as "in-memory db". > From console I can connect

[orientdb] Rules for using indexes

2015-05-29 Thread qnts
Hello, we're trying to improve performance for complex queries and realized some glitches in using indexes in OrientDB. Query looks like this (simplified): *SELECT FROM MyClass WHERE Field1 = "valueA" AND (Field2 = "valueB" OR Field2 = "valueC")* A variation is *SELECT FROM MyClass WHERE Fiel

[orientdb] Console Import after Export returns a ClassCastException

2015-05-29 Thread ciroBorrelli skymedia
Console Import after Export returns a ClassCastException: Hi, I have an _inmem database created as "in-memory db". >From console I can connect to such db, by using: > connect remote://localhost:2480/-inmem root > Enter password: [aPwd] > Connecting to database [remote://localhost:2480/_inmem] wit

[orientdb] select where not

2015-05-29 Thread valeri . antonov
In docs it is "not supported yet". Really, it works sometimes somehow Could you please describe current limitations? I cant get working selects like "where not @class INSTANCEOF xyz" or "where not field1 contains 'aaa'" -- --- You received this message because you are subscribed to the Googl

[orientdb] Re: Create edge from the same class data

2015-05-29 Thread alessandrorota04
Hi Kapil, have you got a screenshot of your schema ? Bye, Alessandro Il giorno venerdì 29 maggio 2015 09:12:37 UTC+2, Kapil Ranade ha scritto: > > I have imported hierarchical data into OrientDB from RDMBS using OETL. > > In RDBMS we used to store parentId in the same row. e.g. the table > str

[orientdb] Re: dotted entities

2015-05-29 Thread ciroBorrelli skymedia
I am using a "in memory" database in ODB Studio 2.1 (on Windows Seven / Firefox 38) and trying to display nodes and edges in the "Graph panel". I see the red entities (nodes) of my class that have a dotted perimeter (it means: not yet loaded). What does "not yet loaded" mean? All inserts of suc

[orientdb] Re: dotted entities

2015-05-29 Thread ciroBorrelli skymedia
Is there someone interested in this question? Are in memory databases graphs always "not yet loaded"? thx, ciroB Il giorno venerdì 22 maggio 2015 17:50:28 UTC+2, ciroBorrelli skymedia ha scritto: > > Why in ODB Studio 2.1 / Windows Seven / Firefox 38 / "Graph panel" > > the red entities of my cl

[orientdb] Create edge from the same class data

2015-05-29 Thread Kapil Ranade
I have imported hierarchical data into OrientDB from RDMBS using OETL. In RDBMS we used to store parentId in the same row. e.g. the table structure is something like this: ID - Name - Parent_ID Corp - Corporate Office - Corp D1 - District Office 1 - Corp D2 - District Office 2 - Corp SO1

[orientdb] What is the recommended way to manage OrientDB connections in Express.js or any web application

2015-05-29 Thread Samuel Goldenbaum
What is the recommended way to manage OrientDB connections in Express.js or any web application for that matter? Connection per request? Would be using the oriento Node.js driver. -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscrib