Re: [Neo4j] Neo4J server with my embedded server
Yes, I would like to have what Mattias just described: the webadmin with my embedded environment. I usually have an EmbeddedGraphDatabase, which I access via our own REST interface run in Tomcat. So I have a Tomcat, and in case the webadmin is a a plain servlet it would be nice to configure it to use my instance of EmbeddedGraphDatabase for administration. --- balazs On 11/23/10 12:50 AM, Mattias Persson wrote: It may also be desirable to just have the webadmin part in an otherwise embedded environment, that's what you're really looking for, right? Is that possible (now/soon)? 2010/11/23 Peter Neubauerpeter.neuba...@neotechnology.com Balazs, Yes, this is possible via the RemoteGraphDB RMI connector. However, in order to take one bite at a time, it is not included in the first version of the server, mainly due to current limitations in the remote component for the admin part. This will be added in later versions. If you really want it, you can always take the source code and work on it before anyone else has time - a lot of the code is already in the neo4j server component. Before enabling remote connections to embedded neo4j instances as part of a release, we want to make sure things are tested and have some more features... If you try, let the community know how it goes so we can support you! /peter On Monday, November 22, 2010, Balazs E. Patakipat...@dsd.sztaki.hu wrote: Hi, I see there's the Neo4j Server in M4, and it looks really cool, especially with its administration console. My question is: is it possible to have an embedded server (a server that I configure from java, with my own settings, indexers, etc) and have this same Neo4j Web Administration tool working with this embedded server? If possible, how? Thanks for any help or tips! --- balazs ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] strange performance
Hello, while running my benchmark i did the following: added: -verbose:gc to see gc usage run sar -u 1 100 and here are the results: on a 4 core cpu CPU %user %nice %system %iowait%steal %idle all 0,75 0,00 0,62 18,81 0,00 79,82 - Scaled to 1 core: actually the cpu does nothing to compute the queries. Only 0.75% * 4 = 3% CPU usage for a single core, and 18,81% * 4 = 75,24% io wait for a single core, the rest is divided into system and idle. The gc output: ... [GC 806876K-326533K(1852416K), 0.2419270 secs] ... many queries ... [GC 873349K-423494K(1837760K), 0.3257520 secs] ... many queries ... [GC 956678K-502630K(1643648K), 0.3619280 secs] ... many queries ... [GC 839654K-551462K(1686720K), 0.3088770 secs] ... So its not the GC. Thanks to all of you, -- * Martin Grimmer * Developer, Semantic Web Project, IT Unister GmbH Barfußgässchen 11 | 04109 Leipzig Telefon: +49 (0)341 49288 5064 martin.grim...@unister.de mailto:%0a%20%20martin.grim...@unister.de www.unister.de http://www.unister.de Vertretungsberechtigter Geschäftsführer: Thomas Wagner Amtsgericht Leipzig, HRB: 19056 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] strange performance
Hi, Could you add the following configuration parameter: dump_configuration=true and send the output printed to standard out when starting up. Other useful information would be some thread dumps while executing a query that takes long time (send kill -3 signal to the process). Regards, Johan On Tue, Nov 23, 2010 at 10:53 AM, Martin Grimmer martin.grim...@unister.de wrote: Hello, while running my benchmark i did the following: added: -verbose:gc to see gc usage run sar -u 1 100 and here are the results: on a 4 core cpu CPU %user %nice %system %iowait %steal %idle all 0,75 0,00 0,62 18,81 0,00 79,82 - Scaled to 1 core: actually the cpu does nothing to compute the queries. Only 0.75% * 4 = 3% CPU usage for a single core, and 18,81% * 4 = 75,24% io wait for a single core, the rest is divided into system and idle. The gc output: ... [GC 806876K-326533K(1852416K), 0.2419270 secs] ... many queries ... [GC 873349K-423494K(1837760K), 0.3257520 secs] ... many queries ... [GC 956678K-502630K(1643648K), 0.3619280 secs] ... many queries ... [GC 839654K-551462K(1686720K), 0.3088770 secs] ... So its not the GC. Thanks to all of you, -- * Martin Grimmer * Developer, Semantic Web Project, IT Unister GmbH Barfußgässchen 11 | 04109 Leipzig Telefon: +49 (0)341 49288 5064 martin.grim...@unister.de mailto:%0a%20%20martin.grim...@unister.de www.unister.de http://www.unister.de Vertretungsberechtigter Geschäftsführer: Thomas Wagner Amtsgericht Leipzig, HRB: 19056 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J server with my embedded server
2010/11/23 Balazs E. Pataki pat...@dsd.sztaki.hu Yes, I would like to have what Mattias just described: the webadmin with my embedded environment. I usually have an EmbeddedGraphDatabase, which I access via our own REST interface run in Tomcat. So I have a Tomcat, and in case the webadmin is a a plain servlet it would be nice to configure it to use my instance of EmbeddedGraphDatabase for administration. But what you just described here is the Neo4j Server with your own extension that you load server-side. Do you access your db from other endpoints than REST? --- balazs On 11/23/10 12:50 AM, Mattias Persson wrote: It may also be desirable to just have the webadmin part in an otherwise embedded environment, that's what you're really looking for, right? Is that possible (now/soon)? 2010/11/23 Peter Neubauerpeter.neuba...@neotechnology.com Balazs, Yes, this is possible via the RemoteGraphDB RMI connector. However, in order to take one bite at a time, it is not included in the first version of the server, mainly due to current limitations in the remote component for the admin part. This will be added in later versions. If you really want it, you can always take the source code and work on it before anyone else has time - a lot of the code is already in the neo4j server component. Before enabling remote connections to embedded neo4j instances as part of a release, we want to make sure things are tested and have some more features... If you try, let the community know how it goes so we can support you! /peter On Monday, November 22, 2010, Balazs E. Patakipat...@dsd.sztaki.hu wrote: Hi, I see there's the Neo4j Server in M4, and it looks really cool, especially with its administration console. My question is: is it possible to have an embedded server (a server that I configure from java, with my own settings, indexers, etc) and have this same Neo4j Web Administration tool working with this embedded server? If possible, how? Thanks for any help or tips! --- balazs ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J server with my embedded server
I only want to access it via REST, but I don't want to publish (make accessible) the Neo4J REST API, only my own REST calls (which implements my business logic with neo4j storing my domain objects). I will take a deeper look into the Neo4J Server and see if I can somehow integrate my extensions into it. --- balazs On 11/23/10 11:31 AM, Mattias Persson wrote: 2010/11/23 Balazs E. Patakipat...@dsd.sztaki.hu Yes, I would like to have what Mattias just described: the webadmin with my embedded environment. I usually have an EmbeddedGraphDatabase, which I access via our own REST interface run in Tomcat. So I have a Tomcat, and in case the webadmin is a a plain servlet it would be nice to configure it to use my instance of EmbeddedGraphDatabase for administration. But what you just described here is the Neo4j Server with your own extension that you load server-side. Do you access your db from other endpoints than REST? --- balazs On 11/23/10 12:50 AM, Mattias Persson wrote: It may also be desirable to just have the webadmin part in an otherwise embedded environment, that's what you're really looking for, right? Is that possible (now/soon)? 2010/11/23 Peter Neubauerpeter.neuba...@neotechnology.com Balazs, Yes, this is possible via the RemoteGraphDB RMI connector. However, in order to take one bite at a time, it is not included in the first version of the server, mainly due to current limitations in the remote component for the admin part. This will be added in later versions. If you really want it, you can always take the source code and work on it before anyone else has time - a lot of the code is already in the neo4j server component. Before enabling remote connections to embedded neo4j instances as part of a release, we want to make sure things are tested and have some more features... If you try, let the community know how it goes so we can support you! /peter On Monday, November 22, 2010, Balazs E. Patakipat...@dsd.sztaki.hu wrote: Hi, I see there's the Neo4j Server in M4, and it looks really cool, especially with its administration console. My question is: is it possible to have an embedded server (a server that I configure from java, with my own settings, indexers, etc) and have this same Neo4j Web Administration tool working with this embedded server? If possible, how? Thanks for any help or tips! --- balazs ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Neoclipse web?
Hi folks, just checked out http://polymap.org/polymap3 (guest/guest login for the demo), a web port of uDig (Eclipse RCP GIS tool) and geoserver. I am thinking that this might be an interesting option for Neoclipse meeting webadmin. I am not sure of the performance of this thing, but it certainly looks cool! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] svn certificate problem
When I try to access https://svn.neo4j.org from NetBeans I get the following error: - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! - The certificate has expired Hostname: svn.neo4j.org Certificate information: - Subject: CN=Alpha CA, O=Alpha, OU=Alpha CA - Valid: from 4/11/07 2:00 PM until 1/27/14 12:00 PM - Issuer: CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE - Fingerprint: - SHA1: c9:52:1a:fc:dc:78:ff:a2:93:35:30:3b:4c:43:2a:b0:ae:60:e9:28 - MD5: 60:b7:a0:ee:76:0c:b0:9c:df:c1:0d:92:cb:8d:a0:b5 It allows me to click Accept permanently, but then it shows this error again and offers Accept permanently in an infinite loop (maybe not infinite, because I didn't try that long ;-). Maybe it is just a NetBeans bug, but I thought I ask if anyone else has experienced this. --- balazs ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Rest API requests
Max, did you install bundler to do the bundle exec? Are you running Ruby or JRuby, and where is the bundle binary installed after I do gem install bundler? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Nov 23, 2010 at 9:23 AM, Max De Marzi Jr. maxdema...@gmail.com wrote: Hello, I started adding fake bulk operations to neography ( https://github.com/maxdemarzi/neography ) but ran into issues when trying to create or get more than 100 nodes at a time. ubuntu ~/forks/neography: bundle exec rspec spec/integration/rest_bulk_spec.rb No Extensions Found: /home/max/.neography . user system total real create 100 nodes 3.411000 0.00 3.411000 ( 3.411000) create 100 nodes threaded 1.909000 0.00 1.909000 ( 1.909000) create 200 nodes threaded^C Exiting... Interrupt again to exit immediately. It just hangs when I try 200 and eventually I get a execution expired error. 150 fails, 125 fails, 110 sometimes worked, 100 ALWAYS worked (threaded and non-threaded). Did you guys see any issues like this with your test harness against the Rest API? Anybody using another Rest client having these issues? Thanks, Max ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J server with my embedded server
Balazs, Yes, this is possible via the RemoteGraphDB RMI connector. However, in order to take one bite at a time, it is not included in the first version of the server, mainly due ti limitations in the remote component. This will be added in later versions. Ifnyou really want it, you can always take the source code and work on it before anyone else has time - a lot of the code is already in the neo4j server component. Before enabling remote connections to embedded neo4j instances as part of a release, we want to make sure things are tested and have some more features... If you try, let the community know how it goes, I can give you some pointers ! /Peter On Monday, November 22, 2010, Balazs E. Pataki pat...@dsd.sztaki.hu wrote: Hi, I see there's the Neo4j Server in M4, and it looks really cool, especially with its administration console. My question is: is it possible to have an embedded server (a server that I configure from java, with my own settings, indexers, etc) and have this same Neo4j Web Administration tool working with this embedded server? If possible, how? Thanks for any help or tips! --- balazs ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Rest API requests
Yup, just run: gem install bundler Assuming you have a forks\neography directory: cd forks\neography git pull upstream master bundle install bundle exec rspec spec/integration/rest_bulk_spec.rb I'm on JRuby 1.6.0.dev (2010-08-30 3040e75) (a bit old...) On Tue, Nov 23, 2010 at 10:57 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Max, did you install bundler to do the bundle exec? Are you running Ruby or JRuby, and where is the bundle binary installed after I do gem install bundler? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Nov 23, 2010 at 9:23 AM, Max De Marzi Jr. maxdema...@gmail.com wrote: Hello, I started adding fake bulk operations to neography ( https://github.com/maxdemarzi/neography ) but ran into issues when trying to create or get more than 100 nodes at a time. ubuntu ~/forks/neography: bundle exec rspec spec/integration/rest_bulk_spec.rb No Extensions Found: /home/max/.neography . user system total real create 100 nodes 3.411000 0.00 3.411000 ( 3.411000) create 100 nodes threaded 1.909000 0.00 1.909000 ( 1.909000) create 200 nodes threaded^C Exiting... Interrupt again to exit immediately. It just hangs when I try 200 and eventually I get a execution expired error. 150 fails, 125 fails, 110 sometimes worked, 100 ALWAYS worked (threaded and non-threaded). Did you guys see any issues like this with your test harness against the Rest API? Anybody using another Rest client having these issues? Thanks, Max ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Datetimes in Neo4j REST Server
Hum...maybe we should have the type of object in the json string? data: {name : {string : Max}, age: {int :31} } also how about arrays? string[] : [Max, Javier,Peter] On Tue, Nov 23, 2010 at 1:02 PM, Javier de la Rosa ver...@gmail.com wrote: I was writting some extra tests for the python rest client and checking what are the types allowed. The boolean, strings, integers and floats seem to be OK when the client receives the JSOn from the server. But if I serialize a date or datetime, I have no way to know whether I must do a casting the data to a datetime object or whether it's simply a string containing a date. What should I do? Are the dates handled in a different way? -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Datetimes in Neo4j REST Server
Javier, Max, good point! Jim, what do you say about that? How type safe can we make the REST API? At least I think this warrants an issue over at https://trac.neo4j.org/ticket/286 for this. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Nov 23, 2010 at 9:58 PM, Max De Marzi Jr. maxdema...@gmail.com wrote: Hum...maybe we should have the type of object in the json string? data: {name : {string : Max}, age: {int :31} } also how about arrays? string[] : [Max, Javier,Peter] On Tue, Nov 23, 2010 at 1:02 PM, Javier de la Rosa ver...@gmail.com wrote: I was writting some extra tests for the python rest client and checking what are the types allowed. The boolean, strings, integers and floats seem to be OK when the client receives the JSOn from the server. But if I serialize a date or datetime, I have no way to know whether I must do a casting the data to a datetime object or whether it's simply a string containing a date. What should I do? Are the dates handled in a different way? -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Rest API requests
Mmh, to start with, I am stuck with some OpenSSL error when trying to run rspecs: bundle exec rspec spec/integration/rest_node_spec.rb JRuby limited openssl loaded. gem install jruby-openssl for full support. http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL JRuby limited openssl loaded. gem install jruby-openssl for full support. http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL No Extensions Found: /Users/peterneubauer/.neography FFF Failures: 1) Neography::Rest get_root can get the root node Failure/Error: root_node = @neo.get_root OpenSSL::SSL requires the jruby-openssl gem # ./lib/neography/rest.rb:268:in `get' # ./lib/neography/rest.rb:27:in `get_root' # ./spec/integration/rest_node_spec.rb:10 # :1 2) Neography::Rest create_node can create an empty node Failure/Error: new_node = @neo.create_node uninitialized constant OpenSSL::SSL # ./lib/neography/rest.rb:272:in `post' # ./lib/neography/rest.rb:35:in `create_node' # ./spec/integration/rest_node_spec.rb:17 # :1 3) Neography::Rest create_node can create a node with one property Failure/Error: new_node = @neo.create_node(name = Max) uninitialized constant OpenSSL::SSL # ./lib/neography/rest.rb:272:in `post' # ./lib/neography/rest.rb:33:in `create_node' # ./spec/integration/rest_node_spec.rb:22 # :1 Any hints what could be the reason? I have installed gem install jruby-openssl but are still getting that error on Mac OSX. Any hints? /peter ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Datetimes in Neo4j REST Server
On Tue, Nov 23, 2010 at 16:05, Peter Neubauer peter.neuba...@neotechnology.com wrote: Jim, what do you say about that? How type safe can we make the REST API? At least I think this warrants an issue over at https://trac.neo4j.org/ticket/286 for this. Thank you Peter and Max for the quick response. It would be great to have well defined data types in the REST server. I hope the solution also works in order to talk to the server what types are sent to it, because now we have no way to create Date or List objects like properties in nodes or relationships trhough the REST API. It's not easy manage with Dates and objects in JSON. The proposal in https://trac.neo4j.org/ticket/286 adds some overhead although I think is a very good solution. However, there wouldn't be backwards compatibility. Best regards. -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] svn certificate problem
I can confirm I have the same problem. It's irritating, but doesn't stop me from checking out/updating/committing. Jim On 24 Nov 2010, at 02:11, Anders Nawroth wrote: Hi! Unfortunately it will take at least five more days until the new certificate is in place. I'm checking out code using command-line svn and that works just fine (I'm accepting the certificate temporarily). But it won't let me commit any changes. From within Eclipse I can even commit to svn, it doesn't seem to care about that the certificate has expired :-) Not using NetBeans at the moment ... /anders On 11/23/2010 04:01 PM, Balazs E. Pataki wrote: When I try to access https://svn.neo4j.org from NetBeans I get the following error: - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! - The certificate has expired Hostname: svn.neo4j.org Certificate information: - Subject: CN=Alpha CA, O=Alpha, OU=Alpha CA - Valid: from 4/11/07 2:00 PM until 1/27/14 12:00 PM - Issuer: CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE - Fingerprint: - SHA1: c9:52:1a:fc:dc:78:ff:a2:93:35:30:3b:4c:43:2a:b0:ae:60:e9:28 - MD5: 60:b7:a0:ee:76:0c:b0:9c:df:c1:0d:92:cb:8d:a0:b5 It allows me to click Accept permanently, but then it shows this error again and offers Accept permanently in an infinite loop (maybe not infinite, because I didn't try that long ;-). Maybe it is just a NetBeans bug, but I thought I ask if anyone else has experienced this. --- balazs ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Datetimes in Neo4j REST Server
Hi folks, My concern about this is that we're already taking liberties with the media type application/json. Adding this kind of annotation definitely takes us into very neo4j-specific territory (which might be a good thing). I responded to the ticket, saying that perhaps we should consider a neo4j media type. In that media type we could properly define a set of programmatic types that we support, as well as the hypermedia controls (links, forms) that we'd like to see. However what if we didn't use JSON? The Clojure community are thinking about introducing the notion of URI into the core language. Once that's implemented Ian Robinson, Savas Parastatidis and me along with Stu Halloway are going to design the (hyper)media type application/clojure (which will start life as application/x.clojure) Why is this important? Because Clojure already has a sophisticated type system and sending round Clojure data structures is just as easy as sending around JSON (though admittedly the acronym AJAC does not sound so sexy). Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] [SPAM] Re: Datetimes in Neo4j REST Server
Whatever approach you take should be easily consumable via Ajax from the current active generation of browsers... I'm a fan of domain-specific or source-specific representations (JSON or XML, doesn't matter) rather than vague, generic structures. JSON and XML are both quite suitable for containing additional metadata. We could define this metadata in a way that would not conflict with property names on nodes and relationships. Verbosity should be a consideration as well, since adding an XML attribute or JSON object property with the name _neo4J_data_type takes up more wire capacity and memory than _ndt. I must confess to not having worked with the generic Neo REST API that much, since we've implemented our own domain-specific REST API a few levels above raw Neo access. Happy to share our experiences, though. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Jim Webber Sent: Tuesday, November 23, 2010 5:18 PM To: Neo4j user discussions Subject: [SPAM] Re: [Neo4j] Datetimes in Neo4j REST Server Hi folks, My concern about this is that we're already taking liberties with the media type application/json. Adding this kind of annotation definitely takes us into very neo4j-specific territory (which might be a good thing). I responded to the ticket, saying that perhaps we should consider a neo4j media type. In that media type we could properly define a set of programmatic types that we support, as well as the hypermedia controls (links, forms) that we'd like to see. However what if we didn't use JSON? The Clojure community are thinking about introducing the notion of URI into the core language. Once that's implemented Ian Robinson, Savas Parastatidis and me along with Stu Halloway are going to design the (hyper)media type application/clojure (which will start life as application/x.clojure) Why is this important? Because Clojure already has a sophisticated type system and sending round Clojure data structures is just as easy as sending around JSON (though admittedly the acronym AJAC does not sound so sexy). Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] [SPAM] Re: Datetimes in Neo4j REST Server
FWIW, we store all dates as milliseconds relative to UTC, and pass them around in that format. We identify the data types of fields/properties in separate metadata structures embedded in the response, making the returned content easily parsable and interpretable by relatively dumb clients. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Javier de la Rosa Sent: Tuesday, November 23, 2010 4:26 PM To: Neo4j user discussions Subject: [SPAM] Re: [Neo4j] Datetimes in Neo4j REST Server On Tue, Nov 23, 2010 at 16:05, Peter Neubauer peter.neuba...@neotechnology.com wrote: Jim, what do you say about that? How type safe can we make the REST API? At least I think this warrants an issue over at https://trac.neo4j.org/ticket/286 for this. Thank you Peter and Max for the quick response. It would be great to have well defined data types in the REST server. I hope the solution also works in order to talk to the server what types are sent to it, because now we have no way to create Date or List objects like properties in nodes or relationships trhough the REST API. It's not easy manage with Dates and objects in JSON. The proposal in https://trac.neo4j.org/ticket/286 adds some overhead although I think is a very good solution. However, there wouldn't be backwards compatibility. Best regards. -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Specifying the DB data directory
Hi Chris, In the 'conf' directory, you'll find the annotated 'neo4j-server.properties' file which describes the few settings available, including: org.neo4j.server.database.location=data/graph.db The file is a simple key=value pair format. Relative paths assume that the current directory is the top-level of the expanded neo4j server distribution (which I suppose we could call $NEO4J_HOME). The doc/neo4j-server.txt should probably be updated to include text about the configuration location and the properties. Cheers, Andreas On Nov 24, 2010, at 12:23 AM, Chris Diehl wrote: Hi All, Once I've fired up the Neo4j server, how do I specify the directory where the graph DB directories should be stored? I can't seem to find an answer on the wiki pages. Thanks! Chris ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] [SPAM] Re: Datetimes in Neo4j REST Server
What about: data: {name : NeoS::Max}, age: {NeoI::31 } data: {name : NeoS[]::Max,Javier,Peter}, age: {NeoI[]::31,29,33 } On Tue, Nov 23, 2010 at 4:59 PM, Rick Bullotta rick.bullo...@burningskysoftware.com wrote: FWIW, we store all dates as milliseconds relative to UTC, and pass them around in that format. We identify the data types of fields/properties in separate metadata structures embedded in the response, making the returned content easily parsable and interpretable by relatively dumb clients. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Javier de la Rosa Sent: Tuesday, November 23, 2010 4:26 PM To: Neo4j user discussions Subject: [SPAM] Re: [Neo4j] Datetimes in Neo4j REST Server On Tue, Nov 23, 2010 at 16:05, Peter Neubauer peter.neuba...@neotechnology.com wrote: Jim, what do you say about that? How type safe can we make the REST API? At least I think this warrants an issue over at https://trac.neo4j.org/ticket/286 for this. Thank you Peter and Max for the quick response. It would be great to have well defined data types in the REST server. I hope the solution also works in order to talk to the server what types are sent to it, because now we have no way to create Date or List objects like properties in nodes or relationships trhough the REST API. It's not easy manage with Dates and objects in JSON. The proposal in https://trac.neo4j.org/ticket/286 adds some overhead although I think is a very good solution. However, there wouldn't be backwards compatibility. Best regards. -- Javier de la Rosa http://versae.es ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Specifying the DB data directory
Hi Andreas, Thanks for your reply. Can I specify different directories on the fly where I want to stash data? I'd like to not have all my graphs stored in one DB. Cheers, Chris --- Hi Chris, In the 'conf' directory, you'll find the annotated 'neo4j-server.properties' file which describes the few settings available, including: org.neo4j.server.database.location=data/graph.db The file is a simple key=value pair format. Relative paths assume that the current directory is the top-level of the expanded neo4j server distribution (which I suppose we could call $NEO4J_HOME). The doc/neo4j-server.txt should probably be updated to include text about the configuration location and the properties. Cheers, Andreas ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Rest API requests
Hum... not sure try just: rspec spec/integration/rest_experimental_spec.rb On Tue, Nov 23, 2010 at 3:20 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Mmh, to start with, I am stuck with some OpenSSL error when trying to run rspecs: bundle exec rspec spec/integration/rest_node_spec.rb JRuby limited openssl loaded. gem install jruby-openssl for full support. http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL JRuby limited openssl loaded. gem install jruby-openssl for full support. http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL No Extensions Found: /Users/peterneubauer/.neography FFF Failures: 1) Neography::Rest get_root can get the root node Failure/Error: root_node = @neo.get_root OpenSSL::SSL requires the jruby-openssl gem # ./lib/neography/rest.rb:268:in `get' # ./lib/neography/rest.rb:27:in `get_root' # ./spec/integration/rest_node_spec.rb:10 # :1 2) Neography::Rest create_node can create an empty node Failure/Error: new_node = @neo.create_node uninitialized constant OpenSSL::SSL # ./lib/neography/rest.rb:272:in `post' # ./lib/neography/rest.rb:35:in `create_node' # ./spec/integration/rest_node_spec.rb:17 # :1 3) Neography::Rest create_node can create a node with one property Failure/Error: new_node = @neo.create_node(name = Max) uninitialized constant OpenSSL::SSL # ./lib/neography/rest.rb:272:in `post' # ./lib/neography/rest.rb:33:in `create_node' # ./spec/integration/rest_node_spec.rb:22 # :1 Any hints what could be the reason? I have installed gem install jruby-openssl but are still getting that error on Mac OSX. Any hints? /peter ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user