I would like to add that in myapplication, these constraints are not a 
fixed set of constraints, but would evolve as new types of Vertices get 
added to the graph, it must be possible to define new constraints or adapt 
the existing constraints to new business rules.


~nagu.

On Monday, March 2, 2015 at 5:35:19 PM UTC+5:30, nagaraja sosale ramaswamy 
wrote:
>
> hi
>
> I would like to know if there is a way in OrientDB to impose constraints 
> on Vertices and/or Edges such that:
> One can only create a certain type of edge between certain type of 
> vertices.
>
> For example, consider a graph having vertices Person and Pet and edge 
> Friend.
> It must be possible to create 'Friend' edges only between Persons and not 
> between Pets.
> Also, it must be possible to create an edge between a Person and a Pet, 
> only if that Pet is a Dog (some property on Person class=Dog)
>
> how would you suggest such constraints be modeled in OrientDB (or whether 
> at all it is appropriate to do this in DB)
>
>
> thanks
> ~nagu.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" 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