Re: [Neo4j] REST Transactions, locking and isolation

2014-09-19 Thread Michael Hunger
You can still use a server extension to access locking operations via the transaction object and expose that as an http endpoint to your app. Michael On Fri, Sep 19, 2014 at 11:41 AM, zingo wrote: > From what i read in the blogs, i understood that REST API doesn't support > explicit locking in

Re: [Neo4j] ParameterNotFoundException - Cypher AJAX Request FAILURE (annoying)

2014-09-19 Thread Michael Hunger
sorry, missed your email the regexp must be _the_ param var query_PATHS = "match n where n.name =~ {*myParam*} return n" var params = {myParam: "'.*"+text+".*'} ... On Fri, Sep 19, 2014 at 7:20 PM, David Bigelow < davidhbige...@simplifiedlogic.com> wrote: > Still need to figure out how this i

Re: [Neo4j] findNodesByLabelAndProperty - but not for relationships?

2014-09-19 Thread Michael Hunger
What is your use-case for that operation? There are currently no plans for relationship-indexes. What kind of data do you have on your relationships? Perhaps it would make sense to elevate some of the properties into a rel-type for easier filtering. Since Neo 2.1 you might have to look at less t

Re: [Neo4j] Getting Chain of related nodes and perform operation on one type of node using neo4j query

2014-09-19 Thread Michael Hunger
with size({data}) as len match path = (a:A)-[:FOO]->(b:B)-[:BAR*5]->(c:C) // len = 5 where length(path) = len + 2 foreach (idx in range(0,len-1) | SET nodes(path)[2+idx] = {data}[idx] ) On Thu, Sep 18, 2014 at 11:21 AM, wrote: > > I am using node js(for rest API) with neo4j. I need to get a ch

Re: [Neo4j] Calculate lenght and area in spatial neo4j

2014-09-19 Thread Craig Taverner
I'm assuming these are nodes that represent geometries. In that case you should convert them to the JTS Geometry object and get the length and area from that. For example, if you did a search with the GeoPipeline, you will return a collection of SpatialDatabaseRecord objects, which contain the nod

Re: [Neo4j] Neo4j Spatial: problem indexing coordinates

2014-09-19 Thread Craig Taverner
Hi Rita, As a test I decided to add support for multiple points on the same node. I've got test code at https://github.com/neo4j-contrib/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSimplePointLayer.java#L168. This is only supported in the latest code from github, and is not release

Re: [Neo4j] ParameterNotFoundException - Cypher AJAX Request FAILURE (annoying)

2014-09-19 Thread David Bigelow
Still need to figure out how this is supposed to work with parameters any thoughts? On Saturday, September 6, 2014 9:22:57 AM UTC-4, David Bigelow wrote: > > Michael - Thanks for your input on this. You got me past one hump and > into the next. > > Next problem -- "HOW" to pass the values

[Neo4j] How to upload an ontology(owl) file into neo4j

2014-09-19 Thread Srinivas Nagamalla
Please help me uploading OWL file -- 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

Re: [Neo4j] Re: Bug? LOAD CSV WITH HEADERS not working when called through REST?

2014-09-19 Thread Daniel C
Thanks for the help, nawroth suggested that this is because there are new lines inside the Cypher statement which is in quotes. My subsequent testing demonstrates that is true. The REST JSON parser probably terminates when it hits a newline. The other examples I tried before that worked were

Re: [Neo4j] What tools do the developers of Neo4j use?

2014-09-19 Thread Chris Vest
Most of us use Intellij IDEA, but we also have some who use Eclipse. I don't know how they set up their Eclipse environment, but Intellij can just open the top-level pom.xml file as a project after I've `mvn clean install -DskipTests -DskipBrowser`. Occasionally you have to go through the module

Re: [Neo4j] Neo4j eror while building by mvn

2014-09-19 Thread Chris Vest
It was trying to build the `browser` component and failed. The reason why is further up the output than what your snippet shows. See our top-level README.asciidoc for what dependencies and tools are needed to build Neo4j. You can also try re-running your maven command with `-DskipBrowser` added to

[Neo4j] findNodesByLabelAndProperty - but not for relationships?

2014-09-19 Thread chris
My application relies upon unique nodes (for individual people) and a multiplicity of relationships between them. These relationships are all of the same type, but have 6 different properties apiece to determine whether they're applicable to any given data set (which is external to neo4j and no

[Neo4j] Neo4j eror while building by mvn

2014-09-19 Thread Monika
Hello all, I am getting error while building Neo4j on Windows 8. [INFO] BUILD FAILURE [INFO] [INFO] Total time: 03:15 min [INFO] Finished at: 2014-09-18T16:18:42+02:00 [INFO] Final Memory: 100M/855M [INFO]

[Neo4j] Neo4j embedded in Android not building

2014-09-19 Thread knowyourjourneyapp
I am getting this error when I follow instructions on this page: https://github.com/neo4j-contrib/neo4j-mobile-android When I use *ant clean debug, *this is the error I get : /Downloads/sdk/tools/ant/build.xml:601: The following error occurred while executing this line: /Documents/neo4j/neo4j-a

[Neo4j] What tools do the developers of Neo4j use?

2014-09-19 Thread Kisung Kim
Hi every one! I am curious about the development environment of the Neo4j team. I downloaded the sources of Neo4j and import the maven project in Eclipse. But I failed to compile the sources. I also installed the Scala plugin in Ecilpse. But Eclipse cannot resolve the classes implemented in Sc

[Neo4j] REST Transactions, locking and isolation

2014-09-19 Thread zingo
>From what i read in the blogs, i understood that REST API doesn't support explicit locking in Neo4j. Is that correct? Below are the links i referred. https://stackoverflow.com/questions/18480064/neo4j-php-acquire-wirte-lock https://stackoverflow.com/questions/18480064/neo4j-php-acquire-wirt

[Neo4j] Getting Chain of related nodes and perform operation on one type of node using neo4j query

2014-09-19 Thread rahul . aggarwal
I am using node js(for rest API) with neo4j. I need to get a chain of relationships upto 5 level using neo4j query and perform an operation on particular nodes.In detail, I have a relationship(A-[]->B-[]->C) and an array that contains 5 numbers. I want to fetch all the B type nodes along the

Re: [Neo4j] Re: Bug? LOAD CSV WITH HEADERS not working when called through REST?

2014-09-19 Thread Michael Hunger
Lasse, the problem is that the statement doesn't break even if you pass an erroneous URL which normally causes Cypher to report an error. On Fri, Sep 19, 2014 at 4:38 PM, Lasse Westh-Nielsen < lasse.westh-niel...@neotechnology.com> wrote: > Daniel, > > Try adding a return statement. The load csv

Re: [Neo4j] Re: Bug? LOAD CSV WITH HEADERS not working when called through REST?

2014-09-19 Thread Michael Hunger
So please check the quotes you use around the URL, I had to double escape them. Or you use single quotes w/o escaping. On Fri, Sep 19, 2014 at 4:40 PM, Michael Hunger < michael.hun...@neotechnology.com> wrote: > Hi Daniel, seems to depend on the escaping of the quotes but definitely > weird. > It

Re: [Neo4j] Re: Bug? LOAD CSV WITH HEADERS not working when called through REST?

2014-09-19 Thread Michael Hunger
Hi Daniel, seems to depend on the escaping of the quotes but definitely weird. It's afaik not related to Cypher but the streaming JSON parser before it. I think it somehow concludes that it parsed the input correctly but without any output e.g. here I get the same as you curl -XPOST -i -H accept:

Re: [Neo4j] Re: Bug? LOAD CSV WITH HEADERS not working when called through REST?

2014-09-19 Thread Lasse Westh-Nielsen
Daniel, Try adding a return statement. The load csv example doesn;t have a return statement. I can;t rule out that the browser tries to be extra user friendly and adds some helpful return statement for you... If you do load csv and then inspect the database with a regular query, do you see the d

[Neo4j] Re: Bug? LOAD CSV WITH HEADERS not working when called through REST?

2014-09-19 Thread Daniel Corbett
Continuing to try things...I am now using "Advanced REST Client" - a chrome application. I am using the example from the LOAD CSV Documentation, along with the REST transaction commit example. Here is a screen shot, showing my settings for the REST call, along with the payload and the res

Re: [Neo4j] Java Heap Space error but correctly set in the Neo4jShell.bat

2014-09-19 Thread Michael Hunger
If you specifiy it I'd keep it to a few MB (e.g. -Xmx512M) as the shell against a running server is just a terminal. It's different if when you run the shell against a on-disk directory then it fires up the database itself. Your memory config looks ok otherwise, I'd only swap mapped memory setting

[Neo4j] Calculate lenght and area in spatial neo4j

2014-09-19 Thread Alireza Rezaei Mahdiraji
Hi All, I need to calculate length and area of given node(s) in two cases: 1- for length either a node with line string geometry is given or two nodes with point geometry 2- for polygon either a node with polygon geometry is given or the set of points of the polygon as separate point geomet

Re: [Neo4j] Spatial Containment

2014-09-19 Thread Alireza Rezaei Mahdiraji
Hi Craig, Out of top of my head is 3D bounding box (range sub-setting) and slicing queries. I write you if I needed more cases. So, currently, there is no way to support a 3D bbox query or slice in neo4j spatial except directly checking the axes values, right? Thanks, Alireza On Thursday,

Re: [Neo4j] Neo4j Spatial: problem indexing coordinates

2014-09-19 Thread Rita
Hi Craig, thanks for you explanation. I had not tried yet to create more than one layer, but now I know what is the situation. I'm sorry that the only solution is to store other coordinates in new nodes. Regards Rita Il giorno giovedì 18 settembre 2014 16:28:34 UTC+2, Craig Taverner ha scritt