better implementation of property2resource; uses id2resource instead of get. the latter only is succesfull for instantiated objects