Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Prediction method and device for SparQL query statement

A query statement and prediction method technology, applied in the computer field, can solve problems such as low prediction accuracy

Pending Publication Date: 2020-09-29
北京智通寰宇科技有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem to be solved by the present invention is: how to overcome the defects that the existing technology can only be applied to continuous similar query scenarios and the prediction accuracy is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Prediction method and device for SparQL query statement
  • Prediction method and device for SparQL query statement
  • Prediction method and device for SparQL query statement

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0029] figure 1 It is a schematic diagram of the main steps of the prediction method of the SparQL query statement in the embodiment of the present invention, such as figure 1 As shown, the prediction method of the SparQL query statement in the embodiment of the present invention can be performed according to the following steps:

[0030] S...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a prediction method and device for a SparQL query statement, and relates to the technical field of computers, and one embodiment of the method comprises the steps of obtainingat least one SparQL query statement used by a user at a historical moment; carrying out one-hot coding on each component of the graph mode sequence corresponding to each SparQL query statement to forma feature vector of the SparQL query statement, wherein the components comprise at least one of the following components: resource description framework (RDF) triples, operators among the triples, and left and right brackets for determining a nesting relationship among the triples; inputting the feature vector of each SparQL query statement into a pre-trained Seq2Seq model according to a preset time sequence to obtain a target query statement serving as a prediction result; and caching query result data of the target query statement. According to the embodiment, the accuracy of SparQL query statement prediction can be improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for predicting SparQL query sentences. Background technique [0002] Linked Data is a semantic data network that computers can understand, and has now developed into a knowledge base that can provide a large amount of open data. Among them, some knowledge bases are composed of millions of concepts described by Resource Description Framework (RDF) triples, such as DBpedia, FOAF and so on. Users access data in these repositories using public SparQL clients that allow users to make SparQL queries. SparQL (SPARQL Protocol and RDF Query Language) is a query language and data acquisition protocol developed for RDF, which can be used for any information resources that can be represented by RDF. [0003] Continuous SparQL queries issued by users from the same client usually show certain patterns, such as the current query is the same or similar to the resources qu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/242G06F16/2453G06F16/2458G06F40/126
CPCG06F16/2433G06F16/24539G06F16/2465G06F40/126
Inventor 王宏志邹开发郑博梁栋齐志鑫
Owner 北京智通寰宇科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products