Add rdf_direction/4.