In this paper, we present MobiRDF, a novel cloud-based approach designed for the efficient and scalable management of RDF data, enabling real-time sharing and editing. MobiRDF offers two main services: (i) Partial Replication of RDF Graphs: This service facilitates the selective replication of RDF graphs on mobile devices, addressing their inherent resource limitations. Our partial graph selector allows using only the useful data requested by the user from the RDF graph instead of storing the entire RDF graph, which enables efficient data storage and retrieval. (ii) Collaboration Protocol: This protocol provides synchronization mechanisms for collaborative work in a fully decentralized manner. It uses commutativity-based consistency model to maintain the consistency of the shared RDF graph, ensuring seamless collaboration among users. The heavier computational tasks, such as dynamic group management, synchronization merging, and reasoning processes, are managed in the Cloud, optimizing the performance of resource-constrained mobile devices. The key novelty of MobiRDF is its ability to ensure both syntactic and semantic consistency of shared RDF data, through reasoning processes using the Closed-World Assumption (CWA) for inferring new triples. Experimental evaluations show that MobiRDF is efficient in terms of network bandwidth and energy consumption, validating its effectiveness in real-world scenarios.