[Neo4j] Cypher questions

2011-11-02 Thread andrew ton
Hello, I have some questions regarding Cypher. 1. I have an ontology that defines classes and individuals. I store this ontology into Neo4J REST db. Is there any ways to find all individuals that have some given class?  In SPARQL, it can be done like ...WHERE { ?u a :User.}... to find all

Re: [Neo4j] Cypher questions

2011-11-02 Thread Michael Hunger
Both your questions would be answered with indexing: for the 1) you would add the user nodes them to a User index and then use start user=node:User(id:*) ... For 2) you would index the relationships-similarly (for the interesting types). e.g. create an index for only the rel-type you're

Re: [Neo4j] Cypher questions

2011-11-02 Thread Peter Neubauer
Subject: Re: [Neo4j] Cypher questions Both your questions would be answered with indexing: for the 1) you would add the user nodes them to a User index and then use start user=node:User(id:*) ... For 2) you would index the relationships-similarly (for the interesting types). e.g. create

Re: [Neo4j] Cypher questions

2011-11-02 Thread Michael Hunger
help. A. From: Michael Hunger michael.hun...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Wednesday, November 2, 2011 5:31 PM Subject: Re: [Neo4j] Cypher questions Both your questions would be answered with indexing