pushing a new xquery and another test Regex directory

This commit is contained in:
HadleighJae 2023-04-26 13:37:54 -04:00
parent 780f7e4c00
commit 8a031d6eb7
330 changed files with 239037 additions and 5 deletions

View file

@ -2,7 +2,7 @@
{
let $conspFiles := collection('personTestingOutput')
let $ents := $conspFiles//ent
let $entTypes := $ents/@type[. = 'NORP'] ! string() => distinct-values()
let $entTypes := $ents/@type[. = 'PERSON'] ! string() => distinct-values()
for $e in $entTypes
return
<table id="{$e}">
@ -10,13 +10,13 @@ return
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:)
(: let $countT := $conspFiles//ent[. ! normalize-space() = $t] => count() :)
(: where $countT > 10 :)
(: order by $countT descending:)
return
<tr>
<td>{$t}</td>
<td>{$countT}</td>
<!-- <td>{$countT}</td> -->
</tr>
}