...
The following code demonstrates how to specify a basic Where (Place) entity event (Note: The sample entity event specification and sample entity event output below is extracted from a MySql Database Source the full content of which can be viewedviewed here.):
Code Block | ||
---|---|---|
| ||
{ ... "events" : [ { "entity1" : "$metadata.offense,$metadata.method", "verb" : "reported",verb_category:"crime",time_start:"$metadata.reportdatetime", "geo_index" : "Location", "geotag" : { "latitude" : "$metadata.latitude", "longitude" : "$metadata.longitude"} }, ], ... } |
In the basic example above the following fields have been specified:
- disambiguous_name
For a given "type", this is (aside from case) a unique identifier for the entity - dimension
One of "Who" (people, organizations), "Where" (places), or "What" (everything else) - type
The entity type, i.e. if dimension is equal to What, type might be equal to Automobile, Airplane, Ship, etc.entity1
A free form text field containing information about the event "subject" - verb
A free form text field describing the event "verb" - geoindex
If the event geotag maps into an entity from the parent document then this field is the "gazateer_index" of that entity - geotag
- latitude
String containing a floating point representation of latitude - longitude
String containing a floating point representation of longitude
- latitude
...