[Cubicweb] About SubjectRelation and RelationType differences

Nicolas Chauvat nicolas.chauvat at logilab.fr
Fri May 25 14:48:38 CEST 2012

On Fri, May 25, 2012 at 02:20:50PM +0200, St├ęphane Bugat wrote:
> It is not clear to me from the CW documentation in which cases it is
> better to use a SubjectRelation attribute or a RelationType relation
> between two entities in my scheme.  As far as I understood,
> SubjectRelation is more dedicated to "inlined" relations where both
> entities are strongly correlated, whereas RelationType refers to
> more complex types of relations where both entities may refer to
> very different objects.  Although both of them seem to lead to the
> same scheme, so maybe there is nothing to worry about...

yams knows about Entities and Relationships. SubjectRelation,
RelationType and RelationDefinition are different ways to define the
same thing: a Relation.

Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  

More information about the Cubicweb mailing list