Patent Data

From edegan.com
Revision as of 17:37, 21 March 2016 by imported>Ed
Jump to navigation Jump to search

The Patent Data page is for instructions on how to get the USPTO patent data, how to use the database, and for the documentation of our database.

ER diagram

 

Downloading the files

The files (in xml format) for granted patent data can be obtained at granted patent

The files for patent application data can be obtained at patent applications

The files for maintenance fees data can be obtained at maintenance

Scripts are available to perform a bulk download of all the above files:

Script to download patent application data from 2001-2004

Script to download patent application data from 2005-2015

Script to download patent grant data from 1976-2000

Script to download patent grant data from 2001-2004

Script to download patent grant data from 2005-2015

To use the scripts, save the scripts as shell scripts, then either

$ sh Applications_download_2001-2004.sh

or first change the script to an executable and execute it

$ chmod a+x Applications_download_2001-2004.sh
$ ./Applications_download_2001-2004.sh

Notice there will be several hundreds of .zip files of size ~100mb getting downloaded so the process might take a while. When all the files are downloaded, unzip all of them using

$ unzip *.zip

XML Schema Notes

Parsing and Processing the XML files

The ParserSpliter.pl script will first split a large Patent Data XML file into smaller XML files, one for each patent data. And it will then parse and process each Patent Data XML file.

Some of the files are somehow mal-formatted, and will be moved to a ./failed_files directory If you add a character anywhere in these files, they somehow become fine to be processed by the script.

In order to use this script, you will need to have XML::Simple and Try::Tiny installed.

Open up CPAN shell:

$ perl -e shell -MCPAN

Install:

cpan[0]> install XML::Simple
cpan[1]> install Try::Tiny
cpan[2]> install Switch

Once the packages have been installed, use the script like the following example:

perl PatentParser.pl -file=ipa150319_small.xml

Other Resources

New Notes

The source files have transitioned from here:

To:

The historic data is the same both sides.

Each file contains, in order, sorted by document ID:

  1. Design patents (we will discard)
  2. Plant patents (we will discard)
  3. Reissues (we probably want them)
  4. Utility patents (we want them)

The classifications in the XML file are:

  • IPC - these are good and we just need the main classification
  • CPC - as above
  • USPC - just a numeric but not split. Is 22431 224/31 or 22/431, etc.

Fields of Interest

We only care about Utility patents (and maybe Reissue patents too)

Utility patent grants fields

Patent:

patent number
kind
pubdate
 <document-id>

<country>US</country> <doc-number>08925112</doc-number> <kind>B2</kind> <date>20150106</date> </document-id>