Example #1
0
 def __init__(self, config):
     """
         :param config:  database connection info and table names
             {
                 user:...,
                 database:...,
                 password:...,
                 host:....,
             }
         :return:  a new EntityDataConnector for a mysql database
         """
     DataConnector.__init__(self)
     self.config = config
     self.cnx = None
 def __init__(self, config):
     """
         :param config:  database connection info and table names
             {
                 user:...,
                 database:...,
                 password:...,
                 host:....,
             }
         :return:  a new EntityDataConnector for a mysql database
         """
     DataConnector.__init__(self)
     self.config = config
     self.cnx = None
 def __init__(self, config):
     DataConnector.__init__(self)
     self.config = config
     self.cnx = None
     self.lock = threading.Lock()
 def add_new_domain_items(self, domain_items):
     return DataConnector.add_new_domain_items(self, domain_items)
 def delete_domain_items(self, domain_name):
     return DataConnector.delete_domain_items(self, domain_name)
 def get_extracted_entities_with_domain_check(self, urls, types=[], domain='default'):
     return DataConnector.get_extracted_entities_with_domain_check(self, urls, types, domain)
 def __init__(self, config):
     DataConnector.__init__(self)
     self.config = config
     self.cnx = None
     self.lock = threading.Lock()