Пример #1
0
     Visu['color']['a'] = 1
     Visu['color']['r']= int(127)
     Visu['color']['g']= int(127)
     Visu['color']['b']= int(0)
     Visu['shape'] ="ellipse"
     G.node[k]['url'] =UrlPatent(G.node[k]['label'])[0]
 elif G.node[k]['category'] == 'applicant-nice':
     G.node[k]['category'] = 'applicant'# for readable facility
     G.node[k]['url'] = UrlApplicantBuild(G.node[k]['label'])[0]
     Visu['color']['a'] = 1
     Visu['color']['r']= int(127)
     Visu['color']['g']= int(0)
     Visu['color']['b']= int(127)
     Visu['shape'] ="star"
 elif G.node[k]['category'] == 'IPCR1' or G.node[k]['category'] == 'IPCR3' or G.node[k]['category'] == 'IPCR4' or G.node[k]['category'] == 'IPCR7' or G.node[k]['category'] == 'IPCR7' or G.node[k]['category'] == 'CPC':
     G.node[k]['url'] = UrlIPCRBuild(G.node[k]['label'])[0]
     Visu['color']['a'] = 1
     Visu['color']['r']= int(127)
     Visu['color']['g']= int(254)
     Visu['color']['b']= int(127)
     Visu['shape'] ="database"
 elif G.node[k]['category'] == 'inventor-nice':
     G.node[k]['category'] = 'inventor'# for readable facility
     G.node[k]['url'] = UrlInventorBuild(G.node[k]['label'])[0]
     Visu['color']['a'] = 1
     Visu['color']['r']= int(127)
     Visu['color']['g']= int(127)
     Visu['color']['b']= int(254)
     Visu['shape'] ="triangleDown"
 else:
     Visu['color']['a'] = 1
                        if brev[key][0] is not None:
                            tempo[key] = brev[key][0]
                        else:
                            tempo[key] = u''
                    elif brev[key] is None:
                        tempo[key] = u''
                    else:
                        tempo[key] = brev[key]
            else:
                tempo[key] = u''
    #   tempo[url]

        tempo['inventor-url'] = UrlInventorBuild(brev['inventor'])
        tempo[u'applicant-url'] = UrlApplicantBuild(brev['applicant'])
        for nb in [1, 3, 4, 7, 11]:
            tempo[u'IPCR' + str(nb) + '-url'] = UrlIPCRBuild(brev['IPCR' +
                                                                  str(nb)])

        tempo['equivalents-url'] = [
            UrlPatent(lab) for lab in brev['equivalents']
        ]
        tempo['label-url'] = UrlPatent(brev['label'])
        LstExp.append(tempo)
        if 'references' not in tempo.keys():
            print
    #    filtering against keys in clesRefs2 for pivottable
    #    tempo2=dict()
    #    clesRef2 = ['label', 'year',  'priority-active-indicator', 'kind', 'applicant', 'country', 'inventor',  'IPCR4', 'IPCR7', "Inventor-Country", "Applicant-Country", 'Citations', u'references', 'CitedBy', ] #'citations','representative',
    #    for ket in clesRef2:
    #        tempo2[ket] = brev[ket] #filtering against clesRef2
    #
    #        if isinstance(brev[ket], list):
Пример #3
0
     G.nodes[k]['url'] = UrlPatent(k)[0]
 elif G.nodes[k]['category'] == 'Applicant':
     #G.node[k]['category'] = 'Applicant'# for readable facility
     G.nodes[k]['url'] = UrlApplicantBuild(k)[0]
     Visu['color']['a'] = 1
     Visu['color']['r'] = int(127)
     Visu['color']['g'] = int(0)
     Visu['color']['b'] = int(127)
     Visu['shape'] = "star"
 elif G.nodes[k]['category'] == 'IPCR1' or G.nodes[k][
         'category'] == 'IPCR3' or G.nodes[k][
             'category'] == 'IPCR4' or G.nodes[k][
                 'category'] == 'IPCR7' or G.nodes[k][
                     'category'] == 'IPCR11' or G.nodes[k][
                         'category'] == 'CPC':
     G.nodes[k]['url'] = UrlIPCRBuild(k)[0]
     Visu['color']['a'] = 1
     Visu['color']['r'] = int(127)
     Visu['color']['g'] = int(254)
     Visu['color']['b'] = int(127)
     Visu['shape'] = "database"
 elif G.nodes[k]['category'] == 'Inventor':
     #G.node[k]['category'] = 'inventor'# for readable facility
     G.nodes[k]['url'] = UrlInventorBuild(k)[0]
     Visu['color']['a'] = 1
     Visu['color']['r'] = int(127)
     Visu['color']['g'] = int(127)
     Visu['color']['b'] = int(254)
     Visu['shape'] = "triangleDown"
 else:
     Visu['color']['a'] = 1