Re: [Neo4j] Neo4j Spatial Support
Hm, did you use the raw link? https://github.com/neo4j-contrib/m2/blob/master/releases/org/neo4j/neo4j-spatial/0.13-neo4j-2.1.2/neo4j-spatial-0.13-neo4j-2.1.2-server-plugin.zip?raw=true Am 13.07.2014 16:44, schrieb Alireza Rezaei Mahdiraji: Hi Alex, I tried to use neo4j-spatial-0.13-neo4j-2.1.2-server-plugin.zip file in plugins folder of neo4j2.1.2, but the zip seems to be corrupted. Is that the case? Best, Alireza On Thursday, July 10, 2014 12:23:40 PM UTC+2, Axel wrote: Hi Alireza, it's a community project, but there's activity (Github says last activity 23 days ago). We're trying to release a version of spatial for each Neo4j release. The latest versions are for Neo4j 2.0.3 and 2.1.2, see https://groups.google.com/forum/#!topic/neo4j/a2XqAqxWjYg https://groups.google.com/forum/#%21topic/neo4j/a2XqAqxWjYg https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-spatial/0.12-neo4j-2.0.3 https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-spatial/0.12-neo4j-2.0.3 https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-spatial/0.13-neo4j-2.1.2 https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-spatial/0.13-neo4j-2.1.2 Best Axel Am 10.07.2014 11:15, schrieb Alireza Rezaei Mahdiraji: Hi All, I am wondering if neo4j-spatial library is still supported by neo4j. There is no activity on github since 3 years (https://github.com/neo4j-contrib/spatial https://github.com/neo4j-contrib/spatial), does this is mean it is not supported anymore? Best, Alireza -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout. -- Axel Morgner CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany Twitter: @amorgner https://twitter.com/amorgner Phone: +49 151 40522060 Skype: axel.morgner Structr http://structr.org - Award-Winning Open Source CMS and Web Framework based on Neo4j Structr Mailing List and Forum https://groups.google.com/forum/#%21forum/structr Graph Database Usergroup graphdb-frankfurt http://www.meetup.com/graphdb-frankfurt -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com mailto:neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Axel Morgner CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany Twitter: @amorgner https://twitter.com/amorgner Phone: +49 151 40522060 Skype: axel.morgner Structr http://structr.org - Award-Winning Open Source CMS and Web Framework based on Neo4j Structr Mailing List and Forum https://groups.google.com/forum/#%21forum/structr Graph Database Usergroup graphdb-frankfurt http://www.meetup.com/graphdb-frankfurt -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Any plans for an optional schema?
Thanks guys! Hi Jason, if you have questions on Structr, just let me know, we're happy to help! Best Axel Am 16.07.2014 23:31, schrieb Michael Hunger: Right I agree with Tom, currently you get this in structr (even when importing Neo4j databases, e.g. from a GraphGist). It definitely makes sense to have a feature like that. For Neo4j this is on the roadmap too, but not in the immediate future, it's more a capacity issue :) Am 16.07.2014 um 23:18 schrieb Tom Zeppenfeldt t.zeppenfe...@ophileon.com mailto:t.zeppenfe...@ophileon.com: sounds like structr.org http://structr.org/ may be something you want to look at .. Met vriendelijke groet / With kind regards Ir. T. Zeppenfeldt van der Waalsstraat 30 6706 JR Wageningen The Netherlands Mobile: +31 6 23 28 78 06 Phone: +31 3 17 84 22 17 E-mail: t.zeppenfe...@ophileon.com mailto:t.zeppenfe...@ophileon.com Web: www.ophileon.com http://www.ophileon.com/ Twitter: tomzeppenfeldt Skype: tomzeppenfeldt 2014-07-16 22:28 GMT+02:00 Jason Gillman Jr. mackdaddydie...@gmail.com mailto:mackdaddydie...@gmail.com: I was just wondering if the ability to utilize a schema of sorts was on the road map. When I say schema, I'm thinking more along the lines of relational constraints. Let's use the following simple example. We have the following types of entities represented by node labels (:`Server`) (:`Switch`) (:`Physical Interface`) Then we would want to enforce the following relations (I would think these restrictions would seem intuitive): (:`Server`)-[:`Contains`]-(:`Physical Interface`) (:`Switch`)-[:`Contains`]-(:`Physical Interface`) (:`Physical Interface`)-[:`Connects`]-(:`Physical Interface`) Basically, to ensure data consistency without having to build it into an application, we would want it so that Neo4j would not allow, for example, a Server to connect to another Server, or a Switch, nor would we want to make a Physical Interface contain a Server. Is something like this in the plans? Of course the use of these constraints would be completely optional. Thanks! -Jason -- -- Axel Morgner CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany Twitter: @amorgner https://twitter.com/amorgner Phone: +49 151 40522060 Skype: axel.morgner Structr http://structr.org - Award-Winning Open Source CMS and Web Framework based on Neo4j Structr Mailing List and Forum https://groups.google.com/forum/#%21forum/structr Graph Database Usergroup graphdb-frankfurt http://www.meetup.com/graphdb-frankfurt -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] [ANN] graph-collections and spatial for Neo4j 2.0.4
Just new version numbers to keep track with Neo4j stable releases: https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-graph-collections/0.7.4-neo4j-2.0.4 https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-spatial/0.12-neo4j-2.0.4 -- Axel Morgner CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany Twitter: @amorgner https://twitter.com/amorgner Phone: +49 151 40522060 Skype: axel.morgner Structr http://structr.org - Award-Winning Open Source CMS and Web Framework based on Neo4j Structr Mailing List and Forum https://groups.google.com/forum/#%21forum/structr Graph Database Usergroup graphdb-frankfurt http://www.meetup.com/graphdb-frankfurtgit s -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Neo4j Spatial Support
Hi Axel, I clone the whole repo and it works now, thanks. I have further questions (e.g., indexing, etc) but perhaps I should sent them in separate topic, right? Thanks, Alireza On Thursday, July 17, 2014 8:18:39 AM UTC+2, Axel wrote: Hm, did you use the raw link? https://github.com/neo4j-contrib/m2/blob/master/releases/org/neo4j/neo4j-spatial/0.13-neo4j-2.1.2/neo4j-spatial-0.13-neo4j-2.1.2-server-plugin.zip?raw=true Am 13.07.2014 16:44, schrieb Alireza Rezaei Mahdiraji: Hi Alex, I tried to use neo4j-spatial-0.13-neo4j-2.1.2-server-plugin.zip file in plugins folder of neo4j2.1.2, but the zip seems to be corrupted. Is that the case? Best, Alireza On Thursday, July 10, 2014 12:23:40 PM UTC+2, Axel wrote: Hi Alireza, it's a community project, but there's activity (Github says last activity 23 days ago). We're trying to release a version of spatial for each Neo4j release. The latest versions are for Neo4j 2.0.3 and 2.1.2, see https://groups.google.com/forum/#!topic/neo4j/a2XqAqxWjYg https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-spatial/0.12-neo4j-2.0.3 https://github.com/neo4j-contrib/m2/tree/master/releases/org/neo4j/neo4j-spatial/0.13-neo4j-2.1.2 Best Axel Am 10.07.2014 11:15, schrieb Alireza Rezaei Mahdiraji: Hi All, I am wondering if neo4j-spatial library is still supported by neo4j. There is no activity on github since 3 years ( https://github.com/neo4j-contrib/spatial), does this is mean it is not supported anymore? Best, Alireza -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Axel Morgner CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany Twitter: @amorgner https://twitter.com/amorgner Phone: +49 151 40522060 Skype: axel.morgner Structr http://structr.org - Award-Winning Open Source CMS and Web Framework based on Neo4j Structr Mailing List and Forum https://groups.google.com/forum/#%21forum/structr Graph Database Usergroup graphdb-frankfurt http://www.meetup.com/graphdb-frankfurt -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- Axel Morgner CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany Twitter: @amorgner https://twitter.com/amorgner Phone: +49 151 40522060 Skype: axel.morgner Structr http://structr.org - Award-Winning Open Source CMS and Web Framework based on Neo4j Structr Mailing List and Forum https://groups.google.com/forum/#%21forum/structr Graph Database Usergroup graphdb-frankfurt http://www.meetup.com/graphdb-frankfurt -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] Re: Any plans for an optional schema?
Wow, I'm surprised Structr didn't turn up in any of my previous google searches. I need to do further research, but on an initial glance, this might look to do what I've actually spent numerous hours trying to do with custom rolled code. Thanks for the hat tip! -Jason On Wednesday, July 16, 2014 4:28:54 PM UTC-4, Jason Gillman Jr. wrote: I was just wondering if the ability to utilize a schema of sorts was on the road map. When I say schema, I'm thinking more along the lines of relational constraints. Let's use the following simple example. We have the following types of entities represented by node labels (:`Server`) (:`Switch`) (:`Physical Interface`) Then we would want to enforce the following relations (I would think these restrictions would seem intuitive): (:`Server`)-[:`Contains`]-(:`Physical Interface`) (:`Switch`)-[:`Contains`]-(:`Physical Interface`) (:`Physical Interface`)-[:`Connects`]-(:`Physical Interface`) Basically, to ensure data consistency without having to build it into an application, we would want it so that Neo4j would not allow, for example, a Server to connect to another Server, or a Switch, nor would we want to make a Physical Interface contain a Server. Is something like this in the plans? Of course the use of these constraints would be completely optional. Thanks! -Jason -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] Re: py2neo 1.6.4 doesn't work with Neo4j 2.1.2 - Cannot find node...
Hi Nigel, Many thanks for your quick reply! I can reproduce it with what I think is a smallish environment. If you download my code from here: http://hg.linux-ha.org/assimilation/archive/tip.tar.gz Untar it, and go into the cma directory. Run the python script *store.py* It will fail. Each time you run it, it will give a higher node in the graph that it cannot find. If it doesn't fail, then we can try the docker thing to reproduce the environment more exactly. To try the docker version, you just need to install docker and say docker build . (or docker.io) with my Dockerfile in your directory. It will do the rest - grab the OS, libraries, things we need, build my code and run my tests. It just takes longer. For this environment, it helps to understand docker when you want to debug it. It's pretty awesome. But hopefully you won't need to do that. I also have a more complex set of tests that only require python that will likely fail if there's a Neo4j/Py2neo issue that affects me. Maybe I should create a separate test environment for that - that you could easily run. On 07/15/2014 04:42 PM, Nigel Small wrote: Familiar with the concept but have never actually used it. On 15 July 2014 23:41, Alan Robertson al...@unix.sh mailto:al...@unix.sh wrote: Yes. There are lots of ways to do that. After all, it's all open source :-D. Are you familiar with docker? On 07/15/2014 04:19 PM, Nigel Small wrote: Can you share some code that I can run to recreate the issue? Cheers Nigel On 15 July 2014 23:09, Alan Robertson al...@unix.sh mailto:al...@unix.sh wrote: Neo4j package: neo4j-2.1.2-1.noarch # pip list | grep py2neo py2neo (1.6.4) The context is this: I just did a commit of a transaction which added nodes to the database, and am now trying to retrieve these same nodes by the ids for them which were returned by the transaction. tests.cma_test TestCMABasic.test_several_startups ... error: tests.cma_test TestCMABasic.test_several_startups Traceback (most recent call last): File ./tests/cma_test.py, line 506, in test_several_startups CMAinit(io, cleanoutdb=True, debug=DEBUG) File ./cmainit.py, line 75, in __init__ CMAdb.store.commit() File ./store.py, line 912, in commit for attr in newnode.get_properties(): File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 1398, in get_properties self._properties = assembled(self._properties_resource._get()) or {} File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 367, in _get raise ClientError(e) ClientError: Cannot find node with id [0] in database. ERROR in 2.49s tests.cma_test TestCMABasic.test_startup ... error: tests.cma_test TestCMABasic.test_startup Traceback (most recent call last): File ./tests/cma_test.py, line 433, in test_startup CMAinit(io, cleanoutdb=True, debug=DEBUG) File ./cmainit.py, line 75, in __init__ CMAdb.store.commit() File ./store.py, line 912, in commit for attr in newnode.get_properties(): File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 1398, in get_properties self._properties = assembled(self._properties_resource._get()) or {} File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 367, in _get raise ClientError(e) ClientError: Cannot find node with id [1] in database. -- Alan Robertson al...@unix.sh mailto:al...@unix.sh - @OSSAlanR Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions. - William Wilberforce -- Alan Robertsonal...@unix.sh mailto:al...@unix.sh - @OSSAlanR Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions. - William Wilberforce -- Alan Robertson al...@unix.sh - @OSSAlanR Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions. - William Wilberforce -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Re: Any plans for an optional schema?
Thanks! Seems we have to write more about Structr's rich schema support for Neo4j, so that a search for neo4j schema will return more Structr hits. :-) Am 17.07.2014 15:53, schrieb Jason Gillman Jr.: Wow, I'm surprised Structr didn't turn up in any of my previous google searches. I need to do further research, but on an initial glance, this might look to do what I've actually spent numerous hours trying to do with custom rolled code. Thanks for the hat tip! -Jason On Wednesday, July 16, 2014 4:28:54 PM UTC-4, Jason Gillman Jr. wrote: I was just wondering if the ability to utilize a schema of sorts was on the road map. When I say schema, I'm thinking more along the lines of relational constraints. Let's use the following simple example. We have the following types of entities represented by node labels (:`Server`) (:`Switch`) (:`Physical Interface`) Then we would want to enforce the following relations (I would think these restrictions would seem intuitive): (:`Server`)-[:`Contains`]-(:`Physical Interface`) (:`Switch`)-[:`Contains`]-(:`Physical Interface`) (:`Physical Interface`)-[:`Connects`]-(:`Physical Interface`) Basically, to ensure data consistency without having to build it into an application, we would want it so that Neo4j would not allow, for example, a Server to connect to another Server, or a Switch, nor would we want to make a Physical Interface contain a Server. Is something like this in the plans? Of course the use of these constraints would be completely optional. Thanks! -Jason -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com mailto:neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Axel Morgner · a...@morgner.de · @amorgner CEO Structr (c/o Morgner UG) · Hanauer Landstr. 291a · 60314 Frankfurt · Germany phone: +49 151 40522060 · skype: axel.morgner http://structr.org - Open Source CMS and Web Framework based on Neo4j, won Graphie Award for Most Innovative Open Source Graph Application structr Mailing List and Forum https://groups.google.com/forum/#%21forum/structr Graph Database Usergroup graphdb-frankfurt http://www.meetup.com/graphdb-frankfurt -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] How to traverse all the nodes within a specific depth using traversal framework?
I'd like to traverse all the nodes within a specific depth using traverse traverse. The start node (userNode) is uo. TraversalDescription friendsTraversal = graphDb.traversalDescription() .evaluator(Evaluators.excludeStartPosition()) .evaluator(Evaluators.toDepth(4)) .depthFirst() .relationships(DynamicRelationshipType.withName(KNOWS)) .uniqueness(Uniqueness.RELATIONSHIP_GLOBAL); for (Node currentNode : friendsTraversal.traverse(userNode).nodes()) // userNode: uo traversedNodes += currentNode.getProperty(name) + ; System.out.println(String.format(%s [TRAVERSES, depth %d] %s, userNodeName, depth, traversedNodes)); The result is as follows. uo [TRAVERSES, depth 4] uu ux GG uo QP QQ QA Question 1. How come uo is included in the traversed nodes in spite of excluding the start position by calling evaluator(Evaluators.excludeStartPosition()). Question 2. How come KX is not included in the traversed nodes though it's 4 depths away from the uo node. My expected nodes traversed are { uu, ux, QP, GG, QQ, KX }. The node topology is shown below. The blue edges are KNOWS edges. https://lh4.googleusercontent.com/-0xUz4XmaAfo/U8fZLxmhdgI/Bww/rjDSgIDmkxw/s1600/image2013-12-18+10-55-30.png -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] True streaming enabled in latest Perl driver - REST::Neo4p v0.3003
All, For Perlers using Neo4j, I want to announce that REST::Neo4p https://metacpan.org/pod/REST::Neo4p now (should) supports true object streaming from Neo4j REST JSON responses. In particular, rows returned from queries via $row = $query-fetch() should be retrieved as they come in from the chunked response. This should be non-blocking if the Mojo::UserAgent https://metacpan.org/pod/Mojo::UserAgent backend is used. See this doc https://metacpan.org/pod/REST::Neo4p::Agent#DESCRIPTION for a little more detail. I would appreciate any questions, feedback or complaints! MAJ -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] True streaming enabled in latest Perl driver - REST::Neo4p v0.3003
Nice. All clients/drivers should strive for this functionality--definite boost to overall performance and responsiveness. :) Wes On Thu, Jul 17, 2014 at 11:59 AM, Mark Jensen maj.fortinb...@gmail.com wrote: All, For Perlers using Neo4j, I want to announce that REST::Neo4p https://metacpan.org/pod/REST::Neo4p now (should) supports true object streaming from Neo4j REST JSON responses. In particular, rows returned from queries via $row = $query-fetch() should be retrieved as they come in from the chunked response. This should be non-blocking if the Mojo::UserAgent https://metacpan.org/pod/Mojo::UserAgent backend is used. See this doc https://metacpan.org/pod/REST::Neo4p::Agent#DESCRIPTION for a little more detail. I would appreciate any questions, feedback or complaints! MAJ -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] Neo4j Queries
Hi All, We have enterprise version of Neo4j running a single server in Server mode. I have the following doubts. 1) If i have a node of type Employee with label Person on the attribute employee_id. Employee has another attribute called Name can i add a index on Name . Will this index take care of indexing existing data ? 2) I want to use Cypher Engine and i want to use schema with Uniqueness constraint. My question is do i create a Cypher Engine when my Neo4j unmanaged extension starts with the schema constraint ? or do i execute the Cypher just once in the beginning and then no need to do it even if server is restarted multiple times i.e. schema is persisted in DB. 3) I want to use a single instance of Cypher Engine as this is recommended for performance . How does a single Cypher Engine handle concurrent query requests. What are the best practices for this scenario. Thanks Gagan -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] Not able to view nodes in browser
Hello All, I just started with neo4j few days back. I just executed a sample hello world example given in the tutorial. But, I am not able to view the nodes in the db browser. Can you please help me with this. Is there any problem with the db path. (I have given the path *db_path - C:downloads/neo4j 2.1.2*) Thanks in advance. -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Neo4j] Find Disconnected Nodes
I am completely stumped on this. Is there a way to find nodes that have NO connection to anything else in the graph?! I have tried several different ways - but nothing seems to be working. Any suggestions?! Dave -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Not able to view nodes in browser
Can you perhaps share a screenshot? Did you a execute a query from the left side pane? Like Get some data Note that there is a switch between tabular and vsualization view on the bottom right of each visualization view. Michael Am 17.07.2014 um 18:32 schrieb shyam sunder reddy shyamsunder...@gmail.com: Hello All, I just started with neo4j few days back. I just executed a sample hello world example given in the tutorial. But, I am not able to view the nodes in the db browser. Can you please help me with this. Is there any problem with the db path. (I have given the path db_path - C:downloads/neo4j 2.1.2) Thanks in advance. -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Find Disconnected Nodes
In principle two ways: MATCH (n:Label) WHERE NOT (n)--() RETURN n (you might leave off the label) or MATCH (n:Label) OPTIONAL MATCH (n)--(m) WITH n,m WHERE m IS NULL RETURN n Am 17.07.2014 um 17:59 schrieb David Bigelow davidhbige...@simplifiedlogic.com: I am completely stumped on this. Is there a way to find nodes that have NO connection to anything else in the graph?! I have tried several different ways - but nothing seems to be working. Any suggestions?! Dave -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Neo4j] Re: py2neo 1.6.4 doesn't work with Neo4j 2.1.2 - Cannot find node...
And for good measure, if you use the Dockerfile quoted below (and attached), this is a clean-room reproduction of the problem in CentOS6 (with Python 2.7). ### FROM centos:latest # Would prefer headless, but not available in CentOS6 RUN yum -y install wget java-1.7.0-openjdk scl-utils redhat-lsb-core RUN wget -qO- http://dev.centos.org/centos/6/SCL/scl.repo /etc/yum.repos.d/centos.scl.repo RUN yum -y install python27-python python27-python-setuptools ### Neo4j RPM RUN wget http://debian.neo4j.org/neotechnology.gpg.key -O /tmp/neo4j.key rpm --import /tmp/neo4j.key rm -f /tmp/neo4j.key RUN echo '[neo4j]' /etc/yum.repos.d/neo4j.repo echo 'name=Neo4j Yum Repo' /etc/yum.repos.d/neo4j.repo echo 'baseurl=http://yum.neo4j.org' /etc/yum.repos.d/neo4j.repo echo 'enabled=1' /etc/yum.repos.d/neo4j.repo echo 'gpgcheck=1' /etc/yum.repos.d/neo4j.repo yum -y install neo4j RUN scl enable python27 'easy_install pip' RUN scl enable python27 'pip install py2neo' RUN echo Pulling Assimilation project source RUN mkdir /tmp/neotest cd /tmp/neotest wget -q http://hg.linux-ha.org/assimilation/raw-file/tip/cma/store.py wget -q http://hg.linux-ha.org/assimilation/raw-file/tip/cma/assimevent.py RUN NEO=neo4j; cd /tmp/neotest /etc/init.d/${NEO} start sleep 15 scl enable python27 '/usr/bin/env python --version; python store.py' ## Do this: make a directory cd into the directory you just made copy the above text into a file in that directory - named Dockerfile docker.io build . This is a completely clean-room demonstration of the problem in CentOS6. On 07/17/2014 08:16 AM, Alan Robertson wrote: Hi Nigel, Many thanks for your quick reply! I can reproduce it with what I think is a smallish environment. If you download my code from here: http://hg.linux-ha.org/assimilation/archive/tip.tar.gz Untar it, and go into the cma directory. Run the python script *store.py* It will fail. Each time you run it, it will give a higher node in the graph that it cannot find. If it doesn't fail, then we can try the docker thing to reproduce the environment more exactly. To try the docker version, you just need to install docker and say docker build . (or docker.io) with my Dockerfile in your directory. It will do the rest - grab the OS, libraries, things we need, build my code and run my tests. It just takes longer. For this environment, it helps to understand docker when you want to debug it. It's pretty awesome. But hopefully you won't need to do that. I also have a more complex set of tests that only require python that will likely fail if there's a Neo4j/Py2neo issue that affects me. Maybe I should create a separate test environment for that - that you could easily run. On 07/15/2014 04:42 PM, Nigel Small wrote: Familiar with the concept but have never actually used it. On 15 July 2014 23:41, Alan Robertson al...@unix.sh mailto:al...@unix.sh wrote: Yes. There are lots of ways to do that. After all, it's all open source :-D. Are you familiar with docker? On 07/15/2014 04:19 PM, Nigel Small wrote: Can you share some code that I can run to recreate the issue? Cheers Nigel On 15 July 2014 23:09, Alan Robertson al...@unix.sh mailto:al...@unix.sh wrote: Neo4j package: neo4j-2.1.2-1.noarch # pip list | grep py2neo py2neo (1.6.4) The context is this: I just did a commit of a transaction which added nodes to the database, and am now trying to retrieve these same nodes by the ids for them which were returned by the transaction. tests.cma_test TestCMABasic.test_several_startups ... error: tests.cma_test TestCMABasic.test_several_startups Traceback (most recent call last): File ./tests/cma_test.py, line 506, in test_several_startups CMAinit(io, cleanoutdb=True, debug=DEBUG) File ./cmainit.py, line 75, in __init__ CMAdb.store.commit() File ./store.py, line 912, in commit for attr in newnode.get_properties(): File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 1398, in get_properties self._properties = assembled(self._properties_resource._get()) or {} File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 367, in _get raise ClientError(e) ClientError: Cannot find node with id [0] in database. ERROR in 2.49s tests.cma_test TestCMABasic.test_startup ... error: tests.cma_test TestCMABasic.test_startup Traceback (most recent call last): File ./tests/cma_test.py, line 433, in test_startup CMAinit(io, cleanoutdb=True, debug=DEBUG) File ./cmainit.py, line 75, in __init__
Re: [Neo4j] Re: py2neo 1.6.4 doesn't work with Neo4j 2.1.2 - Cannot find node...
Cool, thanks. I should get a chance to look into it over the next couple of weeks. Cheers Nigel On 17 July 2014 22:41, Alan Robertson al...@unix.sh wrote: And for good measure, if you use the Dockerfile quoted below (and attached), this is a clean-room reproduction of the problem in CentOS6 (with Python 2.7). ### FROM centos:latest # Would prefer headless, but not available in CentOS6 RUN yum -y install wget java-1.7.0-openjdk scl-utils redhat-lsb-core RUN wget -qO- http://dev.centos.org/centos/6/SCL/scl.repo /etc/yum.repos.d/centos.scl.repo RUN yum -y install python27-python python27-python-setuptools ### Neo4j RPM RUN wget http://debian.neo4j.org/neotechnology.gpg.key -O /tmp/neo4j.key rpm --import /tmp/neo4j.key rm -f /tmp/neo4j.key RUN echo '[neo4j]' /etc/yum.repos.d/neo4j.repo echo 'name=Neo4j Yum Repo' /etc/yum.repos.d/neo4j.repo echo 'baseurl=http://yum.neo4j.org' /etc/yum.repos.d/neo4j.repo echo 'enabled=1' /etc/yum.repos.d/neo4j.repo echo 'gpgcheck=1' /etc/yum.repos.d/neo4j.repo yum -y install neo4j RUN scl enable python27 'easy_install pip' RUN scl enable python27 'pip install py2neo' RUN echo Pulling Assimilation project source RUN mkdir /tmp/neotest cd /tmp/neotest wget -q http://hg.linux-ha.org/assimilation/raw-file/tip/cma/store.py wget -q http://hg.linux-ha.org/assimilation/raw-file/tip/cma/assimevent.py RUN NEO=neo4j; cd /tmp/neotest /etc/init.d/${NEO} start sleep 15 scl enable python27 '/usr/bin/env python --version; python store.py' ## Do this: make a directory cd into the directory you just made copy the above text into a file in that directory - named Dockerfile docker.io build . This is a completely clean-room demonstration of the problem in CentOS6. On 07/17/2014 08:16 AM, Alan Robertson wrote: Hi Nigel, Many thanks for your quick reply! I can reproduce it with what I think is a smallish environment. If you download my code from here: http://hg.linux-ha.org/assimilation/archive/tip.tar.gz Untar it, and go into the cma directory. Run the python script *store.py* It will fail. Each time you run it, it will give a higher node in the graph that it cannot find. If it doesn't fail, then we can try the docker thing to reproduce the environment more exactly. To try the docker version, you just need to install docker and say docker build . (or docker.io) with my Dockerfile in your directory. It will do the rest - grab the OS, libraries, things we need, build my code and run my tests. It just takes longer. For this environment, it helps to understand docker when you want to debug it. It's pretty awesome. But hopefully you won't need to do that. I also have a more complex set of tests that only require python that will likely fail if there's a Neo4j/Py2neo issue that affects me. Maybe I should create a separate test environment for that - that you could easily run. On 07/15/2014 04:42 PM, Nigel Small wrote: Familiar with the concept but have never actually used it. On 15 July 2014 23:41, Alan Robertson al...@unix.sh wrote: Yes. There are lots of ways to do that. After all, it's all open source :-D. Are you familiar with docker? On 07/15/2014 04:19 PM, Nigel Small wrote: Can you share some code that I can run to recreate the issue? Cheers Nigel On 15 July 2014 23:09, Alan Robertson al...@unix.sh wrote: Neo4j package: neo4j-2.1.2-1.noarch # pip list | grep py2neo py2neo (1.6.4) The context is this: I just did a commit of a transaction which added nodes to the database, and am now trying to retrieve these same nodes by the ids for them which were returned by the transaction. tests.cma_test TestCMABasic.test_several_startups ... error: tests.cma_test TestCMABasic.test_several_startups Traceback (most recent call last): File ./tests/cma_test.py, line 506, in test_several_startups CMAinit(io, cleanoutdb=True, debug=DEBUG) File ./cmainit.py, line 75, in __init__ CMAdb.store.commit() File ./store.py, line 912, in commit for attr in newnode.get_properties(): File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 1398, in get_properties self._properties = assembled(self._properties_resource._get()) or {} File /opt/rh/python27/root/usr/lib64/python2.7/site-packages/py2neo/neo4j.py, line 367, in _get raise ClientError(e) ClientError: Cannot find node with id [0] in database. ERROR in 2.49s tests.cma_test TestCMABasic.test_startup ... error: tests.cma_test TestCMABasic.test_startup Traceback (most recent call last): File ./tests/cma_test.py, line 433, in test_startup CMAinit(io, cleanoutdb=True, debug=DEBUG) File ./cmainit.py, line 75, in __init__ CMAdb.store.commit() File ./store.py, line 912, in commit for attr in newnode.get_properties(): File
Re: [Neo4j] ACL schema with Neo4j, data in MySQL/MongoDB
So... here is the Graph Gist: http://gist.neo4j.org/?github-benneq%2Fgists%2F%2Fmeta%2FSimple.adoc And the PDF (from the previous post): http://www.docdroid.net/er3w/acl-cheat-sheet.pdf.html *The permission resolution algorithm:* 1. Look if the User has a direct Permission relation to the Object 2. Look if the User has a relation to some parent of the Object (find first parent in the hierarchy) 3. Look at the Roles (here it get's a bit complicated): - Find all Permission relations from a Role to the Object *and *its parents. - If one of these Permission relations says true, return true, else return false *Example #1:* - User has a Permission relation to the Object - Group (where user is member of) has Permission relation to the Object - - Take the Permission relation of the User *Example #2:* - User has a Permission relation to one (or more) of the Object's parents - Some of the User's Groups has a direct Permission relation to the Object - - Ignore the Group permissions! Take the Permission relation between the User and the closest found parent of the Object *Example #3:* - User has *no *Permission relation to the Object or one of its parents - Any of the User's Groups have a direct Permission relation to the Object - - Return true, if some of the Group's Permission relations says true, else return false *Example #4:* - User has *no *Permission relation to the Object or one of its parents - Some of the User's Groups have a direct Permission relation to the Object *and *some have a direct relation to any of the Object's parents - - Return true, if some of the Group's Permission relations says true, else return false *Example #5:* - User has *no *Permission relation to the Object or one of its parents - There's no direct Permission relation from any of the User's Groups to the Object *and *but some have a direct relation to any of the Object's parents - - Return true, if some of the Group's Permission relations says true, else return false I hope, now the requirements are clear :) -- You received this message because you are subscribed to the Google Groups Neo4j group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.