Can conditional and combinatorial conditional relationships be designed in
Neo4j?
I am planning to use Neo4j to handle a database that I'm interested in
creating. Among several specific functions that the database should have,
there are two that have greater importance. I suspect that Neo4j can
handle this functionality that I will describe. However, I would like to
get confirmation from experienced users.
I have not settled on the data model that I will use to represent my
domain, but lets assume a model for the database that has Evaluator and
State nodes with an as yet undefined relationship between them. What I
need the database to do is as follows...
FUNCTION 1 Each Evaluator can have result that can be above or below a
base range. For a given Evaluator (E1), if the result is above the base
range (BR), there is a relationship to State S1. if the result is within
the base range (BR), there is no relationship to any State. if the result
is below the base range (BR), there is a relationship to State S2. Hence
an Evaluator might have two properties: result and base range. Base range
could be represented as Base range Hi and Base range low for easy
calculation.
Lets say a user inputs a result for a given Evaluator; I would like that
input to invoke an automatic query that depends upon the value of the
result in relation to the base range. That query would return all the
states related to an evaluator with a given result value. The key idea
here is a conditional relationship depending upon the value of user input.
I'm sure there are other ways to do this (relationship property?), but the
same idea of a conditional relationship based on user input is of interest
to me.
CAN FUNCTION 1 BE DONE?
FUNCTION 2 Then lets say that there are 2 evaluators E1 and E2. Lets say
that various combinations of Evaluators with values above or below their
distinct base ranges have conditional relationships to S1, S2…Sn
E1 High, E2 low; relationship with S1
E1 High E2 BR; relationship with S2
E1 High, E2 High; relationship with S3
E1 BR, E2 High; relationship with S4
E1 low, E2 High; relationship with S5
E1 BR, E2 BR; no relationship to a State
Lets say a user inputs a value for results for E1 and E2. I would like
that combination to invoke an automatic query that also depends upon the
value of the results in relation to the base ranges. That query would
return all the states related to E1 and E2 with a given result values. The
key idea here is a combinatorial conditional relationship depending upon
the value of user input.
CAN FUNCTION 2 BE DONE?
Thanks, Jose
No comments:
Post a Comment