Add attribute query method for parent id
Based on #97 by sj26
closes #97