摘要 |
<p>An ontology-based query method and apparatus include acquiring a to-be-queried triple input by the user, where a known element is a query condition. One or more unknown elements in the to-be-queried triple is a query object and searching is performed, in the key-value pairs stored in each of the plurality of computing nodes, for a key-value pair matching the query condition. An element corresponding to the query object is determined from three elements included in a key value of the matched key-value pair, to acquire elements corresponding to the query objects determined in each of the plurality of computing nodes. A query result is acquired according to the elements corresponding to the query objects determined in each of the plurality of computing nodes.</p> |