Query method and query device based on body
A query method and ontology technology, applied in the field of information retrieval, can solve the problems of slow query speed, slow query speed, long time required for inference, etc., to avoid inference operations, improve query speed, and simplify the query process.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] An embodiment of the present invention provides an ontology-based query method, wherein multiple computing nodes store multiple key-value pairs constructed according to triples of ontology described by RDF, and each key-value pair includes a key and A key value containing the three elements of the triplet, the key containing one of the three elements of the triplet. see figure 2 , the method flow includes:
[0073] 201: Obtain at least one triplet to be queried input by a user, the known element in the triplet to be queried is a query condition, and at least one unknown element in the triplet to be queried is a query object.
[0074] 202: Find the key-value pair that matches the query condition in the key-value pair stored in each computing node, and determine the element corresponding to the query object among the three elements contained in the key value of the matching key-value pair, and get The element corresponding to the query object determined on each compute...
Embodiment 2
[0101] In order to increase the speed of querying data desired by users in an ontology described by RDF, an embodiment of the present invention provides an ontology-based query method. In combination with the content of the first embodiment above, see image 3 , the method flow includes:
[0102] 301: Construct multiple key-value pairs according to the triples of the ontology described by the RDF.
[0103] In this step, the RDF described ontology may be in the form of one or more RDF graphs, and each RDF graph corresponds to a file in RDF format. The ontology described by RDF contains at least one triple, and each triple contains three elements, which are subject, predicate and object. In order to realize the follow-up query work, in this step, the triplet of the ontology described by RDF is constructed as a key-value pair, specifically including: setting each element in the triplet of the ontology described by RDF as each keys, and set the three elements in the triplet cor...
Embodiment 3
[0163] An embodiment of the present invention provides an ontology-based query device, which is used to implement the ontology-based query method provided in the first or second embodiment above. Among them, multiple computing nodes store multiple key-value pairs constructed according to triples of ontology described by RDF, each key-value pair contains a key and a key value, and the key value contains three elements of the triple , where the key contains one of the three elements of the triplet. see Figure 5 , the device consists of:
[0164] The first acquisition module 501 is configured to acquire at least one triple to be queried input by the user, the known element in the triple to be queried is a query condition, and at least one unknown element in the triple to be queried is a query object;
[0165] A search module 502, configured to search for a key-value pair that matches the query condition obtained by the first obtaining module 501 in the key-value pairs stored i...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com