get properties domain and range from definition