In other industries, this is what patents are supposed to be for.
From the US constitution:
> To promote the progress of science and useful arts, by securing for limited times to authors and inventors the exclusive right to their respective writings and discoveries.
You could argue the monopoly grant is purely intended as an incentive to publish. I think the accepted interpretation is that it is intended as an incentive to invent as well as publish those inventions.
IMHO the merits of that logic are open to debate though. Not a big fan of IP myself.