Inconsistency and redundancy checking for quasi-first-order-logic knowledge bases