curiosity/reader.py [170:189]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @overrides
    def _read(self, file_path: str):
        """
        file_path should point to a curiosity dialog file. In addition,
        the directory that contains that file should also contain the
        sqlite database associated with the dialogs named as below
        - wiki_sql.sqlite.db

        The intent is that there are
        """
        with open(file_path) as f:
            dataset = json.load(f)
            dialogs = dataset["dialogs"]

        directory = os.path.dirname(file_path)
        db_path = os.path.join(directory, "wiki_sql.sqlite.db")
        engine, session = create_sql(db_path)
        facts = session.query(Fact).all()
        self._fact_lookup = {f.id: f for f in facts}
        verify_checksum(dataset["db_checksum"], db_path)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



curiosity/reader.py [323:340]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @overrides
    def _read(self, file_path: str):
        """
        file_path should point to a curiosity dialog file. In addition,
        the directory that contains that file should also contain the
        sqlite database associated with the dialogs named as below
        - wiki_sql.sqlite.db
        """
        with open(file_path) as f:
            dataset = json.load(f)
            dialogs = dataset["dialogs"]

        directory = os.path.dirname(file_path)
        db_path = os.path.join(directory, "wiki_sql.sqlite.db")
        engine, session = create_sql(db_path)
        facts = session.query(Fact).all()
        self._fact_lookup = {f.id: f for f in facts}
        verify_checksum(dataset["db_checksum"], db_path)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



