Reusable templates for the extraction of knowledge