Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Multiplicative Events:

Multiplicative events For example, in the specification shown can be created using a combination of the following

Example: In the Multiplicative Event Specification shown above an event will be created for each combination of the following entity types: PersonPerpetrator, VictimType, and Location. Using the event source found below the Structured Analysis Harvester will generate a total of two (2) events based on the following math: 1 Perpetrator X 2 Victims X 1 Location = 2 Events.

...

Code Block
titleMultiplicative Event Source Example
{
    ...
    "entities" : [
       {
            "actual_name" : "Batticaloa,North Eastern Province,Sri Lanka",
            "dimension" : "Where",
            "disambiguous_name" : "Batticaloa,North Eastern Province,Sri Lanka",
            "doccount" : NumberLong(18),
            "frequency" : 1,
            "gazateer_index" : "batticaloa,north eastern province,sri lanka/location",
            "geotag" : {
               "latitude" : "7.7166667",
               "longitude" : "81.7"
            },
            "totalfrequency" : NumberLong(18),
            "type" : "Location"
       },
       {
            "actual_name" : "Targeted, Police, Adult from Sri Lanka",
            "dimension" : "Who",
            "disambiguous_name" : "Targeted, Police, Adult from Sri Lanka",
            "doccount" : NumberLong(47),
            "frequency" : 3,
            "gazateer_index" : "targeted, police, adult from sri lanka/victimtype",
            "totalfrequency" : NumberLong(161),
            "type" : "VictimType"
       },
       {
            "actual_name" : "Targeted, Military, Adult, Combatant from Sri Lanka",
            "dimension" : "Who",
            "disambiguous_name" : "Targeted, Military, Adult, Combatant from Sri Lanka",
            "doccount" : NumberLong(20),
            "frequency" : 1,
            "gazateer_index" : "targeted, military, adult, combatant from sri lanka/victimtype",
            "totalfrequency" : NumberLong(147),
            "type" : "VictimType"
       },
       {
            "actual_name" : "Secular/Political/Anarchist from Sri Lanka",
            "dimension" : "Who",
            "disambiguous_name" : "Secular/Political/Anarchist from Sri Lanka",
            "doccount" : NumberLong(200),
            "frequency" : 1,
            "gazateer_index" : "secular/political/anarchist from sri lanka/personperpetrator",
            "totalfrequency" : NumberLong(200),
            "type" : "PersonPerpetrator"
        },
        ...
    ],
    ...
}

Blah de blah, blahThe following Multiplicative Event Output example shows how the Structured Analysis Harvester would generate two events from the source data and specification show above:

Code Block
titleMultiplicative Event Output Example
{
    ...
    "events" : [
        {
           "entity1" : "secular/political/anarchist from sri lanka",
           "entity1_index" : "secular/political/anarchist from sri lanka/personperpetrator",
           "verb" : "attacked",
           "verb_category" : "assault/attack",
           "entity2" : "targeted, police, adult from sri lanka",
           "entity2_index" : "targeted, police, adult from sri lanka/victimtype",
           "time_start" : "09/07/2005",
           "geotag" : {
                "latitude" : "7.7166667",
                "longitude" : "81.7"
           },
           "geo_index" : "batticaloa,north eastern province,sri lanka/location",
           "event_type" : "Event"
        },
        {
           "entity1" : "secular/political/anarchist from sri lanka",
           "entity1_index" : "secular/political/anarchist from sri lanka/personperpetrator",
           "verb" : "attacked",
           "verb_category" : "assault/attack",
           "entity2" : "targeted, military, adult, combatant from sri lanka",
           "entity2_index" : "targeted, military, adult, combatant from sri lanka/victimtype",
           "time_start" : "09/07/2005",
           "geotag" : {
                "latitude" : "7.7166667",
                "longitude" : "81.7"
           },
           "geo_index" : "batticaloa,north eastern province,sri lanka/location",
           "event_type" : "Event"
        }
    ],
    ...
}

...