Skip to content

GrFN Metadata Enrichment

Daniel Dicken edited this page Oct 20, 2021 · 7 revisions

Overview

GrFN metadata enrichment is the process of taking results from text reading and combining the extracted information into the relevant parts of a GrFN. This results in the different components of a GrFN (containers, variables, etc.) having metadata fields of different types associated to them. Every metadata object will have a field under "provenance" -> "method" that indicates where the metadata came from. In this process, it will be filled in as “TEXT_READING”.

The core code for metadata enrichment of a GrFN is mostly located in a few files: and.

How it works

There are a few files that are required to do the metadata enrichment:

  1. A GrFN with variables (example file: SIR-simple—GrFN.json - Google Drive)
  2. Source code comments file (example file: SIR-simple—documentation.json - Google Drive)
  3. Documentation PDF related to code (example file: ideal_sir_model_without_vital_dynamics.pdf - Google Drive)
  4. Equations file (example file: ideal_sir_model_without_vital_dynamics-equations.txt - Google Drive)

These four files are passed to the TR web app and produces and alignment file. An alignment file is a JSON file holding links between entities from the four original files passed in. These links look like the following:

Running an example

Relevant Scripts

Clone this wiki locally