The RDF ( Resource Description Framework) compression scheme effectively compresses large RDF datasets,and the RDF encryption scheme enhances data security. Combined?these two approaches,we propose a dictionary - based compression and encryptionquery scheme. In this scheme,a dictionary set is constructed by the original RDF dataset for data compression. Then,using the dictionaryset,ciphertext ID triplets are generated to achieve data encryption. The dictionary set is stored in a trusted zone,while the ciphertext IDtriplets?
are stored in an untrusted zone. During querying,the keywords in the query statement are first transformed into corresponding ciphertext keywords using the dictionary set. Then, a?
query is performed on the ciphertext ID triplets to retrieve data related to theciphertext keywords. The obtained ciphertext data is transferred to the trusted zone,where decryption and decompression operations areperformed to obtain the final plaintext data. By separating the query operations from the decryption and decompression operations,theproposed scheme enhances data security. The querying is conducted only in the untrusted zone,while decryption and decompression areperformed in the trusted zone. Finally,a comparison experiment with other RDF encryption schemes is carried out on 5 data sets,and it isproved that the proposed compressed encryption query scheme has a certain improvement in query performance,and verifies that it isfeasible and effective.