Imports the European Patent Office (EPO) 2024b database PATSTAT (https://www.epo.org/en/searching-for-patents/business/patstat) into MySQL.
- Unzip every
tlsXXX_partYY.zipfound in the PATSTAT archives into a single folder. - Run
01_create_DB_and_tables.sqlto create the database and tables. - Open
02_import_data_files.sqland change theSET PATH TO DATA FOLDERchunk to the directory containing the unzipped PATSTAT csv files. you may want to uncomment some of the sections in this code. - Run
02_import_data_files.sqlto import the data. This may take some time. You may want to comment out unneeded tables. - Run
03_row_counts.sqlto check if the row counts match the ones reported by PATSTAT. - Run
04_indexation.sqlto create indices. You may want to modify this according to your own needs.