Functional annotation of structural data