def __init__(self): track_keys = ['PATDOC','B110','B140','B220','B511','B521','B731','PDAT','NAM','CTRY','CITY'] start_keys = ['PATDOC'] end_keys = ['PATDOC'] PathHandler.__init__(self,track_keys=track_keys,start_keys=start_keys,end_keys=end_keys) self.completed = 0
def __init__(self): track_keys = ['us-patent-grant','publication-reference','application-reference','doc-number', 'classification-national','main-classification','classification-ipcr','ipc-version-indicator', 'section','class','subclass','main-group','subgroup','date','assignee','orgname','country','state'] start_keys = ['us-patent-grant','classification-ipcr','assignee'] end_keys = ['us-patent-grant','classification-ipcr','assignee'] PathHandler.__init__(self,track_keys=track_keys,start_keys=start_keys,end_keys=end_keys) self.completed = 0
def endElement(self,name): PathHandler.endElement(self,name) if name == 'PATDOC': if self.patnum[0] == '0': self.addPatent() elif name == 'B731': self.orgnames.append(self.orgname) self.countries.append(self.country) self.cities.append(self.city)
def endElement(self, name): PathHandler.endElement(self, name) if name == 'us-patent-grant': if self.patnum[0] == '0': self.addPatent() elif name == 'classification-ipcr': self.ipc_vers.append(self.ipc_ver) self.ipc_codes.append(self.ipc_code) elif name == 'assignee': self.orgnames.append(self.orgname) self.countries.append(self.country) self.cities.append(self.city)
def endElement(self,name): PathHandler.endElement(self,name) if name == 'us-patent-grant': if self.patnum[0] == '0': self.addPatent() elif name == 'classification-ipcr': self.ipc_vers.append(self.ipc_ver) self.ipc_codes.append(self.ipc_code) elif name == 'assignee': self.orgnames.append(self.orgname) self.countries.append(self.country) self.states.append(self.state)
def startElement(self,name,attrs): PathHandler.startElement(self,name,attrs) if name == 'PATDOC': self.patnum = '' self.grant_date = '' self.file_date = '' self.ipc_code = '' self.class_str = '' self.orgnames = [] self.countries = [] self.cities = [] elif name == 'B731': self.orgname = '' self.country = '' self.city = ''
def __init__(self): track_keys = [ 'us-patent-grant', 'publication-reference', 'application-reference', 'doc-number', 'classification-national', 'main-classification', 'classification-ipcr', 'ipc-version-indicator', 'section', 'class', 'subclass', 'main-group', 'subgroup', 'date', 'assignee', 'orgname', 'country', 'city' ] start_keys = ['us-patent-grant', 'classification-ipcr', 'assignee'] end_keys = ['us-patent-grant', 'classification-ipcr', 'assignee'] PathHandler.__init__(self, track_keys=track_keys, start_keys=start_keys, end_keys=end_keys) self.completed = 0
def startElement(self, name, attrs): PathHandler.startElement(self, name, attrs) if name == 'us-patent-grant': self.patnum = '' self.grant_date = '' self.file_date = '' self.class_str = '' self.orgnames = [] self.countries = [] self.cities = [] self.ipc_vers = [] self.ipc_codes = [] elif name == 'classification-ipcr': self.ipc_ver = '' self.ipc_code = '' elif name == 'assignee': self.orgname = '' self.country = '' self.city = ''
def startElement(self,name,attrs): PathHandler.startElement(self,name,attrs) if name == 'us-patent-grant': self.patnum = '' self.grant_date = '' self.file_date = '' self.class_str = '' self.orgnames = [] self.countries = [] self.states = [] self.ipc_vers = [] self.ipc_codes = [] elif name == 'classification-ipcr': self.ipc_ver = '' self.ipc_code = '' elif name == 'assignee': self.orgname = '' self.country = '' self.state = ''