* replaced deprecated ow_DefinedMeaningAttributes
by ow_Relations
* changed a few while by foreach

Change-Id: Idfb20f5adac5f50f33961c8a6191ccb33dcba799