Relations for general categories