Doubt reg the parser

Hi,

I’m new to TypeDB and while going through the github and looking into the code i got a doubt. Is the parser doing the STIX conversion from JSON and then inserting into TypeDB or it’s two different things. Please help me to understand this. Thank you!

am working on this repo currently - GitHub - typedb-osi/typedb-cti: Open Source Threat Intelligence Platform

any help would be highly appreciated.

The file stix/type_mapping.py contains a mapping from “raw” STIX data to TypeDB concepts:

In stix/migrator.py we can find the JSON parser method _read_stix_objects_json;

And stix/query.py contains all the methods for generating TypeQL Insert queries from the imported data:

Thank you @alex
So, to my understanding that’s a step by step process from
mapping → migration → insertion
please correct me for anything.

I’d say so, yes this looks correct to me.

1 Like