Re: [Neo4j] setRelationshipProperty() in BatchInserter

2012-06-05 Thread Michael Hunger
Can you share the exception? Michael Am 05.06.2012 um 16:14 schrieb Sarnath K - ERS, HCLTech: All, We were able to successfully create a Neo4J Graph database (1.7.2) using Batch Insert. Able to view the same through the browser (via the REST API) However, we ran into problems when

Re: [Neo4j] How to store Facebook user education in neo4j

2012-05-31 Thread Michael Hunger
Yes your suggestion sounds good. If you're interested in the actual classes (e.g. for connecting other users to the same class aka stayfriends) then you'd also model the classes as nodes (but only if you really need it in your problem domain, you can also later still evolve the model). For

Re: [Neo4j] large graph visualizations/analytics

2012-04-11 Thread Michael Hunger
You can also just spin up a 4XL AWS instance (with 68G RAM) for the viz and shut it down after you're done. For analytics you can use Neo4j directly or you export your db into twitters cassovary. For visualization, perhaps you can find something here:

Re: [Neo4j] How to use Java API to talk to Neo4J Server

2012-01-08 Thread Michael Hunger
You might look into the java-rest-binding which provides the neo4j-core-api to the remote server. https://github.com/neo4j/java-rest-binding As for examples, I'm currently working on a template repository for heroku templates that uses this rest-binding with the playframework (my first

Re: [Neo4j] SpringData requires rename of transactionManager

2012-01-02 Thread Michael Hunger
Frank, could you share more of your project? And also the exceptions that ocurr ? The neo4j TM is named neo4jTransactionManager only having an Alias to transactionManager, imho it should be possible to override that alias with another bean definition like yours. It would be great if you could

Re: [Neo4j] Inheritance in spring-data-neo4j

2011-12-14 Thread Michael Hunger
Nils, Answered there, copying it here for completeness :) Michael If you use videoRepository.findById() it only looks on the video-repository level (as it only knows about that). It creates a cypher query that uses: start n = node:Video(id={0}) return n; There is the

Re: [Neo4j] Feedback after evaluation

2011-12-10 Thread Michael Hunger
Hmm I think that works, but it won't help with the OOM, as groovy compares the script contents to check if it is the same script Michael Am 10.12.2011 um 03:13 schrieb espeed: Michael - What if each Gremlin script was scoped inside a Groovy function? Example:

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread Michael Hunger
you should use native gremlin params where they can be used. otherwise you'll blow the scriptengine in the plugin and loose lots of performance M mobile mail please excuse brevity and typos Am 09.12.2011 um 11:16 schrieb espeed ja...@jamesthornton.com: On Thursday, December 8, 2011 2:48:59

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread Michael Hunger
I understood you were just templating the params in there (string replacement) which would result in different groovy strings for every set of different parameters. Is this correct? Michael Am 09.12.2011 um 11:44 schrieb espeed: Michael Hunger wrote you should use native gremlin params

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread Michael Hunger
://docs.neo4j.org/chunked/milestone/gremlin-plugin.html#rest-api-send-a-gremlin-script-with-variables-in-a-json-map Am 09.12.2011 um 20:35 schrieb espeed: Michael Hunger wrote I understood you were just templating the params in there (string replacement) which would result in different groovy strings

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread Michael Hunger
, Michael Hunger michael.hun...@neotechnology.com wrote: For the first issue we have a work-around in the plugin which recreates the script-engine every 500 requests (should probably be configurable) but this is less than optimal. That is just rediculous workaround as to me! You drop everything

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread Michael Hunger
Exactly, looks good. Thanks James I looked again into the source code of the GroovyScriptEngine and so far there is no public way of removing older scripts. They also use a HashMap and not a LinkedHashMap with LRU enabled for storing them. One solution I could think of is to have two script

Re: [Neo4j] Graph algorithms

2011-12-08 Thread Michael Hunger
I recently saw the apache commons graph library but haven't looked into that. http://commons.apache.org/sandbox/graph/ Probably just missing a neo4j adaptor. Cheers, Michael Am 08.12.2011 um 13:54 schrieb Prajakta Kalmegh: I was searching for community/cluster detection or maybe finding

Re: [Neo4j] Feedback after evaluation

2011-12-08 Thread Michael Hunger
Isn't there something like the background jvm thingy that exists for groovy, scala and other languages? A server that the current process connects to, sends code over and runs it in the JVM? What happens if your run the 1400 rpec tests several times? Perhaps we should ask Charles Nutter for

Re: [Neo4j] Cypher 3 Trees

2011-12-07 Thread Michael Hunger
I would love to see consideration of branch ordering. Predicate support for trees like we now have for paths. And returning trees and subgraphs as cypher results. Can we generalize this discussion to connected subgraphs or is this too early ? Michael Am 07.12.2011 um 16:14 schrieb Peter

Re: [Neo4j] Cypher 3 Trees

2011-12-07 Thread Michael Hunger
E.g. a timeline tree with root - centuries - years - months - days - hours I want to traverse the tree with cypher in the order of the entries, e.g. to extract data in a ordered fashion. Am 07.12.2011 um 17:05 schrieb Andres Taylor: On Wed, Dec 7, 2011 at 4:25 PM, Michael Hunger

Re: [Neo4j] I need help with this cypher query

2011-12-07 Thread Michael Hunger
Hey André, you already almost did it, just copying your parts together start shop=node(123), me=node(321) match shop-[:sell]-item-[:like]-user,item-[r1?:like]-me where r1 is null return item the missing part was the optional relationship for r1, which allows it to be null and you check for

Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Michael Hunger
No please _remove_ neo4j-index-1.2-1.2.M06.jar this is an old library, from neo4j 1.2. you just need neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-corejar Michael Am 06.12.2011 um 08:42 schrieb ajinkyar: I already have neo4j-lucene-index-1.6-SNAPSHOT.jar in my classpath. I want to use

Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Michael Hunger
You don't need LuceneIndexService, where did you find the documentation that said to use the old index service? We would like to update that. just IndexNode myIndex = graphDb.index().forNodes(indexName); index.add(node, key, value); index.get(key,value); index.query(query); etc. see:

Re: [Neo4j] There's already an HA cluster managed by this ZooKeeper cluster

2011-12-06 Thread Michael Hunger
Answer from Mahesh (not getting through nabble): Hi, The issue is with any server that is a part of the cluster. It is reproducible at will. The method we were following was - 1) start all three co-ordinators 2) start all three servers 3) shut down one server 4) start the same server

Re: [Neo4j] Clear database over REST

2011-12-06 Thread Michael Hunger
I wrote a plugin for that. See here: You can just download the jar, put it in your plugins folder and add it to your config. https://github.com/jexp/neo4j-clean-remote-db-addon https://github.com/jexp/neo4j-clean-remote-db-addon/downloads Am 07.12.2011 um 00:11 schrieb Dmytrii Nagirniak: Hi,

Re: [Neo4j] Clear database over REST

2011-12-06 Thread Michael Hunger
07.12.2011 um 00:29 schrieb Dmytrii Nagirniak: Thanks Michael. That's definitely the best way to go. But I wonder if there is a way to do it without plugins. On 07/12/2011, at 10:22 AM, Michael Hunger wrote: I wrote a plugin for that. See here: You can just download the jar

Re: [Neo4j] Clear database over REST

2011-12-06 Thread Michael Hunger
You would also want to get all indexes and delete them too. Don't indexes retire when a related node/relationship is gone? Yes they have read-repair, but some things will hang around and if you for instance want to test e.g. index creation or create an index with the same name but different

Re: [Neo4j] Clear database over REST

2011-12-06 Thread Michael Hunger
And if you follow the code, it does the hard-core action if the limit is reached. if ((Long)result.get(nodes)=MAX_NODES_TO_DELETE) { result.putAll(cleanDbDirectory(database)); } Michael Am 07.12.2011 um 00:38 schrieb Krzysztof Raczyński: Hello Michael, I glanced through

Re: [Neo4j] Anyone try out the PageRank function on Gremlin?

2011-12-05 Thread Michael Hunger
Has anyone looked at the new? apache commons graph library? Michael Am 05.12.2011 um 16:38 schrieb Marko Rodriguez: Hi, Anyone try out the PageRank function on Gremlin? https://github.com/tinkerpop/gremlin/wiki/Working-with-JUNG-Algorithms/0506c193f30abe0bc18d40d7a08c9257d9311b13 How

Re: [Neo4j] What is this query in JavaScript (REST)?

2011-12-05 Thread Michael Hunger
You can execute cypher remotely on the server, which is preferred the way. http://docs.neo4j.org/chunked/milestone/cypher-plugin.html As of 1.6.M02 there will also be an endpoint in the core-rest-api: Michael Am 06.12.2011 um 02:51 schrieb Dmytrii Nagirniak: Hi, How would I rewrite this

Re: [Neo4j] Relationship indexes

2011-12-04 Thread Michael Hunger
Ok, thanks for pointing that out, I was not aware that it was missing. Will add the implementation. Michael Am 04.12.2011 um 16:57 schrieb Frank: Peter: The function I'm calling isn't implemented. I found it in the source code: public class RestRelationshipIndex extends

Re: [Neo4j] wiev filtered results in data browser

2011-12-03 Thread Michael Hunger
node:index:Caller:Number:* Michael Am 04.12.2011 um 04:04 schrieb snorlaks: Hi, Ive got Caller index (from Your stackoverflow message: http://stackoverflow.com/questions/7794972/neo4j-huge-graph-and-solution) and I wrote search query like: node:index:Caller:Number:* But I have no

[Neo4j] Neo4j Terracotta ?

2011-12-03 Thread Michael Hunger
Did anyone actually try that? It would be interesting. If so or if you have any comments on this, please help him: http://stackoverflow.com/questions/5997317/integrating-neo4j-and-terracotta I listened to a podcast a while ago that was describing using terracotta to distribute jdbc access of a

Re: [Neo4j] wiev filtered results in data browser

2011-12-03 Thread Michael Hunger
You can find the answers to most of your questions in the neo4j manual: http://docs.neo4j.org/chunked/milestone/indexing-search.html Cheers Michael Am 04.12.2011 um 04:47 schrieb snorlaks: Ok, Thats perferct. BTW. Where can I find in documentation information about this topic (index

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Michael Hunger
ships with SQL Server. But it was used only by .NET people and extremely rarely. On Dec 2, 2011 6:57 PM, Michael Hunger michael.hun...@neotechnology.com wrote: No, the alternative there is to provide a server-side extension that encapsulates your business logic as an endpoint running inside

Re: [Neo4j] WADL specification is the complete reference for all HTTP interactions with Neo4j?

2011-12-02 Thread Michael Hunger
The WADL is generated by Jersey which uses the metadata that it generates from the annotated REST-Endpoints. So it is always up to date: http://localhost:7474/db/data/application.wadl The Neo4j REST API is designed with discoverability in mind, so that you can start with a GET / and from there

Re: [Neo4j] possibility to merge some neo4j databases?

2011-12-02 Thread Michael Hunger
Sure the limitations apply, but as only the target database would be corrupted and none of the ones being used for the import that should be ok. That is actually like a nice lab-day project. I'll add it to the list. Michael Am 29.11.2011 um 15:18 schrieb Craig Taverner: There are two

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Michael Hunger
exactly how to link up your code with the server. Should the extension be packaged as a gem and published publicly? That Wiki entry is a little bit poorly written IMO. Sorry for saying that :-( On 02/12/2011, at 8:42 PM, Michael Hunger wrote: http://wiki.neo4j.org/content/Ruby

[Neo4j] SO Question for Pythonistas: ORM for Neo4j ?

2011-12-02 Thread Michael Hunger
Please help answering him, thanks a lot. http://stackoverflow.com/questions/8356626/orm-with-graph-databases-like-neo4j-in-python i wonder wether there is a solution (or a need for) an ORM with Graph-Database (f.e. Neo4j). I'm tracking relationships (A is related to B which is related to A

Re: [Neo4j] REST API - always batch?

2011-12-01 Thread Michael Hunger
I think especially for atomic create operations that will be solved by a GEOFF import plugin in the future. which allows for updates/insertions of subgraphs. https://github.com/nigelsmall/py2neo/wiki/GEOFF Michael Am 01.12.2011 um 09:03 schrieb Dmytrii Nagirniak: Thanks Peter. I was

Re: [Neo4j] CQL find by name

2011-12-01 Thread Michael Hunger
Actually they map to two different calls of the neo4j core API. The first one is a exact lookup for the value. The second one takes an arbitrary query string and executes it against an index, so it is much more powerful. (But also dependend on the index-provider) Main difference is that the

Re: [Neo4j] spring data neo4j Relationships

2011-12-01 Thread Michael Hunger
Martin, are you using the simple mapping (w/o AJ) or the advanced AspectJ mapping? I assume the simple mapping: There are several ways of persisting a RelationshipEntity() * (template or repository).createRelationshipBetween() * (template or repository).save(new Role(movie, actor, rolenName));

Re: [Neo4j] Will there ever be a native SDK for Node.js?

2011-12-01 Thread Michael Hunger
Actually that is true with many technologies. to provide a REST-Endpoint Neo4j-Servers you can use: * jruby with sinatra/rails * python * as you said SDN * playframework and scala * clojure (and whatever rest-framework on top) * or even pure netty based high performance servers * or other java

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Michael Hunger
:1.6.1:compile [INFO] | +- com.sun.jersey:jersey-server:jar:1.4:compile [INFO] | | \- com.sun.jersey:jersey-core:jar:1.4:compile [INFO] | \- com.sun.jersey:jersey-client:jar:1.4:compile On Nov 30, 2011, at 8:37 PM, Michael Hunger [via Neo4j Community Discussions] wrote: Frank

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Michael Hunger
] | \- com.sun.jersey:jersey-client:jar:1.4:compile On Nov 30, 2011, at 8:37 PM, Michael Hunger [via Neo4j Community Discussions] wrote: Frank, sorry to hear that. I just tried it and it works as expected. final SpringRestGraphDatabase gdb = new SpringRestGraphDatabase(http://localhost

Re: [Neo4j] py2neo - GEOFF enhancements

2011-12-01 Thread Michael Hunger
: +44 7814 638 246 Blog: http://nigelsmall.name/ GTalk: ni...@nigelsmall.name MSN: nasm...@live.co.uk Skype: technige Twitter: @technige https://twitter.com/#%21/technige LinkedIn: http://uk.linkedin.com/in/nigelsmall On 29 November 2011 23:33, Michael Hunger michael.hun

Re: [Neo4j] py2neo - GEOFF enhancements

2011-12-01 Thread Michael Hunger
...@live.co.uk Skype: technige Twitter: @technige https://twitter.com/#%21/technige LinkedIn: http://uk.linkedin.com/in/nigelsmall On 1 December 2011 21:47, Michael Hunger michael.hun...@neotechnology.comwrote: Nigel, is it possible to also do index-lookups in geoff? and use those

Re: [Neo4j] Named matched with depth gives error

2011-12-01 Thread Michael Hunger
download the 1.6 SNAPSHOT from neo4j.org/downloads mobile mail please excuse brevity and typos Am 02.12.2011 um 01:27 schrieb dnagir dna...@gmail.com: I fixed this yesterdayhttps://github.com/neo4j/community/commit/37c2867871c7d953c2021177d0b72cd8ba825be0. Thanks a lot for that. How

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Michael Hunger
Am 01.12.2011 um 23:03 schrieb zolv: Hi I have read as much I was able to read about Neo4j with the topic I wrote below. My imaginations of DB server (doesn't matter RDBMS or NoSQL) is that the crucial things for DB server is interesting from development point of view are (musts!): 1.

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Michael Hunger
No, the alternative there is to provide a server-side extension that encapsulates your business logic as an endpoint running inside of a tx. Cheers Michael Am 02.12.2011 um 08:30 schrieb Dmytrii Nagirniak: On 02/12/2011, at 4:48 PM, Jim Webber wrote: 1. Neo4j works as a standalone (or

[Neo4j] Using Neo4j as a document database (SO-Question)

2011-11-30 Thread Michael Hunger
Dear Graphistas, if you have experience with that topic, could you please answer him. I think, real world answers help more than my general ones. Thanks a lot Michael http://stackoverflow.com/questions/8332647/is-it-possible-to-use-graph-database-as-a-document-oriented-database Suppose I

Re: [Neo4j] Spring integration problem

2011-11-30 Thread Michael Hunger
Hi Frank, Which version of Srping Data Neo4j (and which version of Spring) are you running? It say it misses one of the Spring classes: org/springframework/beans/factory/xml/NamespaceHandlerSupport Which is normally included in spring-beans-3.0.6-RELEASE.jar Can you show the output of mvn

Re: [Neo4j] Cypher Query Optimizing

2011-11-30 Thread Michael Hunger
Martin, would you be so kind as to test the current neo4j-1.6 snapshot with your query? We did some changes in cypher and would like to see how that affects your query. Thanks a lot Michael Am 30.11.2011 um 18:34 schrieb Martin Junghanns: @Tero @Krzysztof thx for your fast replies.

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-11-30 Thread Michael Hunger
Frank, sorry to hear that. I just tried it and it works as expected. final SpringRestGraphDatabase gdb = new SpringRestGraphDatabase(http://localhost:7474/db/data/;); final Node node = gdb.getReferenceNode(); assertEquals(0,node.getId()); What version of the

Re: [Neo4j] Will there ever be a native SDK for Node.js?

2011-11-30 Thread Michael Hunger
if you just want to use javascript you can look into rhino. for the REST APO there neo4j,js and juggledb or using the http calls directly hth michael mobile mail please excuse brevity and typos Am 01.12.2011 um 07:06 schrieb Dmytrii Nagirniak dna...@gmail.com: On 01/12/2011, at 4:32 PM,

Re: [Neo4j] cypher question - subqueries possible?

2011-11-29 Thread Michael Hunger
Shouldn't rel2 then be an optional relationship? Otherwise IMHO it can never be null. START c=... MATCH c-[rel1:MyRel]-a, c-[rel2?:MyRel]-b WHERE rel2 is null RETURN c Am 29.11.2011 um 13:00 schrieb D. Frej: I would recommend the following START c=... MATCH c-[rel1:MyRel]-a,

Re: [Neo4j] py2neo - GEOFF enhancements

2011-11-29 Thread Michael Hunger
does it also handle iterables of nodes/rels (and probably Longs?) while thinking about it it would be great if the loader could also return a map of variables of the things generated to be used further in processing that could also interesting for cascading geoff and/or cypher cool stuff big

Re: [Neo4j] cypher question - subqueries possible?

2011-11-29 Thread Michael Hunger
wow, cool I played once with parsing jaca ast's and putting the in neo4j to answer similar question (also looking at metrics/dependency graphs) please write it up! Michael mobile mail please excuse brevity and typos Am 29.11.2011 um 13:59 schrieb jschweigl johann.schwe...@gmail.com: Thanks

Re: [Neo4j] application architecture to deliver big list of data

2011-11-29 Thread Michael Hunger
It depends on your usecase, most end-users are fine with inconsistencies (as they are part of real life). - first approach adds too much overhead - second approach will also run into inconsistencies as neo4j's transaction isolation is read-comitted so it would be most sensible to cater for

Re: [Neo4j] py2neo - GEOFF enhancements

2011-11-29 Thread Michael Hunger
: @technige https://twitter.com/#%21/technige LinkedIn: http://uk.linkedin.com/in/nigelsmall On 29 November 2011 15:58, Michael Hunger michael.hun...@neotechnology.comwrote: does it also handle iterables of nodes/rels (and probably Longs?) while thinking about it it would be great

Re: [Neo4j] EJB3 and Legacy applications

2011-11-29 Thread Michael Hunger
You might look at Spring Data Neo4j or jo4neo for that. I had a fake EntityManager in SDN once for Spring ROO (it should be still somewhere in the history) but it didn't take care of JPA annotations. If you want to give it a try, you're free to engage :) But I don't think it is worth the

Re: [Neo4j] py2neo - GEOFF enhancements

2011-11-29 Thread Michael Hunger
://nigelsmall.name/ GTalk: ni...@nigelsmall.name MSN: nasm...@live.co.uk Skype: technige Twitter: @technige https://twitter.com/#%21/technige LinkedIn: http://uk.linkedin.com/in/nigelsmall On 29 November 2011 22:09, Michael Hunger michael.hun...@neotechnology.comwrote: Hmm good question

Re: [Neo4j] UnsupportedOperationException on RestNode.traverse

2011-11-29 Thread Michael Hunger
traverse on the nodes is the old traverser API which is not supported there. please use restgraphdatabase.traversal() to create a RestTraversalDescription. Michael mobile mail please excuse brevity and typos Am 30.11.2011 um 03:58 schrieb e0d edward.zarecor+ne...@alleyoop.com: Upon

Re: [Neo4j] Using in-memory DB for unit tests

2011-11-29 Thread Michael Hunger
you can also use rel.getOtherNode(startNode) Michael mobile mail please excuse brevity and typos Am 30.11.2011 um 06:03 schrieb Jim Webber j...@neotechnology.com: Hi Jon, // This one results in a not found exception on the 'asn' property. @Test public void testIncoming() {

Re: [Neo4j] EJB3 and Legacy applications

2011-11-27 Thread Michael Hunger
Hey, I've planned to look at Hibernate OGM as a side project but there are no plans for when it will happen. Could you please explain what you mean by ? #1 If not then I think wouldn't it be good to support them #2 s every organization may not want to go for Spring-Data or want to migrate

Re: [Neo4j] Neo4j Data Capacities

2011-11-24 Thread Michael Hunger
Correct, is this an issue for your domain/data model? If so could you something about your use-case / context? Thanks a lot Michael Am 24.11.2011 um 13:55 schrieb bm3780: I've read that Neo4j has data capacity limitations

Re: [Neo4j] Neo4j Data Capacities

2011-11-24 Thread Michael Hunger
If your data exceeds those amounts, then polyglot persistence is probably the way to go. Is the other part of your data also interconnected and rich or is it just the social part? All that not only depends on the storage but also a lot on the use-cases and scenarions how you are going to use

[Neo4j] Neo4j sponsoring the global day of code retreat

2011-11-23 Thread Michael Hunger
I'm happy to announce that Neo Technology sponsors the Global Day of Code Retreat as a Continent Sponsor. Quote from Corey Haines (http://coderetreat.org) Global Day of Coderetreat is a world-wide event celebrating passion and software craftsmanship. Over 2000 passionate software developers

Re: [Neo4j] How to boost performance?

2011-11-23 Thread Michael Hunger
Vinicius, first: did you have any issues importing the data into Neo4j? second: your example used cypher which is not optimized for performance (yet!). This is in our plans for the next two releases of neo4j. So if you want to see the real performance of neo4j, please use the traversal

Re: [Neo4j] How to boost performance?

2011-11-23 Thread Michael Hunger
app right now. I expect to see some good performance boost :) Best Regards On Wed, Nov 23, 2011 at 12:12 PM, Michael Hunger michael.hun...@neotechnology.com wrote: Vinicius, first: did you have any issues importing the data into Neo4j? second: your example used cypher which

Re: [Neo4j] How to boost performance?

2011-11-23 Thread Michael Hunger
try this, I'm putting the readonlyembedded neo inside our app right now. I expect to see some good performance boost :) Best Regards On Wed, Nov 23, 2011 at 12:12 PM, Michael Hunger michael.hun...@neotechnology.com wrote: Vinicius, first: did you have any issues importing the data

Re: [Neo4j] How to boost performance?

2011-11-23 Thread Michael Hunger
issues. As we proceed with tests, I do hope that we will have one day is a HA version of neo4j. And as Jim's said in that thread, use it for other to read the graph. Regards On Wed, Nov 23, 2011 at 2:15 PM, Michael Hunger michael.hun...@neotechnology.com wrote: Just make sure

Re: [Neo4j] Batch uploading to REST server

2011-11-22 Thread Michael Hunger
I think the main overhead comes from parsing the JSON (it's not streamed parsing imho). That's why I suggest you try to split your big file into smaller ones (e.g. your 1.5k ones or half the size). And then execute multiple requests in parallel to the neo4j server to import the data. With

Re: [Neo4j] Loading large dataset

2011-11-21 Thread Michael Hunger
Vinicius, as Peter said, good idea. Please try to avoid lucene index lookups during the import (use a hashmap cache String, Node or String,Long instead). If you want to have ultrafast import, please use the batch-inserter API, for an example look here: https://gist.github.com/1375679 Cheers

Re: [Neo4j] Loading large dataset

2011-11-21 Thread Michael Hunger
the network will be 1000x faster on neo than doing hundreds of SQL joins :) Regards On Mon, Nov 21, 2011 at 10:42 AM, Michael Hunger michael.hun...@neotechnology.com wrote: Vinicius, as Peter said, good idea. Please try to avoid lucene index lookups during the import (use a hashmap cache

Re: [Neo4j] Exporting Neo4j subgraphs to graphml/gexf....

2011-11-21 Thread Michael Hunger
It is probably best to export a set of paths as a subgraph as they are returned from cypher and the traversal framework. And it is trivial to handle a single node as Path[0] or Path[1] and a single relationship as Path[1]. I don't think that it would be a part of core but rather a additional

Re: [Neo4j] Getting unrelated

2011-11-21 Thread Michael Hunger
Can you show the relevant parts of your class definitions? @NodeEntity class Collection { @RelatedTo(type=PART_OF, Direction.INCOMING) SetEntry entries; } @NodeEntity class Entry {} you can do: CollectionEntry allEntries = template.repositoryFor(Entry.class).findAll() SetEntry

Re: [Neo4j] Neo4j server plugin

2011-11-20 Thread Michael Hunger
no they are in org.neo4j.app:server:1.5 mobile mail please excuse brevity and typos Am 20.11.2011 um 13:29 schrieb Shireesh ashirees...@gmail.com: Hi Michael, I was not able to get the specific classes ( DatabaseActions and TraverserReturnType) in server-api-1.4.2 jar Can you guide me in

Re: [Neo4j] Neo4j server plugin

2011-11-20 Thread Michael Hunger
right you don't need those classes just an inspiration from the code mobile mail please excuse brevity and typos Am 20.11.2011 um 14:19 schrieb Jim Webber j...@neotechnology.com: Hi Shrieesh, Take a look here: http://mvnrepository.com/artifact/org.neo4j/server-api/1.5 You'll get the

Re: [Neo4j] [URGENT] Recommended server configurations

2011-11-19 Thread Michael Hunger
the batch API also has batch insertion operations could describe your domain model w/ estimated counts of entities and cardinalities. snd equally important the typical usecases and what percentages of the dataset they would touch mobile mail please excuse brevity and typos Am 18.11.2011 um

Re: [Neo4j] Neo4j server plugin

2011-11-19 Thread Michael Hunger
Your plugin should get the start and end node via the plugin API: http://docs.neo4j.org/chunked/snapshot/server-plugins.html (see the GetAll.java example). And then execute something like this (from DatabaseActions.traverse()). using: TraverserReturnType.FullPath public ListRepresentation

Re: [Neo4j] Batch Insert : poooor performance

2011-11-18 Thread Michael Hunger
Please try not to use lucene for lookups during batch-inserts just index your nodes (for later use) but use a custom, in memory cache for the insertion process. customID - nodeId, like MapString,Long. Using lucene for lookups takes up to 1000 times longer during batch - inserts (probably, as

[Neo4j] Help Needed: Creating a Neo4j Cheat Sheet / Reference Card

2011-11-17 Thread Michael Hunger
Dear Graphistas, today we would like to ask for your contribution in our efforts to create an introductional reference card for Neo4j. We would like to publish it as a 6 page DZone Ref-Card but also include the content in our distribution / website. We feel many people are overwhelmed when it

Re: [Neo4j] Newbie question on server topology

2011-11-17 Thread Michael Hunger
If you're using spring you can also look into Spring Data Neo4j (http://spring.neo4j.org) (see the docs here: http://static.springsource.org/spring-data/data-graph/snapshot-site/reference/html/#reference:neo4j-server) and its use of the SpringRestGraphDatabase and/or the java-rest-binding

Re: [Neo4j] Neo4j HA and Spring Data Graph 1.1

2011-11-17 Thread Michael Hunger
Hi Karthik, You have to do the normal Neo4j HA setup (http://docs.neo4j.org/chunked/snapshot/ha.html). * add the additional dependencies to your project org.neo4j:neo4j-ha:1.5 * running 3 coordinators (either download neo4j-enterprise and use start-coordinator or start the zookeeper instances

Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Michael Hunger
There is also Adriano's Scala Cypher DSL: https://github.com/adrianoalmeida7/cypher-typesafe-scala Michael Am 17.11.2011 um 22:00 schrieb Andres Taylor: On Thu, Nov 17, 2011 at 9:55 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Actually, it might be an idea to look at this

Re: [Neo4j] Suggestions on materials for learning graph theory

2011-11-15 Thread Michael Hunger
Thanks for all the feedback, very helpful information. Do you think after finishing the book, you could write up a blog post about the literature you've been suggested so far and what you found helpful for people starting to dive into graphs, that would be a valuable resource. This and the last

Re: [Neo4j] Confirming existence of relationship between two nodes

2011-11-13 Thread Michael Hunger
What version of Neo4j are you using? This query is valid syntax for 1.4.x and 1.5.M01. Later you would want to use: start a=node:nodeIndex(identifier='0') return a And if you do in Java: Node node = gds.index().forNodes(nodeIndex).get(identifier,0).getSingle() then node is the user you want?

[Neo4j] Spring Forum Question: Best option for server based in memory data model with lots of calculations?

2011-11-12 Thread Michael Hunger
Hi, there has been a question on the spring forums about a good nosql database fit for a workflow / task management application. If anyone has some experience in that are and would like to pitch in it would be highly appreciated. Thanks a lot Michael davout has just replied to a thread you

Re: [Neo4j] Cypher: relationship between nodes as condition in WHERE

2011-11-12 Thread Michael Hunger
you can have optional checks for properties mobile mail please excuse brevity and typos Am 12.11.2011 um 15:16 schrieb D. Frej dieter_f...@gmx.net: ok, in my scenario it did not work due to a WHERE clause I had also included in my query (in short: it lead to a SyntaxException as node where

Re: [Neo4j] overriding protected I underlyingObjectToObject(T object) return null

2011-11-11 Thread Michael Hunger
Jack, can you provide some more context? Where do you want to use it and what is what you are trying to achieve? Thanks a lot Michael Am 11.11.2011 um 11:51 schrieb jbeau: Hello all, I stuck with returning null in underlyingObjectToObject. First of all, I have this class: public

Re: [Neo4j] persist() undefined

2011-11-11 Thread Michael Hunger
Hi, How did you import the project? (STS 2.8 has imho some issues with the m2e plugin) You might try to use the 2.0.0-SNAPSHOT of SDN, we are aiming to release the RC1 later today. 1) make sure that the project has the Aspectj nature switched on, it should show in the context-menu of the

Re: [Neo4j] overriding protected I underlyingObjectToObject(T object) return null

2011-11-11 Thread Michael Hunger
Hey Jack, actually it is Dresden(Striesen) right now :) you might look into org.neo4j.helpers.collection.FilteringIterable, which takes a predicate to allow you arbitrary filtering. class FilteringClosableIterableT extends FilteringIterableT implements ClosableIterableT {

Re: [Neo4j] persist() undefined

2011-11-11 Thread Michael Hunger
That should be enough. Can you share your maven config? Did you build your project upon on of the example projects (like helloworld-aspects or cineasts-aspects) ? If not, try to import on those into STS and see if the same issues arise. Michael Am 11.11.2011 um 13:14 schrieb Gr3y: Hey

Re: [Neo4j] py2neo 0.982

2011-11-11 Thread Michael Hunger
Nigel, Sounds good, although I'd rather have named parameters as well, otherwise parameter indexes will easily get unwieldy. I would like to propose to use the same syntax cypher uses for parameters (that's also the syntax used by the batch-inserter) aka. {0} and {name}

Re: [Neo4j] Sampling a Neo4j instance?

2011-11-10 Thread Michael Hunger
Probably using an index for your nodes (could be an auto-index). And then using an random shuffling of the results? You can pass in a lucene query object or query string to index.query(queryOrQueryObject). Sth like this

Re: [Neo4j] How to get results from web admin console?

2011-11-10 Thread Michael Hunger
Which version of neo4j are you running? Am 10.11.2011 um 15:32 schrieb yobi: This is kinda a noob issue :) I wanna try out web admin console using Cypher. But this is what I get: cypher START a = node(10) cypher RETURN a cypher == `' expected but `n' found How do you get the

Re: [Neo4j] Travers using curl

2011-11-10 Thread Michael Hunger
you forgot the first single quote after -d and you have single quotes in your string which you have to replace by double quotes Am 10.11.2011 um 15:46 schrieb Passpart0ut: Dear All, I am trying to travers neo4j using curl and got errors: curl -X POST -H Accept:application/json -H

Re: [Neo4j] START a = node(10) vs START a = (10)

2011-11-10 Thread Michael Hunger
Ah, ok. We running the stable releases on heroku so it is still running 1.4.2 It will be updated to 1.5 today or tomorrow. That's why it is still the old syntax. Thanks for letting us know. Michael Am 10.11.2011 um 16:35 schrieb yobi: In the hosted neo4j (through Heroku) I get an error

Re: [Neo4j] START a = node(10) vs START a = (10)

2011-11-10 Thread Michael Hunger
The didn't assume that an 1.5 version was running there :) Am 10.11.2011 um 17:04 schrieb yobi: How could you have missed that. Didn't people complain that it wasn't working? :) -- View this message in context:

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Michael Hunger
Kevin, how large is the dataset that is build up? I'm not sure but the REST Plugin and the Webadmin use different implementations where webadmin streams the results with ajax and the REST plugin builds up a full string result. Do you need all of the data? Or would it be possible to page it?

Re: [Neo4j] Expected performance question

2011-11-09 Thread Michael Hunger
Oh, and cypher supports streaming (as long as you don't sort/aggregate). So that won't take up your memory. I would love if you could try that just using plain java code and iterating over the node-results and provide us with your performance numbers then. Please make sure to run the test more

Re: [Neo4j] Native UUID support?

2011-11-09 Thread Michael Hunger
I think a separate UUID (2xLONG = 16 Bytes) property type would make sense, if I remember correctly property types with larger block sizes are now possible. Otherwise it could be an inlined long[2]. Having good support on the API level (integrated separate fast index + uniqueness) would be

[Neo4j] Nice graph viz: The History Of Dance Music In One Handy Timeline

2011-11-09 Thread Michael Hunger
http://www.fastcodesign.com/1665393/infographic-of-the-day-the-history-of-dance-music-in-one-handy-timeline Cheers Michael ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

  1   2   3   4   5   6   7   >