Generating Relation Algebras for Qualitative Spatial Reasoning: Advances in Artificial Intelligence