Daniel Lurie, an heir to the Levi Strauss fortune and philanthropist, will be sworn in Wednesday as San Francisco mayor.