Statistics

Note:

For the interpretation, which is the last section for suggesting a hermeneutics of action:

Reminder: computation is done within two sections in the XML-TEI file ‘doc’:
  1. E.philology section: transcription with primary data and objective variables to compute verbs for each or all animated entities (very useful for the agency) .
  2. Data mining section: interpretation with primary data, objective variables and subjective variables, more specifically the “R” <span> element :
             <catlList>
             <!-- interpretation [...]  -->
             <!-- resume interpretation for R --><span ana="#ANT #toDestroy #active #rage #free #outside #affectEntity_and_other" />
             </castList>
         

Two functions are essentially used: getNodeSet and length. The latter is used to compute nodes.

Four steps for parsing a file, doc: (1) define PATH, (2) elements, (3) select nodes (, attributes, and values), (4) pourcentage from lenght.XMLNode.
  1. Define https://www.w3.org/TR/xpath/#axes path: i.e. // (any descendants), descendant:: (children, grandchildren, etc.)
  2. Select the elements according to namespace ns:element (* when <element> is not specified = search within all doc).
  3. Select nodes to match relevant criteria (@attributes and its ‘values’) within /PATH/ns:element: for analyzing an action:
    • According to the question, attributes nodes: @ana, @type 'verb'; function getNodeSet:
      nodes=getNodeSet(doc,"PATH[contains(@ATTRIBUTE, 'VALUE')]", ns)
      • Within e.philology section (primary data and objective variables), ns:w (= namespace <w>) for counting verb's occurrences:
        • @type 'verb' from semantic verbal: @ana '#action'(= taxonomy, TAXO) and its subtaxonomy (subTAXO: #agression, #confrontation #destruction, #displacement, #movement, #put_together, #otherAction)
        • Optional: specify an animated entity's name (AE, #AE 'value'), i.e.ʿAnatu @ana '#ANT' ObjVar.html#verbSem01 @ana

        Question @ana values /PATH/ns R
        Occurences: verbs ➞ taxo action #action //ns:w
        contains(@ana,'#action') and contains(@type,'verb')
        Occurences: verbs ➞ taxo action ➞ subTAXO #action ➞ #subTAXO VALUE //ns:w
        contains(@ana,'#action') and contains(@ana,'#subTAXO VALUE') 
        and contains(@type,'verb')
        ʿAnatu's occurences: verbs ➞ taxo action #ANT and #action ➞ #subTAXO VALUE //ns:w
        contains(@ana,'#ANT') and contains(@type,'#action') 
        and contains(@type,'verb')
        ʿAnatu's occurences: verbs ➞ taxo action ➞ subTAXO #ANT and #action ➞ #subTAXO VALUE //ns:w
        contains(@ana,'#ANT') and contains(@ana,'#action') 
        and contains(@type,'#subTAXO VALUE') and contains(@type,'verb')
        Occurences without ʿAnatu: verbs ➞ taxo action #action, and not #ANT //ns:w
        contains(@ana,'#action') and not(contains(@ana, '#ANT') 
        and contains(@type,'verb') 

      • Within Data mining section (primary data, objective and subjectives variables):
        • @type 'summary', ns:span (= namespace <span>)
          • From semantic verbal: @ana '#action'(= taxonomy, TAXO) and its subtaxonomy (subTAXO: #agression, #confrontation #destruction, #displacement, #movement, #put_together, #otherAction)
          • Specify other @ana objective variables' value-s, one or several: SPHERE #value (#outside/#inside), ROLE #value (#active/#passive), BIO #value (#female_Sx, #male_Sx)
          • Specify an animated entity's name (AE, #AE 'value'), i.e.ʿAnatu @ana '#ANT' @ana
        • @type 'character', ns:persName(= namespace <persName>) :
          • To count number of animated entities for pourcentage's purpose.

          Question @ana values /PATH/ns R
          Amout of time ANT: taxo action ➞ subTAXO ➞ what SPHERE #ANT and #action ➞ #subTAXO VALUE ➞ SPHERE #value //ns:span
          contains(@ana,'#ANT') and contains(@ana,'#action') and 
          contains(@ana,'#outside') and contains(@type,'summary')
          Amout of time ANT: taxo action ➞ subTAXO ➞ what SPHERE, which ROLE #ANT and #action ➞ #subTAXO VALUE ➞ SPHERE #value, ROLE #value //ns:span
          contains(@ana,'#ANT') and contains(@ana,'#action') and
          contains(@ana,'#outside') and contains(@ana,'#active') 
          and contains(@type,'summary')
          Total AE #entity //ns:persName
          contains(@ana,'#entity') and contains(@type, 'character')

    • Pourcentage:
      1. assign variables, example for ʿAnatu's actions, variable 'action_anatu':
        nodes=getNodeSet(doc,"//*[contains(@ana,'#action') and contains(@ana,'#ANT')]", ns)
                     action_anatu=length(nodes)
                     action_anatu
Example:
nodes=getNodeSet(doc,"//*[contains(@ana,'#action') and contains(#ana,'#movement') contains(@type,'verb')]", ns)
Meaning: find all animated entities who perform an action, type 'movement' in the e.philology subsection.