Things are interconnected using information and communication technologies in smart cities, forming Internet of Things (IoT). The Internet of Vehicles (IoV) refers to an IoT application, where the urban vehicle fleet forms a worldwide network, using V2X (Vehicle-to-Everything) communications. The 5G is the new generation of cellular networks that will eliminate the bounds of bandwidth, performance, and latency limitations. IoV is one of the high-priority application domains for 5G. Among the under development IEEE Standard regarding 5G, the IEEE P1931.1 standard (named also Real-time Onsite Operations Facilitation (ROOF) Standard) seems to be very promising for IoV requirements. This paper proposes ROOFbased Named Data Vehicular Networking (RND − V n ), a named data networking (NDN) architecture for IoV. In addition to the proposal, we provide SeCrND n (Searchable Encryption for Content Retrieval in NDN), a searchable encryption technique for NDN content retrieval. Furthermore, we propose the intelligent Named Data Caching (iNDC), a machinelearning-based data caching technique for ROOF-based named data networking. The iNDC predicts the number of content requests, such that popular contents are kept as long as possible on roadside units. The proposed iNDC is also used to predict the storage capacity required by each roadside unit. A performance study was conducted to evaluate the performance of machine learning algorithms applied to iNDC. The results show that linear and ridge regressions are the most efficient in terms of content popularity prediction. To predict the capacity of new roadside units, iNDC provides better accuracy using k-Nearest Neighbors.