A smart city can be seen as a urban space that takes advantage of information and communication technologies and data science to answer todays challenges, namely to become more efficient in services and infrastructures management and to deliver increased quality of life to the people who lives, works or visits the city, not forgetting the support to fight climate change. In this framework cities governments are nowadays under pressure and going through a digital transformation process that is translated in the proliferation of "Smart Cities" initiatives around the world as part of the strategic response to the challenges and opportunities of growing urbanization and climate change altogether with the emergence of cities as a space for social and economic development. In this work we will propose a concept of urban intelligence and its building blocks that result from the city digital transformation process which will lead to a paradigm shift leading to the city as a platform where urban planning and management is supported by urban analytics and real time data.