Or:

match (n) where n.name=Pizza return n;

better though to also use labels like this:

match (n:Thing) where n.name=Pizza return n;


and if there is an create index on :Thing(name) your query is also fast.


> Am 03.01.2016 um 18:52 schrieb Chris Vest <[email protected]>:
> 
> You are using an incorrect syntax for telling Cypher to find nodes with a 
> certain property, and you are getting a weird error message in response.
> 
> Your query should look more like
> 
> match (n) where (n {name: “Pizza"}) return n;
> 
> or 
> 
> match (n) where (n {name: “name:Pizza"}) return n;
> 
> depending on how your data model works.
> 
> --
> Chris Vest
> System Engineer, Neo Technology
> [ skype: mr.chrisvest, twitter: chvest ]
> 
> 
>> On 29 Dec 2015, at 06:19, Hams D <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> 
>> I loaded Neo4j with Pizza.owl file using hermit reasoner and Java. 
>> 
>> when i pass a simple query,
>> 
>> match (n) where n="name:Pizza" return n;
>> 
>> am getting the following error ,
>> 
>> Don't know how to compare that. Left: Node[1]{name:"owl:Thing"} (NodeProxy); 
>> Right: "name:Pizza" (String)
>> 
>> 
>> 
>> Is NodeProxy is an datatype ? How can I make both of them to be compared. 
>> Can I do casting while querying ? Any query to change datatype of the entire 
>> graph nodes ? How to check the type of the node ?
>> 
>> 
>> 
>> P.S Attached my source code - owl2.java
>> 
>> 
>> 
>> 
>> -- 
>> 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 [email protected] 
>> <mailto:[email protected]>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
>> <Owl2.java>
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to