Graphs do sound suited to your problem.
Moe replies inline.

On 26 January 2016 at 22:48, Ranga S <[email protected]> wrote:

> Hi
>
> I was wondering if someone could help me with modeling rules data. Here
> are the requirements for my use-case:
>
>    - A node in the graph would represent a domain entity. Lets call it a
>    "Partition" type
>    - Multiple "filters/criterias" could be defined for a Partition
>    - Filter could be defined as another node type. For e.g.: "Country",
>    "Region", "Load"
>    - Queries would be of the form: Retrieve the list of partitions that
>    match an input criteria
>       - E.g.: Country IN ['China', 'India'], Region = 'Primary', Load > 40
>
> Here is what I am struggling with:
>
>    - Could a Graph DB used for my use-case?
>    - Defining thresholds/operators for each filter
>       - Each filter type could have a value and also an "operator"
>
> Can you please elaborate on what would filter type, value and operator be?
Is it something like filter_type:"Population", value:1Billion,
operator:"Less than"?

>
>    - Dynamic query creation based on input criteria
>       - Should I retrieve all the nodes and based on their filters create
>       the appropriate queries?
>       - Or is there a way to create the queries based on the input
>       criteria and then retrieve the nodes that match that?
>
> Filtering can be modelled as a traversal and you can construct queries
based on some input criteria to retrieve the nodes that you want.

>
>    - How should nested criteria be modeled/evaluated?
>
> Can you give and example of this to help the community understand this
better?

> Thanks for your help.
>
>
> Ranga
>
> --
> 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.
>


-- Thanks and Regards
   Mahesh Lal

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