Another way to say "a book is for getting knowlege." is "Getting knowledge is the purpose of a book."