def build_bq_metadata_row()

in components/specialized-parser/src/runner.py [0:0]


    def build_bq_metadata_row(self, pair: FilenamesPair) -> dict:
        """Program that builds metadata for each processed file"""

        # build row with metadata
        row = {
            "id": pair.id,
            "jsonData": json.dumps(
                {
                    "objs": [
                        {
                            "uri": pair.txt_filename,
                            "objid": pair.id + "-txt",
                            "status": "Indexed",
                            "mimetype": "text/plain",
                        },
                        {
                            "uri": pair.original_filename,
                            "objid": pair.id + "-pdf",
                            "status": "",
                            "mimetype": "application/pdf",
                        },
                    ]
                }
            ),
            "content": {"mimeType": "text/plain", "uri": pair.txt_filename},
        }
        return row