Sukaant, it would be best if you can do a graphgist that includes a setup and this query, so we have a better clue about your scenario, see https://github.com/neo4j-contrib/graphgist/wiki for examples?
/peter G: neubauer.peter S: peter.neubauer P: +46 704 106975 L: http://www.linkedin.com/in/neubauer T: @peterneubauer Neo4j 2.0.0 - (graphs)-[:FOR]->(everyone)<http://blog.neo4j.org/2013/12/neo4j-20-ga-graphs-for-everyone.html> Do something useful - Teach your kids 1 hour code! <http://code.org/learn> On Thu, Jan 9, 2014 at 12:20 PM, Sukaant Chaudhary < [email protected]> wrote: > Hi Peter, > Please tell me if the following mapping is correct for the given scenario. > > START n=node({startnode}), m=node({endnode}) > MATCH > p=(n)-[r:REQUEST_TIME_CALL|REQUEST_TIME_ONE_TO_ONE|REQUEST_TIME_MEETING*]->(m) > <-[s:ACCEPT_TIME_CALL|ACCEPT_TIME_ONE_TO_ONE|ACCEPT_TIME_MEETING|BLOCK]-(n) > > WITH DISTINCT m,n MATCH (m)-[t:REQUEST]->(l)<-[:ACCEPT]-(n) > RETURN l, m, n, r, s, t > > -Sukaant Chaudhary > > > On Thu, Jan 9, 2014 at 2:59 PM, Peter Neubauer < > [email protected]> wrote: > >> Sukaant, >> I would make all Dates (like start, end data for the meeting and >> free/busy information) Long timestamps, and then use Java Calendar to >> calculate whatever you want. >> >> Do not store formatted date strings, as they are error prone and the >> parsing into Date takes considerable amounts of processing time. >> >> /peter >> >> >> G: neubauer.peter >> S: peter.neubauer >> P: +46 704 106975 >> L: http://www.linkedin.com/in/neubauer >> T: @peterneubauer >> >> Neo4j 2.0.0 - >> (graphs)-[:FOR]->(everyone)<http://blog.neo4j.org/2013/12/neo4j-20-ga-graphs-for-everyone.html> >> Do something useful - Teach your kids 1 hour code!<http://code.org/learn> >> >> >> On Thu, Jan 9, 2014 at 5:44 AM, Sukaant Chaudhary < >> [email protected]> wrote: >> >>> Hi, >>> I want to map time request with the user: >>> >>> >>> *User A -Meeting-> User B* >>> Date-10/01/2014 >>> Time-11:00 AM - 01:00 PM >>> >>> *User A is free at * >>> >>> Date-11/01/2014 >>> Time-09:00 AM - 10:00 AM >>> >>> Is there any way to use calendar in Neo4j. >>> Please help. >>> >>> -Sukaant Chaudhary >>> >>> -- >>> 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/groups/opt_out. >>> >> >> -- >> 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/groups/opt_out. >> > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
