no need to provide query when rewriting only ontology or ABox