convert relations to owl