Cognition as Semiosis