Versions Compared

Key

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

...

The following code demonstrates how to specify a basic association (Note: The sample event specification and sample event output below is extracted from a sample MySql Database Source the full content of which can be viewed here.):

Code Block
titleBasic Event Specification Example
{
    //...
    "associations" : [
      {
        "entity1" : "$metadata.offense,$metadata.method",
        "verb" : "reported",
        "verb_category" : "crime",
        "time_start" : "$metadata.reportdatetime", 
        "geo_index" : "Location",
        "geotag" : {
           "lat" : "$metadata.latitude",
           "lon" : "$metadata.longitude"}
      },
    ],
    //...
}

...