def prolog_query_one(self, query, idx=0): logging.debug('prolog_query_one: %s' % query) solutions = pyxsb_query(query) if not solutions: return None return solutions[0][idx]
def prolog_check(self, query): logging.debug('prolog_check: %s' % query) res = pyxsb_query(query) return len(res) > 0
def prolog_query(self, query): logging.debug('prolog_query: %s' % query) return pyxsb_query(query)
def prolog_query_one(self, query, idx=0): logging.debug ('prolog_query_one: %s' % query) solutions = pyxsb_query(query) if not solutions: return None return solutions[0][idx]
def prolog_check(self, query): logging.debug ('prolog_check: %s' % query) res = pyxsb_query(query) return len(res)>0
def prolog_query(self, query): logging.debug ('prolog_query: %s' % query) return pyxsb_query(query)