DESCRIZIONE
A technology is described of a system capable of altering between extracting a core sample from, or drilling of, a downhole subterrain formation. In coring mode the core is encapsulated downhole at in-situ conditions with a material capable of providing a pressure tight seal around the core, protecting the core and temporary storing the core downhole in an inner string for later retrieval. In drilling mode the unwanted sections of the core is grinded away and the material discarded. No tripping to surface is required to change the composition of the drillstring to alter between drilling mode and coring mode. Downhole sensor technology and intelligence is used to distinguish between areas of interest where the core is encapsulated and kept, and areas of no interest where the core is discarded.