convert relations into owl properties