摘要 |
A semantic data storage method and apparatus. The method comprises: selecting a theme attribute and a master key attribute in semantic data, wherein the theme attribute is an attribute, the query frequency of which exceeds a predetermined threshold value, in the semantic data, and the master key attribute is an attribute of data logic description in the semantic data; calculating a master key attribute value set of the master key attribute which corresponds to each theme attribute value of the theme attribute; storing attributes which belong to the same master key attribute value set in the semantic data on the same node; and establishing an attribute table for each attribute which is stored in the node on the node and storing the attribute table according to a key value storage mode. The technical solution gives consideration to a storage space and query efficiency in the semantic data storage method, thereby saving the storage space and improving the query efficiency. |