Hi Peter,
I'm confused in mapping, My issue is:

Suppose for *24 hours* for each day and I want to make *n no of
Slots*according to user say:




*09:00 A.M. to 10:00 A.M. (1st Slot)03:00 P.M. to 05:00 P.M. (2nd Slot)6:30
P.M. to 07:00 P.M.(3rd Slot)so on....*

For some day user may not want to make it.

Also there are *n no of Dates* where user can fix the slot, and there are *n
no of Users* to who can *Publish the Slot*.

So, for this, Is it a good way to make *new node per Date for each User* or
there is some other way where I can create only on and map the Users.

Please help me.


-Sukaant Chaudhary


On Thu, Jan 9, 2014 at 6:35 PM, Peter Neubauer <
[email protected]> wrote:

> 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.
>

-- 
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.

Reply via email to