What is going on here?
What you are going to do is download a small program that runs in Java. You almost certainly have java installed on your computer if you have a web browser. The program reads an instruction file which tells it how to read through a list of patents that relate to chemistry. You will also need to download these two files and instructions are given below.
Why would I want to do this?
This project is attempting to ask a question by getting computers to "read" as many patents as possible from the recent to the quite old. The question we are asking is "Is chemistry becoming more green in the processes and reagents that it uses?" To do this work we are asking volunteers to become involved by contributing their computing resources to help read the patents. No knowledge of chemistry is necessary!
More generally we are trying to demonstrate the feasibility of collecting information from across a wide range of documents that relate to science to ask wider questions. The results of this work will be presented at Science Online London 2010 in a few weeks time.
Sounds great! How do I do it?
Instructions for analysing patents:
Latest instructions for the experienced
- please always use the code from Hudson
- Download latest jar from https://hudson.ch.cam.ac.uk/job/patentanalysis/lastSuccessfulBuild/wwmm$patent-analysis/patent-analysis-0.0.1-jar-with-dependencies.jar which have been lightly tested.
- Create a folder named e.g. patentData where the index is and where the results will come
- Download http://greenchain.ch.cam.ac.uk/patents/jars/parsePatent.xml intoanywhere convenient - yourDir
- Download http://greenchain.ch.cam.ac.uk/patents/jars/uploadWeek.xml to anywhere convenient - yourDir
- Download a random patent catalogue (though pre-1990 may be lacking Chemistry patents) from http://greenchain.ch.cam.ac.uk/patents/indexes/ into the patentData folder
- run "java -Xmx512m -jar patent-analysis-0.0.1-jar-with-dependencies.jar -p <yourDir>/parsePatent.xml -d <patentData>"
- Then run "java -Xmx512m -jar patent-analysis-0.0.1-jar-with-dependencies.jar -p <yourDir>/uploadWeek.xml -d <patentData>"
to upload the results.
THE FOLLOWING SECTION MAY BE OBSOLETE
More detailed instructions for the less confident volunteer (but check filenames against those above)
- Downloading the software tools and creating a working directory
- Open a browser and paste the following link into your address bar: http://dl.dropbox.com/u/1120779/solo/patentData.zip A download should start automatically. It might take a little while (around 40 seconds for me).
- Once you've downloaded the zip file, find it (your browser should help you with this) and unzip it. In most cases, double clicking, or right-clicking and selecting "Unzip" or something similar should do the job.
- Check that you have three files in the unzipped folder, they should be called "parsePatent.xml", "uploadSolvent.xml", and "patent-analysis-0.0.1-with-dependencies.jar"
- Drag the folder to somewhere convenient, like the desktop or your documents folder
- Second step - getting a patent index
- Point your browser at http://greenchain.ch.cam.ac.uk/patents/indexes This takes you to the main index.
- You can select any year. Probably not much point going for ones much before 1990.
- Then select an index. Probably easiest to right click (or click-hold on a Mac) and choose "Save target as…" Save the folder into the directory with the tools that you just put somewhere where you can remember it. Now you are reading to…
- Do the analysis!
- Open a terminal window.
- Windows: In Start Menu select "Run" and type "cmd" and press return
- Mac: Open "Terminal" from Applications -> Utilities
- Navigate to your directory.
- On Windows or Windows if the directory is on the desktop try "cd Desktop/patentData"
- In the terminal type the command "java -Xmx512m -jar patent-analysis-0.0.1-jar-with-dependencies.jar parsePatent.xml"
- This should then run the extraction. Sit back and enjoy the nice warm feeling. The analysis will take between 10 and 60 minutes depending on how many patents are in the index.
- When the program has finished running you are ready to upload the results. At the command prompt type "java -jar patent-analysis-0.0.1-jar-with-dependencies.jar uploadSolvent.xml"
- Open a terminal window.
- All done! You can now go back to Step 2, pick a different patent index and start again…(you might want to delete all the folders and files that have been created first just to keep things clear and tidy)