Representing and Retrieving Symbolic Pictures by Spatial Relations