Versions Compared

Key

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

...

Code Block
titleMultiplicative Event Specification Example
{
    ...
    "events" : [
       {
          "iterateOver" : "entity1/entity2/geo_index",
          "verb" : "attacked",
          "verb_category" : "assault/attack",
          "entity1" : "PersonPerpetrator",
          "entity2" : "VictimType",
          "geo_index" : "Location",
          "time_start" : "$SCRIPT( return _doc.metadata.incidentdate[0]; )"
       },
    ],
    ...
}
Info

Multiplicative Events:

eee

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.

Multiplicative Events are specified by specifying which entity types to use to populate the entity1, entity2, geo_index, time_start, and time_end fields of the events created. The iterateOver field is used to specify the order in which the entity types to use are multiplied to determine the total number of events to create.

...