SOFIE is a unified approach for ontology-based information extraction that combines pattern-based extraction from text with facts from an ontology like YAGO. It expresses extraction patterns and rules as logical facts and uses weighted MAX SAT solving to test hypotheses against the rules and facts to perform word sense disambiguation, extract new patterns, and infer new knowledge. Evaluation experiments on Wikipedia and news articles show it can effectively extract information at a large scale and disambiguate entities, though it has limitations for reasoning over ontologies with open world assumptions.