Parse string representations of model relationships