Statistics
Note:
- Fonctions: getNodeSet|docName|lenght.XMLNode|contains
- Elements nodes from w|span|persName
- Attributes nodes:
@ana|@type - 'Value' from:
- Primary data: verb|entity
- Preliminary
step:
@anaof identified person - Objective variables : TAXO|subTAXO|CONTEXT|SPHERE|ROLE|SEX
Note: Value in capital letters: implies to select the right choice of the subcategory, ie SPHERE ➞ ‘outside’.
- Subjective variables: consequence
Note: Compute only for the need of the last step (C): affectivity|degree of affectivity|volontary intentention
- Other: ‘purpose’
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’:
- E.philology section: transcription with primary data and objective variables to compute verbs for each or all animated entities (very useful for the agency) ➟.
- 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.
- Define https://www.w3.org/TR/xpath/#axes
path: i.e.
//(any descendants),descendant::(children, grandchildren, etc.) - Select the elements according to namespace
ns:element(* when<element>is not specified = search within alldoc). - 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'; functiongetNodeSet: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 @anavalues/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
@anaobjective 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
- From semantic verbal:
@type'character', ns:persName(= namespace<persName>) :- To count number of animated entities for pourcentage's purpose.
Question @anavalues/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')
- Within e.philology section (primary data and objective variables), ns:w (=
namespace
- Pourcentage:
- 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
- assign variables, example for ʿAnatu's actions, variable 'action_anatu':
- According to the question, attributes nodes:
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.