Re: [Neo4j] I want a query which returns a subgraph...

2016-05-05 Thread Tim Colson
> > match path = shortestPath( (n)-[*]->(m) ) > return collect(distinct unwind(nodes(path))), collect(distinct > unwind(rels(path))) > > What do you think? > Thanks for the info, Alan! I too am interested in extracting subgraphs from a large hierarchy of wiki pages. :-) What I'm doing seems l

[Neo4j] Grass files are cool...

2016-05-05 Thread Tim Colson
TIL that I can export a grass file, edit the colors in Intellij, drag it to the Neo browser, *et voila* - my "Space" wiki nodes are *always* a purrrty blue.* Nice!!! * One weird thing... if I put a colon inside the caption element, the Neo Browser only displays the text that is pre-colon, for e

[Neo4j] Tests with Spring Boot 1.4 & Spring Data Neo4j?

2016-04-28 Thread Tim Colson
Anyone have an example of unit tests running for Neo4j inside a Spring Boot 1.4m2 webapp? I've followed the latest Spring Boot docs, but it seems unable to wire up the Neo4j repository, maybe b/c there is no web session, but a mock and/or webEnvironment didn't help. Error: *"Injection of auto

[Neo4j] Re: Recommended mix of components?

2016-04-22 Thread Tim Colson
It really was that easy 1) Switched from Spring Boot 1.3.3 to 1.4.0M2 and made sure project pom was inheriting *correctly *from parent 2) Replaced the spring-data-releasetrain dependency with

[Neo4j] Re: Recommended mix of components?

2016-04-22 Thread Tim Colson
After a bit more research, seems the Spring Data Release Train "Hopper-SR1" is the way to get everything playing nicely together, including Spring Data Neo4j 4.1 + OGM + Commons, etc. If only it were that easy

[Neo4j] Recommended mix of components?

2016-04-22 Thread Tim Colson
A while ago, I ran SDN4-University just fine, then copied parts to a new Spring Boot app to learn more. I could init the DB and persist objects without problems (incl. using Lombok for autogeneration). I fired it up against Neo4j 3.0.0-RC1 and SDN4 still runs, but my code throws an exception t

Re: [Neo4j] How do Entity IDs in sdn4-university work?

2016-03-25 Thread Tim Colson
> SDN only uses the internal node id's to attach entities to the graph. > the advice still stands that you should never use these id's say in a third > party system, to act as keys that identify the entity. Let me play this back... 1) SDN4-university

Re: [Neo4j] How do Entity IDs in sdn4-university work?

2016-03-23 Thread Tim Colson
Thanks so much Luanne for all the info/explanation! > SDN uses the internal Neo4j node or relationship ID to track domain entities. This is the same as in the Neo4j browser. > the loading of Jon - the 'id' is indeed the internal node id. Whoa... wait, I thought programs relying on internal Neo4

[Neo4j] How do Entity IDs in sdn4-university work?

2016-03-21 Thread Tim Colson
I feel like this is a basic concept, but I'm still not grokking how SpringData Neo4j 4.1 works with Entity IDs. I also am confused on how I should work with natural IDs for my domain objects. Background: I can run the sdn4-university examp