Re: [Neo4j] neo4jphp and some cypher question

2011-09-26 Thread Andres Taylor
On Sun, Sep 25, 2011 at 11:13 PM, Adriano Henrique de Almeida adrianoalmei...@gmail.com wrote: Hi Filip, if you need only those nodes who have the Geemente property, you can specify it on the where clause. Example: where a.Geemente and a.Geemente = 'Antwerpen' Another alternative,

Re: [Neo4j] neo4jphp and some cypher question

2011-09-26 Thread F. De Haes
Hi Michael, Adriano, Andres, Peter, Thanks for your answers. I've got it working. Greetings, Filip 2011/9/26 Andres Taylor andres.tay...@neotechnology.com On Sun, Sep 25, 2011 at 11:13 PM, Adriano Henrique de Almeida adrianoalmei...@gmail.com wrote: Hi Filip, if you need only those

Re: [Neo4j] neo4jphp and some cypher question

2011-09-25 Thread Filip De Haes
I've executed the query in the cypher console. (Btw I had to turn FireBug ON before it accepted the double enters) START n=(1) match a--n where a.Gemeente='Antwerpen' return a a.Gemeente does not exist on Node[891] If I add the Gemeente-property on Node[891] and run the query again, he

Re: [Neo4j] neo4jphp and some cypher question

2011-09-25 Thread Adriano Henrique de Almeida
Hi Filip, if you need only those nodes who have the Geemente property, you can specify it on the where clause. Example: where a.Geemente and a.Geemente = 'Antwerpen' with this, the verification for Antwerpen (lovely city, BTW) is only executed if Geemente property exists on a node. See if this

[Neo4j] neo4jphp and some cypher question

2011-09-21 Thread Filip De Haes
Hi all, I've got a question about a cypher query. $queryText = START n=(1) match a--n WHERE a.Gemeente return a; This query returns the two locations (Gemeente) I have entered as a property of our buildings in the database. Hundred other buildings don't have that property yet. So far so

Re: [Neo4j] neo4jphp and some cypher question

2011-09-21 Thread Peter Neubauer
Filip, yes, the where clause right now is filtering on the results of the MATCH clauses results. As such, if the property is not on the node, it will not be found, but you can of course use it is a starting lookup query. However, I think Andres is working towards being able to detect that

Re: [Neo4j] neo4jphp and some cypher question

2011-09-21 Thread Michael Hunger
Could you execute the query in the cypher console? Could you also try to pass in the value Antwerpen as a literal to check? START n=(1) match a--n WHERE a.name= 'Antwerpen' RETURN a // try to add the order by after the query suceeded, might be that you have to use a.name? for that ORDER by