getrelation methods now return PatternMap