lots of stuff, python names, xquery to html, xml regex clean-ish

This commit is contained in:
HadleighJae 2023-04-24 14:37:38 -04:00
parent 8838b667df
commit 780f7e4c00
342 changed files with 246606 additions and 843 deletions

View file

@ -0,0 +1,25 @@
<html>
{
let $conspFiles := collection('personTestingOutput')
let $ents := $conspFiles//ent
let $entTypes := $ents/@type[. = 'NORP'] ! string() => distinct-values()
for $e in $entTypes
return
<table id="{$e}">
{
let $namesE := $conspFiles//ent[@type=$e]
let $distNamesE := $namesE ! normalize-space() => distinct-values() => sort()
for $t in $distNamesE
let $countT := $conspFiles//ent[. ! normalize-space() = $t] => count()
where $countT > 10
(: order by $countT descending:)
return
<tr>
<td>{$t}</td>
<td>{$countT}</td>
</tr>
}
</table>
}
</html>