I'm sure most people assumed you meant home carpet
Here's what I would do, as it's worked on everything for me pretty much from car to mattresses, to household carpet, everything pretty much.
First wet the area with 50% white vinegar and 50% water. Allow it to dry naturally or use a towel, fan, or wet/dry vac to assist in drying. Once dry, sprinkle baking soda over the area, and then pour a solution of hydrogen peroxide and dishwashing soap onto the baking soda. (I usually use 1/2 cup peroxide and a tablespoon of dishwashing soap). Work it in with a brush and allow it to dry, once dry vacuum it up.
This has worked for pretty much any and every thing I've had on my carpet or fabric, ever.