CN103258041A - TC57 view construction method and system based on general data access interface - Google Patents

TC57 view construction method and system based on general data access interface Download PDF

Info

Publication number
CN103258041A
CN103258041A CN201310196859XA CN201310196859A CN103258041A CN 103258041 A CN103258041 A CN 103258041A CN 201310196859X A CN201310196859X A CN 201310196859XA CN 201310196859 A CN201310196859 A CN 201310196859A CN 103258041 A CN103258041 A CN 103258041A
Authority
CN
China
Prior art keywords
node
view
incidence relation
type
nodal information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310196859XA
Other languages
Chinese (zh)
Other versions
CN103258041B (en
Inventor
钟清
刘玮
高雅
杨强
翟瑞聪
罗颖婷
梁成辉
王彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electric Power Research Institute of Guangdong Power Grid Co Ltd
Original Assignee
WEIHAI CIMSTECH CO Ltd
Electric Power Research Institute of Guangdong Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WEIHAI CIMSTECH CO Ltd, Electric Power Research Institute of Guangdong Power Grid Co Ltd filed Critical WEIHAI CIMSTECH CO Ltd
Priority to CN201310196859.XA priority Critical patent/CN103258041B/en
Publication of CN103258041A publication Critical patent/CN103258041A/en
Application granted granted Critical
Publication of CN103258041B publication Critical patent/CN103258041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a TC57 view construction method based on a general data access interface. The method comprises the steps that a TC57 view configuration file is loaded; a TC57 view comprises attribute nodes and type nodes; according to the configuration file, incidence relation of the attribute nodes and the type nodes is established, incidence relation between the type nodes is established; inquiring parameters sent by a request side are received; according to the inquiring parameters, the incidence relation of the attribute nodes and the type nodes and incidence relation between the type nodes, TC57 view node information is established; the node information comprises node types, node marks, node route names, node names and father node marks; after the TC57 view node information is transmitted to the request side, the internal memory occupied by the TC57 view node information is released. The invention further discloses a TC57 view construction system based on the general data access interface, TC57 view constructing speed can be improved, and system resource occupation is lowered.

Description

TC57 view construction method and system based on the conventional data access interface
Technical field
The present invention relates to the industrial system data and obtain the field, particularly relate to TC57 view construction method and system based on the conventional data access interface.
Background technology
TC57 views browsing interface is as DAIS(Data Acquisition from Industrial Systems, the industrial system data are obtained) service important component part, in the IEC61970-402 standard, define, refer to the netted incidence relation with the multi-to-multi in the CIM model, according to certain rule, be launched into the tree-shaped hierarchical structure of one-to-many, be used for supporting the views browsing interface of DAIS service, be HSDA(High Speed Data Access, the high-speed data visit), TSDA(Time Series Data Access, time series data visit) and GES(Generic Eventing and Subscription, general transaction record and subscription) the necessary assembly of server.Along with the popularization of IEC61970 series standard, varied for configuration, loading and the building mode of TC57 view, but use needs all being difficult to aspect program efficiency and the data volume that can bear satisfy comprehensively.Need be often many by the data that the service of TC57 views browsing provides.
At present, the method that makes up the TC57 view is: when program start, by GDA(Generic Data Access, conventional data visit) interface, go out all node instance and be buffered in the internal memory according to pattern or configuration querying and use for client query.This method must load all relevant with view model data, and speed is very slow; A large amount of model datas of being loaded are likely and are accessed to never, so the memory source waste is very serious.
Summary of the invention
The present invention program proposes TC57 view construction method and the system based on the conventional data access interface, can improve the speed that makes up the TC57 view, reduces taking of system resource.
The scheme that adopts:
TC57 view construction method based on the conventional data access interface comprises step:
Load TC57 view configuration file; Described TC57 view comprises: attribute node and type node;
According to described configuration file, set up the incidence relation of described attribute node and described type node, and set up the incidence relation between described type node;
Receive the query argument that the requesting party sends;
Incidence relation and the incidence relation between described type node according to described query argument, described attribute node and described type node make up TC57 view nodal information; Wherein, described nodal information comprises the sign, node path name, the title of node, the sign of father node of node types, node;
After described TC57 view nodal information is sent to described request side, discharge the internal memory that described TC57 view nodal information takies.
Another program:
TC57 view constructing system based on the conventional data access interface comprises:
Loading unit is used for loading TC57 view configuration file; Described TC57 view comprises: attribute node and type node;
First sets up the unit, is used for according to described configuration file, sets up the incidence relation of described attribute node and described type node, and sets up the incidence relation between described type node;
Receiving element is used for receiving the query argument that the requesting party sends;
Second sets up the unit, is used for making up TC57 view nodal information according to incidence relation and the incidence relation between described type node of described query argument, described attribute node and described type node; Wherein, described nodal information comprises the sign, node path name, the title of node, the sign of father node of node types, node;
The internal memory releasing unit after described TC57 view nodal information is sent to described request side, discharges the internal memory that described TC57 view nodal information takies.
Technology of the present invention loads TC57 view configuration file, according to described configuration file, sets up the incidence relation of described attribute node and described type node, and sets up the incidence relation between described type node; When receiving Query Information, according to incidence relation and the structure of the incidence relation between the described type node TC57 view nodal information of query argument, described attribute node and described type node; After TC57 view nodal information is sent to described request side, discharge the internal memory that TC57 view nodal information takies; Owing in the technology of the present invention, only load TC57 view configuration file, do not load a large amount of model datas, can improve the speed that makes up the TC57 view; TC57 view nodal information is interim the structure, and internal memory discharges at once behind the poll-final, so resource occupation is few.
Description of drawings
Fig. 1 is a schematic flow sheet of the inventive method;
Fig. 2 is a structural representation of apparatus of the present invention;
Fig. 3 is another structural representation of apparatus of the present invention.
Embodiment
Below the present invention is described in detail.
The present invention proposes a kind of TC57 view construction method based on the conventional data access interface, and it is implemented process flow diagram and please refer to Fig. 1, comprises step:
S1, loading TC57 view configuration file; The TC57 view comprises: attribute node and type node;
Concrete, TC57 view configuration file can be configured in the following manner and obtain:
By XML(Extensible Markup Language, extend markup language) file uses CIM(Common Information Model, Common Information Model) in class name, role name and the complete tree structure of attribute-name configuration.Configuration mainly is divided into three layers: ground floor is root node, and the class name among the CIM is configured to type under the root node; The second layer is type node, is configured as the role name among the CIM; The 3rd layer is property node, is configured as the attribute-name among the CIM, and property node is divided into subtype node and attribute node.The configuration of subtype node is divided into two parts, and first is concrete class name, and second portion is role's title that current type arrives this subtype association, and two parts separate with slash.
During concrete the loading, can carry out in the following manner:
After obtaining TC57 view configuration file, carry out basic grammer verification by the XML document parser, the back of upchecking is resolved TC57 view configuration file by the Command Line Parsing device, obtains disposing hierarchical tree.
S2, according to configuration file, set up the incidence relation of attribute node and type node, and set up the incidence relation between type node;
The query argument that S3, reception requesting party send;
S4, make up TC57 view nodal information according to the incidence relation of query argument, attribute node and type node and the incidence relation between type node;
Wherein, nodal information comprises the sign, node path name, the title of node, the sign of father node of node types, node;
Query argument comprises that pattern is browsed, node is browsed and item is browsed.It is the hierarchical structure of a browse view that pattern is browsed, and comprises node type, the attribute of hierarchical relationship and node up and down, does not comprise concrete data.Node is browsed the node type level that refers to according to scheme-tree definition, the example node of query type step by step, and can the given filter condition.It is the combination of node type and nodal community that item is browsed, the attribute node under the query case node.
Pattern is browsed the incidence relation according to the attribute node of setting up among the step S2 and type node, and the incidence relation between the type node of setting up, and makes up nodal information and returns to the requesting party.
Querying node is divided into two kinds: directly inquire about all child nodes and the descendants's node under node of inquiry and filtration by type under the node.
S5, TC57 view nodal information is sent to the requesting party after, discharge the internal memory that TC57 view nodal information takies.
Technology of the present invention loads TC57 view configuration file, according to described configuration file, sets up the incidence relation of described attribute node and described type node, and sets up the incidence relation between described type node; When receiving Query Information, according to incidence relation and the structure of the incidence relation between the described type node TC57 view nodal information of query argument, described attribute node and described type node; After TC57 view nodal information is sent to described request side, discharge the internal memory that TC57 view nodal information takies; Owing in the technology of the present invention, only load TC57 view configuration file, do not load a large amount of model datas, can improve the speed that makes up the TC57 view; TC57 view nodal information is interim the structure, and internal memory discharges at once behind the poll-final, so resource occupation is few.
Therein in embodiment, step S4 can but be not limited to be realized by following mode:
Obtain the destination node type in the query argument;
According to the incidence relation between destination node type, type node, set up the node path name;
According to the incidence relation of node path name, attribute node and type node and the incidence relation between type node, make up TC57 view nodal information.
In order further to improve the speed that makes up the TC57 view, above-described embodiment is done following improvement:
After making up the step of TC57 view nodal information according to the incidence relation of query argument, attribute node and type node and the incidence relation between type node, also comprise step:
Set up the two-way mapping relations of node identification and node path name;
The two-way mapping relations of buffer memory;
When receiving another query argument that the requesting party sends, and when from the two-way mapping relations of buffer memory, finding the required node path name of query argument, from the two-way mapping relations of buffer memory, obtain required node path name.
Because model data is not unalterable, the model data of some node correspondence can be modified or delete, so the two-way mapping relations of buffer memory must be revised thereupon.
The GDA interface provides the resource updates Event Service, subscribed to the resource updates event after, when model data has when upgrading operation, can notify the renewal operation of subscriber's data and the sign that is updated object.Utilize this mechanism, for deletion and the retouching operation of object, the cache information that this object identity points to is deleted from mapping table.
The invention allows for a kind of TC57 view constructing system based on the conventional data access interface, its structural representation please refer to Fig. 2, comprising:
Loading unit is used for loading TC57 view configuration file; Described TC57 view comprises: attribute node and type node;
First sets up the unit, is used for according to described configuration file, sets up the incidence relation of described attribute node and described type node, and sets up the incidence relation between described type node;
Receiving element is used for receiving the query argument that the requesting party sends;
Second sets up the unit, is used for making up TC57 view nodal information according to incidence relation and the incidence relation between described type node of described query argument, described attribute node and described type node; Wherein, described nodal information comprises the sign, node path name, the title of node, the sign of father node of node types, node;
The internal memory releasing unit after described TC57 view nodal information is sent to described request side, discharges the internal memory that described TC57 view nodal information takies.
Technology of the present invention loads TC57 view configuration file, according to described configuration file, sets up the incidence relation of described attribute node and described type node, and sets up the incidence relation between described type node; When receiving Query Information, according to incidence relation and the structure of the incidence relation between the described type node TC57 view nodal information of query argument, described attribute node and described type node; After TC57 view nodal information is sent to described request side, discharge the internal memory that TC57 view nodal information takies; Owing in the technology of the present invention, only load TC57 view configuration file, do not load a large amount of model datas, can improve the speed that makes up the TC57 view; TC57 view nodal information is interim the structure, and internal memory discharges at once behind the poll-final, so resource occupation is few.
Therein in embodiment, when the nodal information construction unit makes up TC57 view nodal information according to the incidence relation of query argument, attribute node and type node and the incidence relation between type node,
Obtain the destination node type in the query argument;
According to the incidence relation between destination node type, type node, set up the node path name;
According to the incidence relation of node path name, attribute node and type node and the incidence relation between type node, make up TC57 view nodal information.
In order further to improve the speed that makes up the TC57 view, above-described embodiment is done following improvement:
Please refer to Fig. 3, increase in the TC57 view constructing system based on the conventional data access interface: mapping relations are set up unit, buffer unit and acquiring unit;
After the nodal information construction unit makes up TC57 view nodal information,
Mapping relations are set up the two-way mapping relations that node identification and node path name are set up in the unit;
The two-way mapping relations of buffer unit buffer memory;
When receiving element receives another query argument that the requesting party sends, and nodal information is when finding the required node path name of query argument from the two-way mapping relations of buffer memory, and acquiring unit obtains required node path name from the two-way mapping relations of buffer memory.
Among Fig. 3 embodiment, the query argument that receives among another query argument of reception and Fig. 1, Fig. 2 does not receive simultaneously, perhaps the inconsistent query argument of content that receives simultaneously.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (6)

1. based on the TC57 view construction method of conventional data access interface, it is characterized in that, comprise step:
Load TC57 view configuration file; Described TC57 view comprises: attribute node and type node;
According to described configuration file, set up the incidence relation of described attribute node and described type node, and set up the incidence relation between described type node;
Receive the query argument that the requesting party sends;
Incidence relation and the incidence relation between described type node according to described query argument, described attribute node and described type node make up TC57 view nodal information; Wherein, described nodal information comprises the sign, node path name, the title of node, the sign of father node of node types, node;
After described TC57 view nodal information is sent to described request side, discharge the internal memory that described TC57 view nodal information takies.
2. the TC57 view construction method based on the conventional data access interface according to claim 1 is characterized in that,
The described step that makes up TC57 view nodal information according to incidence relation and the incidence relation between described type node of query argument, described attribute node and described type node comprises:
Obtain the destination node type in the described query argument;
According to the incidence relation between described destination node type, described type node, set up described node path name;
According to the incidence relation of described node path name, described attribute node and described type node and the incidence relation between described type node, make up described TC57 view nodal information.
3. the TC57 view construction method based on the conventional data access interface according to claim 1 and 2 is characterized in that,
Make up the step of TC57 view nodal information at the incidence relation between described incidence relation according to query argument, described attribute node and described type node and described type node after, also comprise step:
Set up the two-way mapping relations of described node identification and described node path name;
The described two-way mapping relations of buffer memory;
When receiving another query argument that the requesting party sends, and when from the described two-way mapping relations of buffer memory, finding the required node path name of described query argument, from the described two-way mapping relations of described buffer memory, obtain required node path name.
4. based on the TC57 view constructing system of conventional data access interface, it is characterized in that, comprising:
Loading unit is used for loading TC57 view configuration file; Described TC57 view comprises: attribute node and type node;
First sets up the unit, is used for according to described configuration file, sets up the incidence relation of described attribute node and described type node, and sets up the incidence relation between described type node;
Receiving element is used for receiving the query argument that the requesting party sends;
Second sets up the unit, is used for making up TC57 view nodal information according to incidence relation and the incidence relation between described type node of described query argument, described attribute node and described type node; Wherein, described nodal information comprises the sign, node path name, the title of node, the sign of father node of node types, node;
The internal memory releasing unit after described TC57 view nodal information is sent to described request side, discharges the internal memory that described TC57 view nodal information takies.
5. the TC57 view constructing system based on the conventional data access interface according to claim 4 is characterized in that,
Described second sets up the unit when making up TC57 view nodal information according to the incidence relation of query argument, described attribute node and described type node and the incidence relation between described type node,
Obtain the destination node type in the described query argument;
According to the incidence relation between described destination node type, described type node, set up described node path name;
According to the incidence relation of described node path name, described attribute node and described type node and the incidence relation between described type node, make up described TC57 view nodal information.
6. according to claim 4 or 5 described TC57 view constructing systems based on the conventional data access interface, it is characterized in that described TC57 view constructing system based on the conventional data access interface also comprises: the 3rd sets up unit, buffer unit and acquiring unit;
Described second set up cell formation TC57 view nodal information after,
The described the 3rd sets up the two-way mapping relations that described node identification and described node path name are set up in the unit;
The described two-way mapping relations of described buffer unit buffer memory;
When described receiving element receives another query argument that the requesting party sends, and when finding the required node path name of described query argument from the described two-way mapping relations of buffer memory, described acquiring unit obtains required node path name from the described two-way mapping relations of described buffer memory.
CN201310196859.XA 2013-05-23 2013-05-23 TC57 view construction method and system based on general data access interface Active CN103258041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310196859.XA CN103258041B (en) 2013-05-23 2013-05-23 TC57 view construction method and system based on general data access interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310196859.XA CN103258041B (en) 2013-05-23 2013-05-23 TC57 view construction method and system based on general data access interface

Publications (2)

Publication Number Publication Date
CN103258041A true CN103258041A (en) 2013-08-21
CN103258041B CN103258041B (en) 2015-07-22

Family

ID=48961958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310196859.XA Active CN103258041B (en) 2013-05-23 2013-05-23 TC57 view construction method and system based on general data access interface

Country Status (1)

Country Link
CN (1) CN103258041B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106537347A (en) * 2014-07-25 2017-03-22 思科技术公司 Distributing and processing streams over one or more networks for on-the-fly schema evolution

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009124958A1 (en) * 2008-04-11 2009-10-15 Abb Technology Ag Analysis of a substation automation system
CN102163232A (en) * 2011-04-18 2011-08-24 国电南瑞科技股份有限公司 SQL (Structured Query Language) interface implementing method supporting IEC61850 object query
CN102243660A (en) * 2011-07-18 2011-11-16 中兴通讯股份有限公司 Data access method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009124958A1 (en) * 2008-04-11 2009-10-15 Abb Technology Ag Analysis of a substation automation system
CN102163232A (en) * 2011-04-18 2011-08-24 国电南瑞科技股份有限公司 SQL (Structured Query Language) interface implementing method supporting IEC61850 object query
CN102243660A (en) * 2011-07-18 2011-11-16 中兴通讯股份有限公司 Data access method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106537347A (en) * 2014-07-25 2017-03-22 思科技术公司 Distributing and processing streams over one or more networks for on-the-fly schema evolution
CN106537347B (en) * 2014-07-25 2020-01-17 思科技术公司 System and method for distributing and processing streams

Also Published As

Publication number Publication date
CN103258041B (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN109299102B (en) HBase secondary index system and method based on Elastcissearch
WO2018036324A1 (en) Smart city information sharing method and device
CN106227800B (en) Storage method and management system for highly-associated big data
CN102968501B (en) A kind of general full-text search method
CN104376062B (en) A kind of synchronous method of heterogeneous database platform data
CN103473267B (en) Data store query method and system
CN111881223B (en) Data management method, device, system and storage medium
CN109936571B (en) Mass data sharing method, open sharing platform and electronic equipment
CN109845221A (en) Access control policy for service layer is synchronous
CN102169507A (en) Distributed real-time search engine
CN103605698A (en) Cloud database system used for distributed heterogeneous data resource integration
CN107800808A (en) A kind of data-storage system based on Hadoop framework
CN102799613A (en) Showing method and device for recently-used file
CN109739867A (en) A kind of industry metadata management method and system
CN104408044A (en) File access method and system
CN103838781A (en) Database access method and system
CN103034738A (en) Relevant database for managing heterogeneous unstructured data and method for creating and inquiring description information of unstructured data thereof
CN107229755A (en) A kind of distributed system optimization method and equipment
CN114443015A (en) Method for generating adding, deleting, modifying and checking service interface based on database metadata
CN102982034A (en) Internet website information search method and search system
CN103258041B (en) TC57 view construction method and system based on general data access interface
CN103294794A (en) On-line archiving and file access system
WO2015090194A1 (en) Method and apparatus for achieving device sharing
CN102760154A (en) Method supporting distributed transaction management in text information retrieval service
CN104463619A (en) LDAP-based internet product catalogue selling system and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8

Applicant after: ELECTRIC POWER RESEARCH INSTITUTE, GUANGDONG POWER GRID CO., LTD.

Applicant after: WeiHai CIMSTech Co., Ltd.

Address before: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8

Applicant before: Electrical Power Research Institute of Guangdong Power Grid Corporation

Applicant before: WeiHai CIMSTech Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: ELECTRICAL POWER RESEARCH INSTITUTE OF GUANGDONG POWER GRID CORPORATION TO: ELECTRIC POWER RESEARCH INSTITUTE OF GUANGDONG POWER GRID CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200409

Address after: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8

Patentee after: Electric Power Research Institute of Guangdong Power Grid Co.,Ltd.

Address before: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8

Co-patentee before: WEIHAI CIMSTECH Co.,Ltd.

Patentee before: Electric Power Research Institute of Guangdong Power Grid Co.,Ltd.

TR01 Transfer of patent right