Primitive relations framework