A Red Tide Data Query Method Based on Graph Model Construction
A data query and graph model technology, applied in the field of red tide data management, can solve the problems that the storage model cannot provide accurate information for red tide forecasters, and the occurrence process is complicated, so as to reduce the economy and ecology, and improve the speed and accuracy.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] The specific embodiments provided by the present invention will be described in detail below in conjunction with the accompanying drawings.
[0054] Please refer to figure 1 , a red tide data query method based on graph model construction of the present invention includes 2 parts:
[0055] 1. Red tide data graph model, that is, the construction of RTGraph.
[0056] 2. Red tide data query language, that is, the construction of RTQL language.
[0057] The definition of the red tide data graph model is: RTGraph: undirected graph G=(V(G), E(G), L(G)). V(G)={vi, i=1, 2,...} is a collection of |V| pieces of red tide data. E(G)={e ij , i, j=1, 2, ..., |V|; i≠j; e ij = e ji} is v i and v j A collection of edges between.
[0058] L(G) is the set of attributes of V(G).
[0059] The red tide data graph model RTGraph includes three kinds of data: point data 11, edge data 12, red tide edge data 13; the point data 11 includes: stage (stage), date (date), and these descripti...
example
[0083] An example of implementing a query in RTGraph, the RTQL statement is as follows:
[0084]
[0085] 23. UPDATE update statement: The update statement is used to modify the data in the red tide graph model.
[0086] BNF definition:
[0087] ::=
[0088] UPDATE
[0089] Example update statement:
[0090] Modify the date attribute of the point with id=6 to "20160403".
[0091]
[0092] 24. INSERT insert statement: the insert statement is used to insert points into the red tide map model.
[0093] BNF definition:
[0094] ::=
[0095] INSERT
[0096] Insert statement example:
[0097] Add an attribute of date="20160403" to the point with id=6.
[0098]
[0099] First use the FIND statement to find the point with id=6, and then use the INSERT statement to insert the attribute date="20160403".
[0100] 25. DELETE delete statement: the delete statement is used to delete the data in the graph model.
[0101] BNF definition:
[0102] ::=DELETE
[0103] Del...
Embodiment 2
[0120] Embodiment 2 is an example of further application based on the method of embodiment 1.
[0121] Example 2 uses the monitoring data of the Yangtze River port from 2012 to May 2014 to conduct experiments, and stores them in the RTGraph defined in this paper according to the rules. A set of queries is designed to verify the feasibility of RTGraph and RTQL in this paper.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


