I import location2stix data using stix2arango
python3 utilities/arango_cti_processor/insert_archive_locations.py \
--database forum_demo
Now let’s say I start with France as a country…
FOR doc IN locations_vertex_collection
FILTER doc.name == "France"
LET keys = ATTRIBUTES(doc)
LET filteredKeys = keys[* FILTER !STARTS_WITH(CURRENT, "_")]
RETURN KEEP(doc, filteredKeys)
[
{
"country": "FR",
"created": "2020-01-01T00:00:00.000Z",
"created_by_ref": "identity--674a16c1-8b43-5c3e-8692-b3d8935e4903",
"external_references": [
{
"source_name": "alpha-3",
"external_id": "FRA"
},
{
"source_name": "iso_3166-2",
"external_id": "ISO 3166-2:FR"
},
{
"source_name": "country-code",
"external_id": "250"
}
],
"id": "location--4e9a8b79-6776-56e3-b72c-cb19a086b6a8",
"modified": "2020-01-01T00:00:00.000Z",
"name": "France",
"object_marking_refs": [
"marking-definition--674a16c1-8b43-5c3e-8692-b3d8935e4903",
"marking-definition--94868c89-83c2-464b-929b-a1a8aa3c8487"
],
"region": "western-europe",
"spec_version": "2.1",
"type": "location"
}
]
I know location2stix creates regions and continents then links them to countries, so how do I uncover these links?