Exemple #1
0
 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]
Exemple #2
0
 def prolog_check(self, query):
     logging.debug('prolog_check: %s' % query)
     res = pyxsb_query(query)
     return len(res) > 0
Exemple #3
0
 def prolog_query(self, query):
     logging.debug('prolog_query: %s' % query)
     return pyxsb_query(query)
Exemple #4
0
 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]
Exemple #5
0
 def prolog_check(self, query):
     logging.debug ('prolog_check: %s' % query)
     res = pyxsb_query(query)
     return len(res)>0
Exemple #6
0
 def prolog_query(self, query):
     logging.debug ('prolog_query: %s' % query)
     return pyxsb_query(query)