|
@@ -179,16 +179,18 @@ class basicQueries:
|
|
|
if parole != 0:
|
|
|
pointerlist = pd.DataFrame()
|
|
|
for table in listOcc:
|
|
|
+ print(listOcc)
|
|
|
queryData = {'queryType': 'singlecontext', 'querySubtype': 'parole', 'parole': parole, 'periodi': periodi, 'brani': brani, 'table': table, 'ntxlocal': ntxlocal, 'mappalocal': mappalocal, 'periodlocal': periodlocal, 'numbranolocal': numbranolocal}
|
|
|
queryresponse = self.queryHandler.query(queryData, pandas=True)
|
|
|
pointerlist = pd.concat([pointerlist, queryresponse])
|
|
|
- fileQueryData = {'sigla': sigla, 'minChar': pointerlist["pitxt"].min(), 'maxChar': pointerlist["pitxt"].max()}
|
|
|
- cont = self.queryHandler.textQuery(fileQueryData)
|
|
|
- contexts.append(cont)
|
|
|
- form = self.queryHandler.formatQuery(fileQueryData)
|
|
|
- formats.append(form)
|
|
|
- context ['piniz'] = pointerlist["pitxt"].min()
|
|
|
- context ['pfin'] = pointerlist["pitxt"].max()
|
|
|
+ print(pointerlist)
|
|
|
+ fileQueryData = {'sigla': sigla, 'minChar': pointerlist["pitxt"].min(), 'maxChar': pointerlist["pitxt"].max()}
|
|
|
+ cont = self.queryHandler.textQuery(fileQueryData)
|
|
|
+ contexts.append(cont)
|
|
|
+ form = self.queryHandler.formatQuery(fileQueryData)
|
|
|
+ formats.append(form)
|
|
|
+ context ['piniz'] = pointerlist["pitxt"].min()
|
|
|
+ context ['pfin'] = pointerlist["pitxt"].max()
|
|
|
elif periodi != 0:
|
|
|
queryData = {'queryType': 'singlecontext', 'querySubtype': 'parole', 'parole': parole, 'periodi': periodi, 'brani': brani, 'table': table, 'ntxlocal': ntxlocal, 'mappalocal': mappalocal, 'periodlocal': periodlocal, 'numbranolocal': numbranolocal}
|
|
|
queryresponse = self.queryHandler.query(queryData, pandas=True)
|
|
@@ -215,6 +217,7 @@ class basicQueries:
|
|
|
context['contesto'] = contexts [0]
|
|
|
context['formattazione'] = formats
|
|
|
return pd.DataFrame(context).T.reset_index(drop=True)
|
|
|
+
|
|
|
|
|
|
def findlinks (self, context):
|
|
|
linkslocal = context.loc[0, "links"]
|