Semantic and geometric reasoning for robotic grasping: a probabilistic logic approach