...
Code Block | ||
---|---|---|
| ||
source : { ... structuredAnalysis : { docGeo : {"lat":"$metadata.latitude","lon":"$metadata.longitude"}, description : "$metadata.reportdatetime: $metadata.offense,$metadata.method was reported was reported at: $metadata.blocksiteaddress", //other document level fields, see reference entities : [ {disambiguous_name:"$metadata.offense,$metadata.method", dimension:"What", type:"CriminalActivity"}, {disambiguous_name:"$metadata.blocksiteaddress,$metadata.city,$metadata.state", dimension:"Where",type:"Place", geotag: {latitude:"$metadata.latitude", longitude:"$metadata.longitude"}}], "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"} }] } ... } |
Display URL
"displayUrl" sets the corresponding document JSON field. It is guaranteed not to be used by the Infinit.e platform. It is therefore useful for linking documents to external content. For reference, the way that it is used in the Infinit.e GUI is as follows:
- If it starts with "http://" then it is treated as a web link
- Otherwise, it is assumed to be a relative file path to the fileshare specified in the source url field. (eg you can use the "Document - File - Get" call with the "sourceKey" concatenated to the "displayUrl" to retrieve the file directly from the fileshare).
Using the $ Operator to Extract Document Data
...
Note: When iterating over entities or metadata (for either entity or association building), the "$" sign is relative to the iterator, not the document (eg the metadata object being looped over). However when iterating over metadata fields that are strings, then the above document-level referencing is still valid, or "$value"/"${value}" can be used to reference the value itself.
Note: The $ sign can be escaped as ${$}.
Document updates and metadata
...