The Virtual Knowledge Graph (VKG) paradigm facilitates access to large heterogeneous data sources by leveraging an OWLÂ 2Â QL ontology representing the domain knowledge and a set of declarative R2RML mapping assertions. We are interested in heterogeneous data sources consisting of relational data together with spatial geometrical data (a.k.a. vector data) and large multidimensional raster data. The latter forms of data pose a significant challenge for traditional DBMSs to manage effectively and are instead efficiently processed by tailored array database management systems (ArrayDBMSs). To query such data within the VKG paradigm, we propose a novel framework, called OntoRaster, that allows for integrated query processing of relational, raster, and vector data, by keeping each type of data in the system tailored for their efficient processing, while minimising costly data-transfer operations. In OntoRaster, we devised custom raster functions extending SPARQL to query raster data efficiently and developed mechanisms for delegating their computation to the ArrayDBMS. We have implemented the whole framework as an extension of the state-of-the-art VKG system Ontop and have demonstrated its effectiveness and efficiency through a curated case study.