Re: [Neo4j] Filter by relationship Property

2011-03-24 Thread Tobias Ivarsson
For the first position (at the start node), there is no relationship leading
up to it, which means that the lastRelationship() method returns null.
This is a special case that has to be dealt with.

Cheers,
Tobias

On Wed, Mar 23, 2011 at 9:05 PM, Justine Mathews justine.math...@megree.com
 wrote:

 Tobias,



 I have used the return filter, I am getting following error when making
 rest call for node  traverse,

 Error : The remote server returned an error: (500) Internal Server Error.

 Response header status : *javax.script.ScriptException:
 sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call method
 getProperty of null (Unknown Source#1)*



 please find below the syntax,



 *url:* http://localhost:7474/db/data/node/80/traverse/node

 *traverse:*

 {order: depth first,relationships: [

   {

 type: Friend,

 direction: all

   }

 ],return filter: {

   language: javascript,

   body: position.lastRelationship().hasProperty(\customerId\);

 },max depth: 1}



 · *Kernel version*

 Neo4j - Graph Database Kernel 1.3.M03





 --
 Regards,
 Justine K Mathews, MCSD.NET
 Mob: +44-(0) 7795268546

 http://www.justinemathews.com

 http://uk.linkedin.com/in/justinemathews






-- 
Tobias Ivarsson tobias.ivars...@neotechnology.com
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Data type returned by extensions in REST

2011-03-24 Thread Michael Hunger
Javier,

unfortunately it is not clear what you're asking for.

Is it the discoverable part of the REST API which describes parameters and 
return values?
I think the parameter description is generated from the server plugin method 
parameter names, types and annotation values.

This is handled by the ExtensionPointRepresentation in the server. I just 
looked and it doesn't contain information about the result.

We will discuss that internally and probably add this information. By now you 
are limited to documenting that in the description part.

Cheers

Michael

Am 22.03.2011 um 23:29 schrieb Javier de la Rosa:

 Hi all,
 
 I'm ending the support for extensions in the neo4j-rest-interface [1]
 and it will be soon available for installing through easy_install and
 pip, the Python Package Index, and probably with a new name, I don't
 know yet.
 But I have just find a little problem, the data type returned is not
 revealed in any of params in REST interface. By example, in the
 ShortestPath.shortestPath extension the dictionary of properties
 received by the client is:
  {u'description': u'Find the shortest path between two nodes.',
   u'extends': u'node',
   u'name': u'shortestPath',
   u'parameters': [{u'description': u'The node to find the shortest path to.',
u'name': u'target',
u'optional': False,
u'type': u'node'},
   {u'description': u'The relationship types to follow
 when searching for the shortest path(s). Order is insignificant, if
 omitted all types are followed.',
u'name': u'types',
u'optional': True,
u'type': u'strings'},
   {u'description': u'The maximum path length to
 search for, default value (if omitted) is 4.',
u'name': u'depth',
u'optional': True,
u'type': u'integer'}]}
 
 That's enough to clean and send the parameters to the extension using
 the REST interface, but doesn't for creating the returned objects
 automatically. Adding a new returns in the properties returned
 should work, but maybe setting some conventions about the types
 returned and sent would be a good idea. Actually the type strings is
 really a list of strings, a bit confusing.
 
 Until now, the only way to discover the type of returned objects was
 to inspect the self attribute of the first element, but that doesn't
 work in all the cases.
 
 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] neo4j-spatial pulled from neo4j maven repo?

2011-03-24 Thread Axel Morgner
Hi,

is it true that the current neo4j-spatial jarfiles are not available on 
http://m2.neo4j.org/org/neo4j/neo4j-spatial/ anymore?

I cannot find it at http://m2.neo4j.org/snapshots/org/neo4j/ either.

On https://repo.neo4j.org/ I only find 0.1-SNAPSHOT.

https://repo.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-spatial/0.5-SNAPSHOT/neo4j-spatial-0.5-SNAPSHOT.jar

Where is the correct maven repo?

Greetings

Axel



___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] buggy webadmin

2011-03-24 Thread Peter Neubauer
Anton,
we are thinking of adding more property types to Neo4j after 1.3,
among them a structured document one that would be exactly this.
Until then, you can of course either just have properties for each of
the map entries, or escape the whole JSON map and store it as a String
property. Would any of this work for you?

/peter

On Tue, Mar 22, 2011 at 9:27 PM, Anton Kulaga antonkul...@gmail.com wrote:
 Sorry for the delay in answer. Yes, {firstkey:Val,
 secondkey:Val2} happened to be valid json-s but I got Maps are
 not supported property values error. I wonder how soon maps support
 will be added?

 2011/3/14 Peter Neubauer peter.neuba...@neotechnology.com:
 Anton,
 just wanted to check if things did work out for you?

 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://startupbootcamp.org/    - Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



 On Sat, Mar 12, 2011 at 11:22 PM, Michael Hunger
 michael.hun...@neotechnology.com wrote:
 Regarding the second fact:
 {firstkey:Val, secondkey:Val2} is no valid JSON, you always have to
 quote strings.

 i.e. {firstkey:Val, secondkey:Val2}

 Cheers

 Michael

 Am 12.03.2011 um 21:49 schrieb Anton Kulaga:

 Hello, I  stumbled upon few bugs in neo4j webadmin.

 When I create a relationship between any two nodes in neo4j webadmin I
 get error that node 'id of the first node' cannot be found event if
 both nodes DO EXIST. Creations of new nodes works fine although
 webinterface for unknown reasons does not recognise things like
 {firstkey:Val, secondkey:Val2} as valid JSON values; My OS is
 WIndows 2008 Server RC2, Java version is 6, Browser: Chrome 10

 --
 Best regards,
 Anton Kulaga
 ___
 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




 --
 Best regards,
 Anton Kulaga
 ___
 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-spatial pulled from neo4j maven repo?

2011-03-24 Thread Anders Nawroth
Hi!

Lots of files in the repo got moved yesterday while some work was done 
there. I'll try to bring them back ASAP.

/anders

On 03/24/2011 10:18 AM, Axel Morgner wrote:
 Hi,

 is it true that the current neo4j-spatial jarfiles are not available on
 http://m2.neo4j.org/org/neo4j/neo4j-spatial/ anymore?

 I cannot find it at http://m2.neo4j.org/snapshots/org/neo4j/ either.

 On https://repo.neo4j.org/ I only find 0.1-SNAPSHOT.

 https://repo.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-spatial/0.5-SNAPSHOT/neo4j-spatial-0.5-SNAPSHOT.jar

 Where is the correct maven repo?

 Greetings

 Axel



 ___
 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-spatial pulled from neo4j maven repo?

2011-03-24 Thread Anders Nawroth
Hi!

The neo4j-spatial snapshots are now back.

/anders

On 03/24/2011 10:18 AM, Axel Morgner wrote:
 Hi,

 is it true that the current neo4j-spatial jarfiles are not available on
 http://m2.neo4j.org/org/neo4j/neo4j-spatial/ anymore?

 I cannot find it at http://m2.neo4j.org/snapshots/org/neo4j/ either.

 On https://repo.neo4j.org/ I only find 0.1-SNAPSHOT.

 https://repo.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-spatial/0.5-SNAPSHOT/neo4j-spatial-0.5-SNAPSHOT.jar

 Where is the correct maven repo?

 Greetings

 Axel



 ___
 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-spatial pulled from neo4j maven repo?

2011-03-24 Thread Axel Morgner
Yes, thanks a lot!!

Am 24.03.2011 10:42, schrieb Anders Nawroth:
 Hi!

 The neo4j-spatial snapshots are now back.

 /anders

 On 03/24/2011 10:18 AM, Axel Morgner wrote:
 Hi,

 is it true that the current neo4j-spatial jarfiles are not available on
 http://m2.neo4j.org/org/neo4j/neo4j-spatial/ anymore?

 I cannot find it at http://m2.neo4j.org/snapshots/org/neo4j/ either.

 On https://repo.neo4j.org/ I only find 0.1-SNAPSHOT.

 https://repo.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-spatial/0.5-SNAPSHOT/neo4j-spatial-0.5-SNAPSHOT.jar

 Where is the correct maven repo?

 Greetings

 Axel


___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Neo4J High Availability : embedded or server mode ?

2011-03-24 Thread Clement Honore
Hi,

I'm new to Neo4J and I'm a little bit confused (maybe totally lost...) about
the use of the Neo4J server against an embedded database in high
availability mode...

I need a database with high availability, replication and high concurrency
management accessed as a remote server.
If I have well understood, Neo4J server only give an access to the database
through a REST API, which didn't implement all of the capabilities of the
embedded database with full Java access.

Neo4J server obviously could be run in high availability mode. BUT embedded
database should to ! But for me, the principle of clustering and replication
is inherent to a server mode ! So, if I make an embedded database in HA
mode, I'll have a database that can be used like a remote server but with
full Java access (with HighlyAvailableGraphDatabase class) ?
So what's the advantage of using Neo4J server anymore ? :/

Sorry if I didn't understand anything but after some days of reading and
reading again all the documentation and wiki pages, I don't know what to
do...
Thanks for explanations !

Kiiv

PS : sorry if my english is not very understandable, I can try to explain
things differently if needed
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J High Availability : embedded or server mode ?

2011-03-24 Thread Jim Webber
Hi Kiiv,

Both the embedded database *and* the server database can run in HA mode. 

We tend to think of the server as simply a wrapper around the database that 
provides a RESTful API to augment the local API.

So go right ahead and pick the configuration that's right for you, and you'll 
be able to use HA whatever configuration you decide.

Jim
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] neo4j-spatial pulled from neo4j maven repo?

2011-03-24 Thread Andreas Kollegger
Hi Axel,

We had a brief outtage of the m2.neo4j.org snapshot repository. It should all 
be back up again.

Apologies,
Andreas

On Mar 24, 2011, at 10:18 AM, Axel Morgner wrote:

 Hi,
 
 is it true that the current neo4j-spatial jarfiles are not available on 
 http://m2.neo4j.org/org/neo4j/neo4j-spatial/ anymore?
 
 I cannot find it at http://m2.neo4j.org/snapshots/org/neo4j/ either.
 
 On https://repo.neo4j.org/ I only find 0.1-SNAPSHOT.
 
 https://repo.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-spatial/0.5-SNAPSHOT/neo4j-spatial-0.5-SNAPSHOT.jar
 
 Where is the correct maven repo?
 
 Greetings
 
 Axel
 
 
 
 ___
 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] Neo4J Spatial - issue with bounding box indices in OSM Layer.

2011-03-24 Thread Robert Boothby
Hi, I've been playing with Neo4j Spatial and the OSM data imports to
see how it all fits together. I've been blogging on my experiences
(http://bbboblog.blogspot.com).

It's still early days but think that I have run into an issue. Having
imported the OSM data successfully I've tried to execute this code to
determine whether the centre of the town of Aylesbury (UK) is within
the county of Buckinghamshire (which it is) and to pull back all nodes
which contain the centre of the town:

final OSMLayer osmLayer = (OSMLayer)spatialDB.getLayer(OSM-BUCKS);
final GeometryFactory factory = osmLayer.getGeometryFactory();
final Point point = factory.createPoint(new
Coordinate(51.796726,-0.812988));

SearchContain searchContain = new SearchContain(point);

osmLayer.getIndex().executeSearch(searchContain);
for(SpatialDatabaseRecord record: searchContain.getResults()){
System.out.println(Container: + record);
}

The layer does contain the appropriate data imported from a .osm file
extract for Buckinghamshire (the smallest file for an English county).

When I've tried to run it I've got no results and when I've debugged
it appears that the bbox property attributes (minx, maxx, miny, maxy)
for the layer's root node are incorrect (mixed up) - minx=-1.1907455,
maxx = 51.0852483, miny=0.3909055, maxy=52.2274931 causing the search
to return immediately. Am I using this API correctly and have I
stumbled into a genuine bug?

Thank you,

Robert Boothby.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J High Availability : embedded or server mode ?

2011-03-24 Thread Clement Honore
Hi Jim,

thanks for your answer.
So the Neo4J server and REST API are principaly interesting for non
supported langages but with Java you confirm that the embedded database in
high availability mode act like a standalone server.

Nice ;)

Kiiv

2011/3/24 Jim Webber j...@neotechnology.com

 Hi Kiiv,

 Both the embedded database *and* the server database can run in HA mode.

 We tend to think of the server as simply a wrapper around the database that
 provides a RESTful API to augment the local API.

 So go right ahead and pick the configuration that's right for you, and
 you'll be able to use HA whatever configuration you decide.

 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


[Neo4j] Cron job inside embedded neo4j

2011-03-24 Thread Saikat Kanjilal
Folks,
I was wondering if there's a way to simulate the notion of a cron job inside 
embedded neo4j, I nerd to have a way to periodically update a certain property 
of each and every node in my graph by calling into a remote service .

Regards

Sent from my iPhone
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cron job inside embedded neo4j

2011-03-24 Thread Andreas Kollegger
Hi Saikat,

The embedded graph database does not have such a facility. You'd have to manage 
a timer thread yourself or use perhaps Quartz[1] for sophisticated job 
scheduling.

Cheers,
Andreas

[1] http://www.quartz-scheduler.org/

On Mar 24, 2011, at 3:08 PM, Saikat Kanjilal wrote:

 Folks,
 I was wondering if there's a way to simulate the notion of a cron job inside 
 embedded neo4j, I nerd to have a way to periodically update a certain 
 property of each and every node in my graph by calling into a remote service .
 
 Regards
 
 Sent from my iPhone
 ___
 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] Data type returned by extensions in REST

2011-03-24 Thread Javier de la Rosa
On Thu, Mar 24, 2011 at 04:58, Michael Hunger
michael.hun...@neotechnology.com wrote:
 unfortunately it is not clear what you're asking for.

Sorry about that. The only thing I want in the REST component is a way
to identify the data type of the value returned by an extension.


 Is it the discoverable part of the REST API which describes parameters and 
 return values?
 I think the parameter description is generated from the server plugin method 
 parameter names, types and annotation values.

Exactly, but there's no annotations for describing the data type
returned. I would like to have this information in order to create the
suitable object in Python, not only a dictionary containing the
values.


 This is handled by the ExtensionPointRepresentation in the server. I just 
 looked and it doesn't contain information about the result.

 We will discuss that internally and probably add this information. By now you 
 are limited to documenting that in the description part.

OK, I see. Are you planning to add this feature in some moment in the
near future?

Best regards.


 Cheers

 Michael

 Am 22.03.2011 um 23:29 schrieb Javier de la Rosa:

 Hi all,

 I'm ending the support for extensions in the neo4j-rest-interface [1]
 and it will be soon available for installing through easy_install and
 pip, the Python Package Index, and probably with a new name, I don't
 know yet.
 But I have just find a little problem, the data type returned is not
 revealed in any of params in REST interface. By example, in the
 ShortestPath.shortestPath extension the dictionary of properties
 received by the client is:
  {u'description': u'Find the shortest path between two nodes.',
   u'extends': u'node',
   u'name': u'shortestPath',
   u'parameters': [{u'description': u'The node to find the shortest path to.',
                    u'name': u'target',
                    u'optional': False,
                    u'type': u'node'},
                   {u'description': u'The relationship types to follow
 when searching for the shortest path(s). Order is insignificant, if
 omitted all types are followed.',
                    u'name': u'types',
                    u'optional': True,
                    u'type': u'strings'},
                   {u'description': u'The maximum path length to
 search for, default value (if omitted) is 4.',
                    u'name': u'depth',
                    u'optional': True,
                    u'type': u'integer'}]}

 That's enough to clean and send the parameters to the extension using
 the REST interface, but doesn't for creating the returned objects
 automatically. Adding a new returns in the properties returned
 should work, but maybe setting some conventions about the types
 returned and sent would be a good idea. Actually the type strings is
 really a list of strings, a bit confusing.

 Until now, the only way to discover the type of returned objects was
 to inspect the self attribute of the first element, but that doesn't
 work in all the cases.

 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




-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Cron job inside embedded neo4j

2011-03-24 Thread Peter Neubauer
Hit there,
there is a nice write-up at
http://onjava.com/pub/a/onjava/2005/09/28/what-is-quartz.html?page=1
on quartz.

I have used Quartz before - it's VERY convenient, and does handle
threads etc nicely. I am not certain what use a wrapper or utility
would provide in itself since Quartz already is nicely packaged.
However, I think think of something connected to a utility that does
some specific work like imports data etc?

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://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Thu, Mar 24, 2011 at 3:48 PM, Saikat Kanjilal sxk1...@hotmail.com wrote:
 This seems like a useful little utility to have inside an embedded db, any 
 thoughts on creating a utility like this using a background thread and 
 management thread for the future.

 Sent from my iPhone

 On Mar 24, 2011, at 7:12 AM, Andreas Kollegger 
 andreas.kolleg...@neotechnology.com wrote:

 Hi Saikat,

 The embedded graph database does not have such a facility. You'd have to 
 manage a timer thread yourself or use perhaps Quartz[1] for sophisticated 
 job scheduling.

 Cheers,
 Andreas

 [1] http://www.quartz-scheduler.org/

 On Mar 24, 2011, at 3:08 PM, Saikat Kanjilal wrote:

 Folks,
 I was wondering if there's a way to simulate the notion of a cron job 
 inside embedded neo4j, I nerd to have a way to periodically update a 
 certain property of each and every node in my graph by calling into a 
 remote service .

 Regards

 Sent from my iPhone
 ___
 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


Re: [Neo4j] Neo4J Spatial - issue with bounding box indices in OSM Layer.

2011-03-24 Thread Craig Taverner
Hi Robert,

Interesting work you're doing. I just read your blogs and I think it would
be great to discuss your tests in more detail. Michael Hunger has done some
interesting tests on the scalability of the OSM import, and could probably
give suggestions on configuring the import.

Looking at your code below, I think you have swapped the x and y around in
the Coordinate constructor. It should be Coordinate(x,y), but the values you
have passed look like lat,long (which means y,x).

Also, the SearchContain should return geometries that contain the point you
passed, so if your point is within a lake, or building, or some other
polygon geometry, you should get results, but I do not think it will return
anything if you point is not actually contained within closed polygons. To
give a more complete answer, I think I would need to run and test your code.
Hopefully the above comments help resolve the issue.

Regards, Craig

On Thu, Mar 24, 2011 at 12:42 PM, Robert Boothby rob...@presynt.com wrote:

 Hi, I've been playing with Neo4j Spatial and the OSM data imports to
 see how it all fits together. I've been blogging on my experiences
 (http://bbboblog.blogspot.com).

 It's still early days but think that I have run into an issue. Having
 imported the OSM data successfully I've tried to execute this code to
 determine whether the centre of the town of Aylesbury (UK) is within
 the county of Buckinghamshire (which it is) and to pull back all nodes
 which contain the centre of the town:

final OSMLayer osmLayer = (OSMLayer)spatialDB.getLayer(OSM-BUCKS);
final GeometryFactory factory = osmLayer.getGeometryFactory();
final Point point = factory.createPoint(new
 Coordinate(51.796726,-0.812988));

SearchContain searchContain = new SearchContain(point);

osmLayer.getIndex().executeSearch(searchContain);
for(SpatialDatabaseRecord record: searchContain.getResults()){
System.out.println(Container: + record);
}

 The layer does contain the appropriate data imported from a .osm file
 extract for Buckinghamshire (the smallest file for an English county).

 When I've tried to run it I've got no results and when I've debugged
 it appears that the bbox property attributes (minx, maxx, miny, maxy)
 for the layer's root node are incorrect (mixed up) - minx=-1.1907455,
 maxx = 51.0852483, miny=0.3909055, maxy=52.2274931 causing the search
 to return immediately. Am I using this API correctly and have I
 stumbled into a genuine bug?

 Thank you,

 Robert Boothby.
 ___
 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] Cron job inside embedded neo4j

2011-03-24 Thread Saikat Kanjilal

Yes to be clear what I need is some hook in neo4j connected to a utility that 
does update of global data using quartz, in my case I would need this to update 
a specific property of all nodes.   

 Date: Thu, 24 Mar 2011 15:56:37 +0100
 From: peter.neuba...@neotechnology.com
 To: user@lists.neo4j.org
 Subject: Re: [Neo4j] Cron job inside embedded neo4j
 
 Hit there,
 there is a nice write-up at
 http://onjava.com/pub/a/onjava/2005/09/28/what-is-quartz.html?page=1
 on quartz.
 
 I have used Quartz before - it's VERY convenient, and does handle
 threads etc nicely. I am not certain what use a wrapper or utility
 would provide in itself since Quartz already is nicely packaged.
 However, I think think of something connected to a utility that does
 some specific work like imports data etc?
 
 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://startupbootcamp.org/- Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
 
 
 
 On Thu, Mar 24, 2011 at 3:48 PM, Saikat Kanjilal sxk1...@hotmail.com wrote:
  This seems like a useful little utility to have inside an embedded db, any 
  thoughts on creating a utility like this using a background thread and 
  management thread for the future.
 
  Sent from my iPhone
 
  On Mar 24, 2011, at 7:12 AM, Andreas Kollegger 
  andreas.kolleg...@neotechnology.com wrote:
 
  Hi Saikat,
 
  The embedded graph database does not have such a facility. You'd have to 
  manage a timer thread yourself or use perhaps Quartz[1] for sophisticated 
  job scheduling.
 
  Cheers,
  Andreas
 
  [1] http://www.quartz-scheduler.org/
 
  On Mar 24, 2011, at 3:08 PM, Saikat Kanjilal wrote:
 
  Folks,
  I was wondering if there's a way to simulate the notion of a cron job 
  inside embedded neo4j, I nerd to have a way to periodically update a 
  certain property of each and every node in my graph by calling into a 
  remote service .
 
  Regards
 
  Sent from my iPhone
  ___
  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 mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J Spatial - issue with bounding box indices in OSM Layer.

2011-03-24 Thread Robert Boothby
Thanks for the response Craig. You're right I had mixed up the
latitude and longitude coordinates. I've now got the expected
answers...

However the transposition of the elements of the spatial index's root
node geometry envelope definitely occurs. I just wouldn't have spotted
it if I hadn't mixed up the coordinates and debugged it. The envelopes
of the result nodes do not have transposed elements.

The index root node element bounding box envelope looks like:
Env[-1.1907455 : 51.0852483, 0.3909055 : 52.2274931], my point
envelope looks like Env[-0.812988 : -0.812988, 51.796726 : 51.796726]
and the other node envelopes looks like Env[-0.8577898 : -0.7723875,
51.7930991 : 51.8378447], Env[-0.8502576 : -0.8028032, 51.786247 :
51.8211053], Env[-0.8516907 : -0.7686481, 51.7932282 :
51.8335107],Env[-0.8574819 : -0.7733667, 51.7921887 :
51.8394132],Env[-0.9067499 : -0.6564949, 51.6661276 : 51.9251302],
Env[-0.8159025 : -0.8114534, 51.7961756 : 51.7997272], .

It appears that the maxx and miny values have been swapped in the
spatial index root node.

There may be certain scenarios when valid coordinates are excluded
because the spatial index root node has the incorrect envelope.

Robert.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] A picture worth a 170'000 nodes and 650'000 edges

2011-03-24 Thread Alfredas Chmieliauskas
For fun:

This is a visualization of the graph resulting from a simulation
(interacting energy markets).

http://test.eeni.tbm.tudelft.nl/~alfredas/d13n-graph.png

After 10 simulation ticks we have ~170'000 entities (agents, markets,
power plants, bids, substances, technologies, etc) and ~650'000
relations between these entities. Different colors represent different
types of relations. These relations are created at a rate of ~60'000
per tick, as a result of agents trading, investing and energy flows.
By the end of the simulation we get ~1m nodes and ~4m edges.

The visualization was made using neo-graphviz:
https://svn.neo4j.org/laboratory/components/neo-graphviz/

The crazy part is that we can still make sense of what's happening
there, using a few pipes and traversals :-)

Alfredas
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Adding Nodes, transactions and such...

2011-03-24 Thread jisenhart

Hi All,

When I load data via an EmbeddedGraphDatabase - I need to stop the 
server, load the nodes and then restart the server. Is there a way to 
load the server while it is active?

Are there ways to do intermittent transaction commits? I was thinking 
to call transaction.finish and then get a new transaction after x 
number of records processed?

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Adding Nodes, transactions and such...

2011-03-24 Thread David Montag
Hi,

Is this of help?

http://wiki.neo4j.org/content/Transactions#Big_transactions

David

On Thu, Mar 24, 2011 at 12:11 PM, jisenhart jisenh...@yoholla.com wrote:


 Hi All,

 When I load data via an EmbeddedGraphDatabase - I need to stop the
 server, load the nodes and then restart the server. Is there a way to
 load the server while it is active?

 Are there ways to do intermittent transaction commits? I was thinking
 to call transaction.finish and then get a new transaction after x
 number of records processed?

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
David Montag david.mon...@neotechnology.com
Neo Technology, www.neotechnology.com
Cell: 650.556.4411
Skype: ddmontag
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Adding Nodes, transactions and such...

2011-03-24 Thread Michael Hunger
only one jvm can access a graphdb at a time
you could write a server plugin or extension for loading the data 
those share the db with the other server modules

for intermittent commits just use a counter to commit and restart transactions 
after xx inserts


Michael


Sent from my iBrick4


Am 24.03.2011 um 20:11 schrieb jisenhart jisenh...@yoholla.com:

 
 Hi All,
 
 When I load data via an EmbeddedGraphDatabase - I need to stop the 
 server, load the nodes and then restart the server. Is there a way to 
 load the server while it is active?
 
 Are there ways to do intermittent transaction commits? I was thinking 
 to call transaction.finish and then get a new transaction after x 
 number of records processed?
 
 ___
 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] Cron job inside embedded neo4j

2011-03-24 Thread Michael Hunger
What kind of property is that?

Is it the same on all nodes? So perhaps you can abstract that and just put it 
on one node and have the others linked to that?

Could you please elaborate on your domain?

Thanks

Michael

Am 24.03.2011 um 18:19 schrieb Saikat Kanjilal:

 
 Yes to be clear what I need is some hook in neo4j connected to a utility that 
 does update of global data using quartz, in my case I would need this to 
 update a specific property of all nodes.   
 
 Date: Thu, 24 Mar 2011 15:56:37 +0100
 From: peter.neuba...@neotechnology.com
 To: user@lists.neo4j.org
 Subject: Re: [Neo4j] Cron job inside embedded neo4j
 
 Hit there,
 there is a nice write-up at
 http://onjava.com/pub/a/onjava/2005/09/28/what-is-quartz.html?page=1
 on quartz.
 
 I have used Quartz before - it's VERY convenient, and does handle
 threads etc nicely. I am not certain what use a wrapper or utility
 would provide in itself since Quartz already is nicely packaged.
 However, I think think of something connected to a utility that does
 some specific work like imports data etc?
 
 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://startupbootcamp.org/- Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
 
 
 
 On Thu, Mar 24, 2011 at 3:48 PM, Saikat Kanjilal sxk1...@hotmail.com wrote:
 This seems like a useful little utility to have inside an embedded db, any 
 thoughts on creating a utility like this using a background thread and 
 management thread for the future.
 
 Sent from my iPhone
 
 On Mar 24, 2011, at 7:12 AM, Andreas Kollegger 
 andreas.kolleg...@neotechnology.com wrote:
 
 Hi Saikat,
 
 The embedded graph database does not have such a facility. You'd have to 
 manage a timer thread yourself or use perhaps Quartz[1] for sophisticated 
 job scheduling.
 
 Cheers,
 Andreas
 
 [1] http://www.quartz-scheduler.org/
 
 On Mar 24, 2011, at 3:08 PM, Saikat Kanjilal wrote:
 
 Folks,
 I was wondering if there's a way to simulate the notion of a cron job 
 inside embedded neo4j, I nerd to have a way to periodically update a 
 certain property of each and every node in my graph by calling into a 
 remote service .
 
 Regards
 
 Sent from my iPhone
 ___
 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 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] A picture worth a 170'000 nodes and 650'000 edges

2011-03-24 Thread Peter Neubauer
Wow!
That is some wicked impressive visualization! Well done! Also, there
will be a GeekOut in Tallin, Estonia, http://twitter.com/#!/GeekOut_ee

Maybe we could meet up there and have some Graph-fun and you show off
this stuff to the geeks?

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://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Thu, Mar 24, 2011 at 8:09 PM, Alfredas Chmieliauskas
al.fre...@gmail.com wrote:
 For fun:

 This is a visualization of the graph resulting from a simulation
 (interacting energy markets).

 http://test.eeni.tbm.tudelft.nl/~alfredas/d13n-graph.png

 After 10 simulation ticks we have ~170'000 entities (agents, markets,
 power plants, bids, substances, technologies, etc) and ~650'000
 relations between these entities. Different colors represent different
 types of relations. These relations are created at a rate of ~60'000
 per tick, as a result of agents trading, investing and energy flows.
 By the end of the simulation we get ~1m nodes and ~4m edges.

 The visualization was made using neo-graphviz:
 https://svn.neo4j.org/laboratory/components/neo-graphviz/

 The crazy part is that we can still make sense of what's happening
 there, using a few pipes and traversals :-)

 Alfredas
 ___
 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] A picture worth a 170'000 nodes and 650'000 edges

2011-03-24 Thread Michael Hunger
But Alfredas is in the Netherlands, right, in Delft?

Btw. they used Spring Data Graph successfully for their project, I already got 
some great feedback.

Thanks for that

Cheers

Michael

Am 24.03.2011 um 21:06 schrieb Peter Neubauer:

 Wow!
 That is some wicked impressive visualization! Well done! Also, there
 will be a GeekOut in Tallin, Estonia, http://twitter.com/#!/GeekOut_ee
 
 Maybe we could meet up there and have some Graph-fun and you show off
 this stuff to the geeks?
 
 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://startupbootcamp.org/- Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
 
 
 
 On Thu, Mar 24, 2011 at 8:09 PM, Alfredas Chmieliauskas
 al.fre...@gmail.com wrote:
 For fun:
 
 This is a visualization of the graph resulting from a simulation
 (interacting energy markets).
 
 http://test.eeni.tbm.tudelft.nl/~alfredas/d13n-graph.png
 
 After 10 simulation ticks we have ~170'000 entities (agents, markets,
 power plants, bids, substances, technologies, etc) and ~650'000
 relations between these entities. Different colors represent different
 types of relations. These relations are created at a rate of ~60'000
 per tick, as a result of agents trading, investing and energy flows.
 By the end of the simulation we get ~1m nodes and ~4m edges.
 
 The visualization was made using neo-graphviz:
 https://svn.neo4j.org/laboratory/components/neo-graphviz/
 
 The crazy part is that we can still make sense of what's happening
 there, using a few pipes and traversals :-)
 
 Alfredas
 ___
 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] Adding Nodes, transactions and such...

2011-03-24 Thread jisenhart

Thanks!

On Thu, 24 Mar 2011 20:29:01 +0100, Michael Hunger
michael.hun...@neotechnology.com wrote:
 only one jvm can access a graphdb at a time
 you could write a server plugin or extension for loading the data 
 those share the db with the other server modules
 
 for intermittent commits just use a counter to commit and restart
 transactions after xx inserts
 
 
 Michael
 
 
 Sent from my iBrick4
 
 
 Am 24.03.2011 um 20:11 schrieb jisenhart jisenh...@yoholla.com:
 

 Hi All,

 When I load data via an EmbeddedGraphDatabase - I need to stop the
 server, load the nodes and then restart the server. Is there a way to
 load the server while it is active?

 Are there ways to do intermittent transaction commits? I was thinking
 to call transaction.finish and then get a new transaction after x
 number of records processed?

 ___
 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] Read property file from a plugin

2011-03-24 Thread jisenhart

Is there a way to determine the path to the conf directory from within 
a plugin?

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] A picture worth a 170'000 nodes and 650'000 edges

2011-03-24 Thread Alfredas Chmieliauskas
Estonia is nice. But unfortunately I'm in Delft, NL most of the time.
It would be great though to meet somewhere in the middle at some
point, maybe Cph?

Alfredas

On Thu, Mar 24, 2011 at 9:20 PM, Michael Hunger
michael.hun...@neotechnology.com wrote:
 But Alfredas is in the Netherlands, right, in Delft?

 Btw. they used Spring Data Graph successfully for their project, I already 
 got some great feedback.

 Thanks for that

 Cheers

 Michael

 Am 24.03.2011 um 21:06 schrieb Peter Neubauer:

 Wow!
 That is some wicked impressive visualization! Well done! Also, there
 will be a GeekOut in Tallin, Estonia, http://twitter.com/#!/GeekOut_ee

 Maybe we could meet up there and have some Graph-fun and you show off
 this stuff to the geeks?

 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://startupbootcamp.org/    - Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



 On Thu, Mar 24, 2011 at 8:09 PM, Alfredas Chmieliauskas
 al.fre...@gmail.com wrote:
 For fun:

 This is a visualization of the graph resulting from a simulation
 (interacting energy markets).

 http://test.eeni.tbm.tudelft.nl/~alfredas/d13n-graph.png

 After 10 simulation ticks we have ~170'000 entities (agents, markets,
 power plants, bids, substances, technologies, etc) and ~650'000
 relations between these entities. Different colors represent different
 types of relations. These relations are created at a rate of ~60'000
 per tick, as a result of agents trading, investing and energy flows.
 By the end of the simulation we get ~1m nodes and ~4m edges.

 The visualization was made using neo-graphviz:
 https://svn.neo4j.org/laboratory/components/neo-graphviz/

 The crazy part is that we can still make sense of what's happening
 there, using a few pipes and traversals :-)

 Alfredas
 ___
 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


Re: [Neo4j] A picture worth a 170'000 nodes and 650'000 edges

2011-03-24 Thread Tobias Ivarsson
Nice to see my visualization code being put to good use.

The most recent version has moved to github, along with the rest of Neo4j,
since this is an unofficial tool it is on my personal github:
https://github.com/thobe/neoviz

Cheers,
Tobias

On Thu, Mar 24, 2011 at 8:09 PM, Alfredas Chmieliauskas al.fre...@gmail.com
 wrote:

 For fun:

 This is a visualization of the graph resulting from a simulation
 (interacting energy markets).

 http://test.eeni.tbm.tudelft.nl/~alfredas/d13n-graph.png

 After 10 simulation ticks we have ~170'000 entities (agents, markets,
 power plants, bids, substances, technologies, etc) and ~650'000
 relations between these entities. Different colors represent different
 types of relations. These relations are created at a rate of ~60'000
 per tick, as a result of agents trading, investing and energy flows.
 By the end of the simulation we get ~1m nodes and ~4m edges.

 The visualization was made using neo-graphviz:
 https://svn.neo4j.org/laboratory/components/neo-graphviz/

 The crazy part is that we can still make sense of what's happening
 there, using a few pipes and traversals :-)

 Alfredas
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
Tobias Ivarsson tobias.ivars...@neotechnology.com
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Neo4j 1.3 Abisko Lampa M05 - Preparing for arrival

2011-03-24 Thread Andreas Kollegger
Hello everyone,

Another milestone has arrived, bringing a new webadmin UI, extended server 
extensions and improvements on the Windows side of things. For a thorough 
description of the changes present, as always, refer to the official blog post, 
available at:

http://blog.neo4j.org/

A new interface awaits the users of the Web Administration Console for the 
Server component. The classic tabular view is present alongside a new 
visualization engine that makes navigation of the graph data easier. Also, 
appealing to your inner geek, keyboard shortcuts make their first appearance, 
where you can now press “s” from any page and have the data browser bar 
immediately available.

For the Windows users out there, you will be relieved to know that this 
milestone levels out any differences between your platform and what Mac and 
Linux users have been enjoying so far. The full backup feature now works 
flawlessly, courtesy of a custom locking mechanism and a filesystem abstraction 
that enables backup operations and the High Availability component to operate 
as smoothly and as fast on Windows as on the rest of the supported platforms.

As always, there is a host of bug fixes and less notable improvements scattered 
throughout the various components, many of which are a direct result of the 
feedback this community provides.

Only one week remains until the GA release of 1.3 “Abisko Lampa” and we are 
hard at work trying to make this the best release so far. Until then, keep 
those ideas coming people!

Cheers,
Andreas
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J Spatial - issue with bounding box indices in OSM Layer.

2011-03-24 Thread Craig Taverner
I will need to double check this. I know there was a dispute early on with
Neo4j Spatial because the JTS library orders bbox params in one way, and
GeoTools does it another way, so you might be seeing the results of that. I
believed we sorted that all out, but perhaps not. I have have just checked
the RTree code, and it does the right thing, however it is possible that
code outside is passing in bbox parameters in a different order than
expected.

Perhaps you have some sample test code I can use to check this with?

On Thu, Mar 24, 2011 at 7:01 PM, Robert Boothby rob...@presynt.com wrote:

 Thanks for the response Craig. You're right I had mixed up the
 latitude and longitude coordinates. I've now got the expected
 answers...

 However the transposition of the elements of the spatial index's root
 node geometry envelope definitely occurs. I just wouldn't have spotted
 it if I hadn't mixed up the coordinates and debugged it. The envelopes
 of the result nodes do not have transposed elements.

 The index root node element bounding box envelope looks like:
 Env[-1.1907455 : 51.0852483, 0.3909055 : 52.2274931], my point
 envelope looks like Env[-0.812988 : -0.812988, 51.796726 : 51.796726]
 and the other node envelopes looks like Env[-0.8577898 : -0.7723875,
 51.7930991 : 51.8378447], Env[-0.8502576 : -0.8028032, 51.786247 :
 51.8211053], Env[-0.8516907 : -0.7686481, 51.7932282 :
 51.8335107],Env[-0.8574819 : -0.7733667, 51.7921887 :
 51.8394132],Env[-0.9067499 : -0.6564949, 51.6661276 : 51.9251302],
 Env[-0.8159025 : -0.8114534, 51.7961756 : 51.7997272], .

 It appears that the maxx and miny values have been swapped in the
 spatial index root node.

 There may be certain scenarios when valid coordinates are excluded
 because the spatial index root node has the incorrect envelope.

 Robert.
 ___
 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] A picture worth a 170'000 nodes and 650'000 edges

2011-03-24 Thread Keiichiro Ono
Nice visualization!  How long did it take to render this image?

By the way, we are going to hire a student through Google Summer of
Code to use Cytoscape 3 as a visualizer for Neo4j.  If any of you are
a student and interested in this type of coding project, please apply:

http://chihuahua.ucsf.edu/cgi-bin/wikigsoc.pl(Idea #4)

Thanks,
Kei
Cytoscape Core Developer:  http://cytoscape.org/

2011/3/24 Tobias Ivarsson tobias.ivars...@neotechnology.com:
 Nice to see my visualization code being put to good use.

 The most recent version has moved to github, along with the rest of Neo4j,
 since this is an unofficial tool it is on my personal github:
 https://github.com/thobe/neoviz

 Cheers,
 Tobias

 On Thu, Mar 24, 2011 at 8:09 PM, Alfredas Chmieliauskas al.fre...@gmail.com
 wrote:

 For fun:

 This is a visualization of the graph resulting from a simulation
 (interacting energy markets).

 http://test.eeni.tbm.tudelft.nl/~alfredas/d13n-graph.png

 After 10 simulation ticks we have ~170'000 entities (agents, markets,
 power plants, bids, substances, technologies, etc) and ~650'000
 relations between these entities. Different colors represent different
 types of relations. These relations are created at a rate of ~60'000
 per tick, as a result of agents trading, investing and energy flows.
 By the end of the simulation we get ~1m nodes and ~4m edges.

 The visualization was made using neo-graphviz:
 https://svn.neo4j.org/laboratory/components/neo-graphviz/

 The crazy part is that we can still make sense of what's happening
 there, using a few pipes and traversals :-)

 Alfredas
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




 --
 Tobias Ivarsson tobias.ivars...@neotechnology.com
 Hacker, Neo Technology
 www.neotechnology.com
 Cellphone: +46 706 534857
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
Keiichiro Ono    http://www.keiono.net/
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] General question: relationships vs indexes

2011-03-24 Thread Rick Bullotta
Easy question (I hope):

For a simple, one key index, is it better (more performant on write and query) 
to use the indexing framework or to create your own index using relationships?

Thanks,

Rick

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] General question: relationships vs indexes

2011-03-24 Thread Rick Bullotta
Oh, and one related question: With the index framework, is there a way to limit 
the # of items returned from a query?  I could potentially have millions of 
values, but am only interested in the top or bottom 100 (based on sort order).


-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Rick Bullotta
Sent: Thursday, March 24, 2011 9:00 PM
To: Neo4j user discussions
Subject: [Neo4j] General question: relationships vs indexes

Easy question (I hope):

For a simple, one key index, is it better (more performant on write and query) 
to use the indexing framework or to create your own index using relationships?

Thanks,

Rick

___
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] LuceneTimeline in 1.3

2011-03-24 Thread Rick Bullotta
Hi, Mattias.

This looks like it is almost exactly what I need for one of our use cases, but 
I can't find any examples/documentation on its usage. Can you point me to an 
example of creating/adding/querying using these index?

Cheers,

Rick

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] General question: relationships vs indexes

2011-03-24 Thread Rick Bullotta
Answering (part of) my own question, I found top(n) in QueryContext.  Anyone 
have an example of its proper usage?


-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Rick Bullotta
Sent: Thursday, March 24, 2011 9:01 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] General question: relationships vs indexes

Oh, and one related question: With the index framework, is there a way to limit 
the # of items returned from a query?  I could potentially have millions of 
values, but am only interested in the top or bottom 100 (based on sort order).


-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Rick Bullotta
Sent: Thursday, March 24, 2011 9:00 PM
To: Neo4j user discussions
Subject: [Neo4j] General question: relationships vs indexes

Easy question (I hope):

For a simple, one key index, is it better (more performant on write and query) 
to use the indexing framework or to create your own index using relationships?

Thanks,

Rick

___
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] the Problem about the real-time of index

2011-03-24 Thread 孤竹
Hi,all 


  I am confused at the index real-time, If I make an index, and add some 
nodes in , when I can used the index and find the node ? if it's real-time , It 
will  cause some CPU and calculate ? It is worth for me to use real-time ? how 
can config that
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J High Availability : embedded or server mode ?

2011-03-24 Thread Guru GV
Though I don't see a reason not to support it, but I did not understand the
point of HA in a embedded mode. Would be interested in hearing couple of
examples of what that would be...

Embedded would mean - same VM - so replication and concurrency - do they
really mean much here ?

Also, that brings me to another question - is the Embedded version of Neo4j
concurrent for multiple threads ? Meaning can it have multiple simultaneous
connections/transactions ongoing ?

Thanks
Guru

On Thu, Mar 24, 2011 at 4:27 PM, Jim Webber j...@neotechnology.com wrote:

 Hi Kiiv,

 Both the embedded database *and* the server database can run in HA mode.

 We tend to think of the server as simply a wrapper around the database that
 provides a RESTful API to augment the local API.

 So go right ahead and pick the configuration that's right for you, and
 you'll be able to use HA whatever configuration you decide.

 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