CN111143449A - Data service method and device based on unified data model - Google Patents

Data service method and device based on unified data model Download PDF

Info

Publication number
CN111143449A
CN111143449A CN201911276195.1A CN201911276195A CN111143449A CN 111143449 A CN111143449 A CN 111143449A CN 201911276195 A CN201911276195 A CN 201911276195A CN 111143449 A CN111143449 A CN 111143449A
Authority
CN
China
Prior art keywords
data
service
unified
model
unified data
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
CN201911276195.1A
Other languages
Chinese (zh)
Other versions
CN111143449B (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.)
Beijing China Power Information Technology Co Ltd
State Grid Shaanxi Electric Power Co Ltd
Original Assignee
Beijing China Power Information Technology Co Ltd
State Grid Shaanxi Electric Power 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 Beijing China Power Information Technology Co Ltd, State Grid Shaanxi Electric Power Co Ltd filed Critical Beijing China Power Information Technology Co Ltd
Priority to CN201911276195.1A priority Critical patent/CN111143449B/en
Publication of CN111143449A publication Critical patent/CN111143449A/en
Application granted granted Critical
Publication of CN111143449B publication Critical patent/CN111143449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/067Enterprise or organisation modelling

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The scheme changes the traditional data management, access and service modes of a direct access database, a table, a record and a field based on a unified data model, acquires data object information and data object relation in the unified data model and storage mapping relation of a data object and a physical data table based on a unified data service interface of the unified data model, performs physical data table access, management maintenance and the like by taking the data object as a unit, and provides unified data management, access and analysis service.

Description

Data service method and device based on unified data model
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a data service method and device based on a unified data model.
Background
In order to effectively solve the problems of inconsistent data standards, incapability of sharing information resources, high difficulty in service integration and the like in the power grid information construction and application process, an SG-CIM3.0 enterprise unified data model is designed and constructed, so that a sound enterprise information resource management system is established, a data sharing and service cooperation mechanism is established, the level of information construction and application is improved, the application range of data assets is further expanded, the construction of a whole service unified data center is deepened, the data management and service capacity is improved, data integration and resource sharing are carried out, and the system of strip segmentation and division is broken.
SG-CIM3.0 belongs to an enterprise level data model, when the data model of each enterprise information system is designed based on SG-CIM3.0, the design of a system data architecture must conform to an SG-CIM3.0 enterprise unified data model, but enterprise data access and access are still independently designed and developed by respective systems and directly access physical data tables and fields of each system. For example, when business management of an enterprise changes, the unified data model of the enterprise needs to be adjusted or modified accordingly, and related business management information needs to be adjusted, updated and modified accordingly, so that adjustment and update of the business management information system become more frequent, and the risk that the business management information system is inconsistent with the database interface becomes greater and greater, thereby being difficult to adapt to the changing requirements of business management of the enterprise.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a data service method and apparatus based on a unified data model, so as to solve the problem caused by the direct access of a physical data table and a field by a conventional enterprise information system, and the disclosed technical solution is as follows:
in one aspect, the present application provides a data service method based on a unified data model, including:
receiving a data service request initiated by any business application scene through a unified data service interface;
analyzing the data service request to obtain a data service type, wherein the data service type comprises a data access service, a data management service, a data analysis service and a data model service;
acquiring a data object and a data object relation and a mapping relation between the data object and a physical data table in a full-service unified data center based on a unified data model service interface of the unified data model;
calling a corresponding service interface according to the data service type, and carrying out model operation or data operation on the unified data model or the full-service unified data center;
the corresponding service interfaces comprise a unified data model service interface, a unified data access service interface, a unified data management service interface or a unified data analysis service interface.
Optionally, performing a model operation or a data operation on the unified data model or the full-service unified data center based on a data object and a data object relationship in the unified data model and a mapping relationship between the data object and a physical data table in the full-service unified data center, including:
analyzing the data service request to obtain access information of a data object to be accessed;
acquiring data object information and a data object relation matched with the access information and mapping relation information between the data object and a physical data table in the full-service unified data center from a unified data model service interface of the unified data model;
and calling a unified data access service interface based on the mapping relation between the data object in the unified data model and the physical data table in the full-service unified data center and the data object relation, and acquiring data matched with the data object to be accessed from the physical data table of the full-service unified data center.
Optionally, performing a model operation or a data operation on the unified data model or the full-service unified data center based on a data object and a data object relationship in the unified data model and a mapping relationship between the data object and a physical data table in the full-service unified data center, including:
analyzing the data service request to obtain data model management maintenance information;
calling the unified data model service interface according to the data model management maintenance information, and adjusting or modifying the data object and the data object relation in the unified data model and the mapping relation between the data object and a physical data table in the full-service unified data center;
and calling the unified data management service interface based on the adjusted or modified unified data model, and correspondingly modifying or adjusting the physical data table of the full-service unified data center.
Optionally, performing a model operation or a data operation on the unified data model or the full-service unified data center based on a data object and a data object relationship in the unified data model and a mapping relationship between the data object and a physical data table in the full-service unified data center, including:
analyzing the data service request to obtain analysis statistical information;
and acquiring data object information matched with the analysis statistical information based on the data object relationship in the unified data model, summarizing and analyzing data based on the acquired data object and data object relationship, and returning analysis result data.
Optionally, performing a model operation or a data operation on the unified data model or the full-service unified data center based on a data object and a data object relationship in the unified data model and a mapping relationship between the data object and a physical data table in the full-service unified data center, including:
analyzing the data service request to obtain data maintenance information;
and calling a unified data access service interface based on the data object and the data object relation in the unified data model and the mapping relation between the data object and a physical data table in the full-service unified data center, and maintaining and updating the physical data table data matched with the data maintenance information in the full-service unified data center.
Optionally, the method further comprises:
obtaining an update request for model data in the unified data model;
calling a unified data model service interface according to the updating request, and updating information of model data in the unified data model, wherein the information of the model data comprises a theme domain, a data object and a data element, and at least one of corresponding relations among the theme domain, the data object and the data element;
wherein the update to the subject domain comprises a change to the subject domain;
updates to data objects include additions, modifications, and deletions of data objects;
updates to data elements include additions, modifications, and deletions of data elements.
Optionally, the method further comprises:
obtaining a query request for model data in the unified data model;
and acquiring the information of the data object matched with the query request from the unified data model, wherein the information of the data object comprises data object attributes and data object relations.
On the other hand, the application also provides a data service device based on the unified data model, which comprises:
the request initiating module is used for receiving a data service request initiated by any business application scene through a uniform data service interface;
the request analysis module is used for analyzing the data service request to obtain a data service type, wherein the data service type comprises a data access service, a data management service, a data analysis service and a data model service;
the request response module is used for acquiring a data object and a data object relation and a mapping relation between the data object and a physical data table in the full-service unified data center based on a unified data model service interface of the unified data model; calling a corresponding service interface to perform model operation or data operation on the unified data model or the full-service unified data center according to the data service type;
the corresponding service interfaces comprise a unified data model service interface, a unified data access service interface, a unified data management service interface or a unified data analysis service interface.
Optionally, the request response module includes:
the first analysis submodule is used for analyzing the data service request to obtain data model management maintenance information;
the data model updating submodule is used for calling the unified data model service interface according to the data model management maintenance information, and adjusting or modifying the data object and the data object relation in the unified data model and the mapping relation between the data object and the physical data table in the full-service unified data center;
and the data center updating submodule is used for calling the unified data management service interface based on the adjusted or modified unified data model and correspondingly modifying or adjusting a physical data table in the full-service unified data center.
Optionally, the request response module includes:
the second analysis submodule is used for analyzing the data service request to obtain the access information of the data object to be accessed;
the first obtaining submodule is used for calling a unified data model service interface of the unified data model, obtaining data object information and a data object relation which are matched with the access information, and obtaining mapping relation information between a data object and a physical data table in the full-service unified data center;
and the second obtaining submodule is used for calling a unified data access service interface based on the mapping relation between the data object in the unified data model and the physical data table in the full-service unified data center and the data object relation, and obtaining data matched with the data object to be accessed from the physical data table of the full-service unified data center.
In the data service method based on the unified data model provided by this embodiment, the conventional data management, access, and service modes of directly accessing the database, the table, the record, and the field are changed based on the unified data model, a unified data service interface based on the unified data model obtains data object information and a data object relationship in the unified data model, and a storage mapping relationship between the data object and the physical data table, and performs physical data table access, management, maintenance, and the like by using the data object as a unit, thereby providing unified data management, access, and analysis services.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a unified data service system architecture based on a unified data model according to an embodiment of the present application;
FIG. 2 is a flowchart of a data service method based on a unified data model according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data service device based on a unified data model according to an embodiment of the present application.
Detailed Description
According to the data service method based on the unified data model, the traditional data management, access and service modes of a database, a table, a record and a field are changed based on the unified data model (for example, SG-CIM4.0 model), data object information and a data object relation in the unified data model are obtained based on a unified data service interface of the unified data model, the storage mapping relation between the data object and a physical data table is obtained, the physical data table is accessed, managed and maintained by taking the data object as a unit, and unified data management, access and analysis services are provided.
In order to make the objects, 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 with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic diagram of a unified data service system architecture based on a unified data model according to an embodiment of the present application is shown.
The system is constructed under an application architecture of 'one platform, one system, multiple scenes and micro applications', wherein all data are concentrated in a full-service unified data center for storage, management and service, and service applications are not independent systems but are realized in a mode that application scenes converge various micro services or micro applications.
The unified data model service is a model management and service interface surrounding a unified data model (such as an SG-CIM4.0 model), the unified data management service, the unified data access service and the unified data analysis service are data which are centrally stored and managed surrounding a full-service unified data center, and various data management, access and analysis service interfaces based on the unified data model. In other words, the system is based on the unified data model, isolation valves of data call of micro applications and micro services and physical data stored in the full-service unified data center are constructed, and the data management, access and service modes of directly accessing databases, tables, records and fields in the traditional system structure are changed.
The technical scheme of the power grid unified data model based on the SG-CIM4.0 model is taken as an example in the embodiment of the application and is described in detail.
The power grid unified data model based on the SG-CIM4.0 model organizes and constructs a data model according to the mode of a theme domain, a data object and a data element.
The subject domain represents a business domain, for example, a subject domain in a grid company may include personnel, finance, materials, projects, grids, assets, customers, markets, security, integration, and the like.
The subject domain contains the domain data objects, which are composite information representations that must be understood by software, and which may be external entities, things, contingent events or events, roles, organizational units, places or structures, and the like. The data object contains data elements, or data attributes, which define the properties of the data object, for example, a transformer is a data object, and the manufacturer and the origin of the transformer are data elements of the data object.
The data objects can inherit other data objects, generalization, association, aggregation and combination relations can exist among the data objects, intra-domain data object relations can be constructed, and cross-domain data object relations can also be constructed.
A business application scenario may be represented by a series of data objects (intra-domain or cross-domain) and their relational links.
In the embodiment of the application, the core of the unified data model-based data service method is to construct a unified data service surrounding a unified data model.
The following will describe the data service process based on the system architecture shown in fig. 1 with reference to fig. 2:
referring to fig. 2, a flowchart of a unified data model-based data service method provided by an embodiment of the present application is shown, where the method is applied to the system shown in fig. 1. As shown in fig. 2, the method mainly includes the following steps:
s110, receiving a data service request initiated by any business application scene through a uniform data service interface.
The micro-service or micro-application of each application scenario can initiate a corresponding data service request based on the self-demand, and for different types of data service requests, the system can call different service interfaces (for example, a unified data access service, a unified data management service, a unified data analysis service, and a unified data model service) to execute the corresponding data service requests.
And S120, analyzing the data service request to obtain the data service type.
For convenience of description, data service requests are classified into different types according to their operations on data, for example, into a data access service, a data management service, a data analysis service, and a data model service.
The data model service system is used for realizing the data model analysis service, and the data access service system is used for realizing the data model analysis service.
And S130, performing model operation or data operation on the unified data model or the full-service unified data center based on the data object and the data object relation in the unified data model and the mapping relation between the data object and the physical data table in the full-service unified data center.
After the data service request is obtained based on the unified data service interface (i.e., the interface provided by the unified data service in fig. 1), the corresponding service (i.e., the unified data model service) is called according to the service type of the data service request, and the relationship between the data object and the data object of the unified data model, or the storage mapping relationship between the data object and the physical data table, is adjusted or maintained.
For example, when the enterprise business revolution adjustment causes the unified data model to change, the unified data model service interface (i.e., the interface provided by the unified data model service in fig. 1) is called, the unified data model is adaptively updated or adjusted, the unified data management service interface (i.e., the interface provided by the unified data management service in fig. 1) is called based on the data object in the unified data model and the storage mapping rule of the physical data table in the full-business unified data center, and the adjustment of the storage structure of the physical data table in the full-business unified data center is synchronously performed.
When micro applications or micro services in a business application scene need to access or update data, unified data model services are called through a unified data service interface, a data object and data object relation and a physical data table storage mapping relation between a model data object and a full-business unified data center are obtained, the data object is taken as a unit, storage, updating and retrieval of a physical data table of the full-business unified data center are carried out, and therefore unified data access, access and analysis services based on a unified data model are provided.
For an access scenario of a data object, S130 comprises the steps of:
analyzing the data service request to obtain access information of a data object to be accessed;
acquiring data object information and a data object relation matched with the access information and mapping relation information between the data object and a physical data table in the full-service unified data center from the unified data model;
and acquiring data matched with the data object to be accessed from the physical data table of the full-service unified data center based on the mapping relation between the data object in the unified data model and the physical data table of the full-service unified data center and the data object relation.
For the scenario of data model update, S130 includes:
analyzing the data service request to obtain data model management maintenance information;
according to the data model management maintenance information, calling a unified data model service interface, and adjusting or modifying a data object and a data object relation in the unified data model and a mapping relation between the data object and a physical data table of a full-service unified data center;
and calling a unified data management service interface based on the adjusted or modified unified data model, and correspondingly modifying or adjusting the physical data table of the full-service unified data center.
For the data object analysis scenario, S130 includes:
analyzing the data service request to obtain analysis statistical information;
and acquiring data object information matched with the analysis statistical information based on the data object relationship in the unified data model, summarizing and analyzing data based on the acquired data object and data object relationship, and returning analysis result data.
For a data object update maintenance scenario, S130 may include:
analyzing the data service request to obtain data maintenance information;
and calling a unified data access service interface based on the data object and the data object relation in the unified data model and the mapping relation between the data object and a physical data table of the full-service unified data center, and maintaining and updating the physical data table data matched with the data maintenance information in the full-service unified data center.
In addition, the data service method provided by the application can also realize maintenance of the model data and the model through a unified data model service interface provided by a unified data model:
obtaining an update request for model data in the unified data model;
calling a unified data model service interface according to the updating request, and updating information of model data in the unified data model, wherein the information of the model data comprises a theme domain, a data object and a data element, and at least one of corresponding relations among the theme domain, the data object and the data element;
wherein the update to the subject domain comprises a change to the subject domain;
updates to data objects include additions, modifications, and deletions of data objects;
updates to data elements include additions, modifications, and deletions of data elements.
And, the unified data model service interface provided through the unified data model can also realize the query service taking the data object as the unit, including the following steps specifically:
obtaining a query request for model data in the unified data model;
and acquiring information of the data object matched with the query request from the unified data model through unified data model service, wherein the information of the data object comprises data object attributes and data object relations.
In the data service method based on the unified data model provided by this embodiment, the conventional data management, access and service modes of directly accessing a database, a table, a record and a field are changed based on the unified data model, a unified data service interface based on the unified data model obtains data object information and a data object relationship in the unified data model, and a storage mapping relationship between a data object and a physical data table of a full-service unified data center, and performs physical data table access, management maintenance and the like by using the data object as a unit, thereby providing unified data management, access and analysis services.
The specific process of implementing the data service will be described in detail below with reference to the system architecture shown in fig. 1:
(1) unified data service
The unified data service receives a data service request initiated by any business application scene;
analyzing the data service request to obtain a data service type, wherein the data service type comprises a data access service, a data management service, a data analysis service and a data model service;
and calling service (including unified data model service, unified data access service, unified data management service and unified data analysis service) interfaces corresponding to the data service types according to the data service types.
(2) Unified data model service
The unified data model service provides a unified interface for unified data model maintenance management, including: the method comprises the steps of adding, modifying and deleting data elements, adding, modifying and deleting data objects, changing a theme domain, maintaining the corresponding relation among the theme domain, the data objects and the data elements and the like. Meanwhile, the maintenance of the internal relation of the data model is provided.
The unified data model service provides a query service taking a data object as a unit, can query the attribute of the data object through the name of the data object, can query an associated data object through the data object (query based on an object association relation), and can query an associated data object sequence and a data object relation through a service application scene.
(3) Unified data management service
The unified data management service realizes the maintenance and management of the physical data table in the full-service unified data center.
When the business change adjustment of the enterprise causes the change of the unified data model, the unified data model is managed and maintained correspondingly by calling the service interface of the unified data model. And then, calling a unified data management service interface according to the change of the unified data model, and maintaining and updating the physical data table in the full-service unified data center, so that the whole system can automatically adapt to the change of the unified data model caused by service change.
Specifically, the full-service unified data center is used for centrally storing business data of an enterprise, providing access, management and analysis services for the stored data, and specifically providing a maintenance and management function for physical data tables of a data processing domain and a data analysis domain through the data management domain. Therefore, when the unified data model changes, the unified data management service needs to correspondingly maintain and update the physical data tables in the data processing domain or the data analysis domain of the full-service unified data center.
(4) Unified data access service
The access to the physical data table of the full-service unified data center can be realized through the unified data access service.
1) Accessing data objects
When the micro application or the micro service needs to access a physical data table of the full-service unified data center, the micro application or the micro service calls the unified data access service, and a user only needs to input a data object name; the unified data access service calls a unified data model service to acquire a data object and a data object relation and a mapping relation between the data object and a physical data table in the full-service unified data center, so that access and retrieval of data stored in the physical data table of the full-service unified data center by taking the data object as a unit are realized;
2) accessing data objects and associated information
When micro application or micro service needs to access a data object and associated information of the full-service unified data center, a unified data model service interface is called through unified data access service to obtain the relationship between the data object and the mapping relationship between the data object and a physical data table of the full-service unified data center, so that the required object information and associated information of the physical data table in the full-service unified data center are obtained by taking the data object as a unit.
3) Data maintenance
When micro application or micro service needs to maintain data in a physical data table of the full-service unified data center, the data object is only needed to be used as input, a unified data model service interface is called through unified data access service, the relationship between the data object and the mapping relationship between the data object and the physical data table of the full-service unified data center are obtained, and therefore maintenance and updating of the data in the physical data table of the full-service unified data center by taking the data object as a unit are achieved when the dependency and association relationship of the data object are guaranteed.
(5) Unified data analytics service
And the data analysis domain of the full-service unified data center realizes the statistical analysis of various index data according to different dimensions through unified data analysis service.
When the micro application or the micro service needs to perform statistical analysis on data in the full-service unified data center, the unified data analysis service acquires the relationships of generalization, association, aggregation, combination and the like of the data objects by calling the unified data model service. And further, the statistical dimensionality or the statistical index is expanded based on the data object relations during data analysis, so that the accuracy and the integrity of the data analysis are guaranteed.
Corresponding to the data service method embodiment based on the unified data model, the application also provides a data service device embodiment based on the unified data model.
Referring to fig. 3, a schematic structural diagram of a data service device based on a unified data model according to an embodiment of the present application is shown, where the data service device includes: a request initiation module 110, a request parsing module 120, and a request response module 130.
The request initiating module 110 is configured to receive a data service request initiated by any service application scenario through the unified data service interface.
The request parsing module 120 is configured to parse the data service request to obtain a data service type, where the data service type includes a data access service, a data management service, a data analysis service, and a data model service.
A request response module 130, configured to obtain, based on a unified data model service interface of the unified data model, a data object and a data object relationship, and a mapping relationship between the data object and a physical data table in the full-service unified data center; and calling a corresponding service interface to perform model operation or data operation on the unified data model or the physical data table of the full-service unified data center according to the data service type.
The corresponding service interfaces comprise a unified data model service interface, a unified data access service interface, a unified data management service interface or a unified data analysis service interface.
For a scenario of data model update, the request response module includes:
the first analysis submodule is used for analyzing the data service request to obtain data model management maintenance information;
the data model updating submodule is used for calling a unified data model service interface according to the data model management maintenance information, and adjusting or modifying the data object and the data object relation in the unified data model and the mapping relation between the data object and a physical data table of the full-service unified data center;
and the data center updating submodule is used for calling a unified data management service interface based on the adjusted or modified unified data model and correspondingly modifying or adjusting a physical data table corresponding to the full-service unified data center.
For a data object access scenario, the request response module includes:
the second analysis submodule is used for analyzing the data service request to obtain the access information of the data object to be accessed;
the first obtaining submodule is used for calling a unified data model service interface of the unified data model, obtaining data object information and a data object relation which are matched with the access information, and obtaining mapping relation information between a data object and a physical data table in the full-service unified data center;
and the second acquisition submodule is used for calling a unified data access service interface based on the data object and the data object relationship in the unified data model and the mapping relationship between the data object and a physical data table of the full-service unified data center, and acquiring data matched with the data object to be accessed from the physical data table of the full-service unified data center.
For a data object analysis scenario, the request response module is specifically configured to:
analyzing the data service request to obtain analysis statistical information;
and acquiring data object information matched with the analysis statistical information based on the data object relationship in the unified data model, summarizing and analyzing data based on the acquired data object and data object relationship, and returning analysis result data. .
Analyzing the data service request to obtain data maintenance information;
and calling a unified data access service interface based on the data object and the data object relation in the unified data model and the mapping relation between the data object and the physical data table of the full-service unified data center, and maintaining and updating the physical data table data matched with the data maintenance information in the full-service unified data center.
In addition, the data service device provided by the application can also realize maintenance of the model data and the model through a unified data model service interface:
obtaining an update request for model data in the unified data model;
calling a unified data model service interface according to the updating request, and updating information of model data in the unified data model, wherein the information of the model data comprises a theme domain, a data object and a data element, and at least one of corresponding relations among the theme domain, the data object and the data element;
wherein the update to the subject domain comprises a change to the subject domain;
updates to data objects include additions, modifications, and deletions of data objects;
updates to data elements include additions, modifications, and deletions of data elements.
And the unified data model service interface provided by the unified data model can also realize the model query service taking the data object as a unit, and the method specifically comprises the following steps:
obtaining a query request for model data in the unified data model;
and calling a unified data model service interface, and acquiring the information of the data object matched with the query request from the unified data model, wherein the information of the data object comprises data object attributes and data object relations.
In the data service device based on the unified data model provided by this embodiment, the conventional data management, access and service modes of directly accessing the database, the table, the record and the field are changed based on the unified data model, the unified data service interface based on the unified data model obtains the data object information and the data object relationship in the unified data model, and the storage mapping relationship between the data object and the physical data table of the full-service unified data center, and performs physical data table access, management maintenance and the like by using the data object as a unit, thereby providing unified data management, access and analysis services.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The steps in the method of the embodiments of the present application may be sequentially adjusted, combined, and deleted according to actual needs.
The device and the modules and sub-modules in the terminal in the embodiments of the present application can be combined, divided and deleted according to actual needs.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal, apparatus and method may be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of a module or a sub-module is only one logical division, and there may be other divisions when the terminal is actually implemented, for example, a plurality of sub-modules or modules may be combined or integrated into another module, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules or sub-modules described as separate parts may or may not be physically separate, and parts that are modules or sub-modules may or may not be physical modules or sub-modules, may be located in one place, or may be distributed over a plurality of network modules or sub-modules. Some or all of the modules or sub-modules can be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional module or sub-module in the embodiments of the present application may be integrated into one processing module, or each module or sub-module may exist alone physically, or two or more modules or sub-modules may be integrated into one module. The integrated modules or sub-modules may be implemented in the form of hardware, or may be implemented in the form of software functional modules or sub-modules.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A data service method based on a unified data model is characterized by comprising the following steps:
receiving a data service request initiated by any business application scene through a unified data service interface;
analyzing the data service request to obtain a data service type, wherein the data service type comprises a data access service, a data management service, a data analysis service and a data model service;
acquiring a data object and a data object relation and a mapping relation between the data object and a physical data table in a full-service unified data center based on a unified data model service interface of the unified data model;
calling a corresponding service interface according to the data service type, and carrying out model operation or data operation on the unified data model or the full-service unified data center;
the corresponding service interfaces comprise a unified data model service interface, a unified data access service interface, a unified data management service interface or a unified data analysis service interface.
2. The method of claim 1, wherein performing model operations or data operations on the unified data model or the full-service unified data center based on data objects and data object relationships in the unified data model and mapping relationships between data objects and physical data tables in the full-service unified data center comprises:
analyzing the data service request to obtain access information of a data object to be accessed;
acquiring data object information and a data object relation matched with the access information and mapping relation information between the data object and a physical data table in the full-service unified data center from a unified data model service interface of the unified data model;
and calling a unified data access service interface based on the mapping relation between the data object in the unified data model and the physical data table in the full-service unified data center and the data object relation, and acquiring data matched with the data object to be accessed from the physical data table of the full-service unified data center.
3. The method of claim 1, wherein performing model operations or data operations on the unified data model or the full-service unified data center based on data objects and data object relationships in the unified data model and mapping relationships between data objects and physical data tables in the full-service unified data center comprises:
analyzing the data service request to obtain data model management maintenance information;
calling the unified data model service interface according to the data model management maintenance information, and adjusting or modifying the data object and the data object relation in the unified data model and the mapping relation between the data object and a physical data table in the full-service unified data center;
and calling the unified data management service interface based on the adjusted or modified unified data model, and correspondingly modifying or adjusting the physical data table of the full-service unified data center.
4. The method of claim 1, wherein performing model operations or data operations on the unified data model or the full-service unified data center based on data objects and data object relationships in the unified data model and mapping relationships between data objects and physical data tables in the full-service unified data center comprises:
analyzing the data service request to obtain analysis statistical information;
and acquiring data object information matched with the analysis statistical information based on the data object relationship in the unified data model, summarizing and analyzing data based on the acquired data object and data object relationship, and returning analysis result data.
5. The method of claim 1, wherein performing model operations or data operations on the unified data model or the full-service unified data center based on data objects and data object relationships in the unified data model and mapping relationships between data objects and physical data tables in the full-service unified data center comprises:
analyzing the data service request to obtain data maintenance information;
and calling the unified data access service interface based on the data object and the data object relation in the unified data model and the mapping relation between the data object and the physical data table in the full-service unified data center, and maintaining and updating the physical data table data matched with the data maintenance information in the full-service unified data center.
6. The method of claim 1, further comprising:
obtaining an update request for model data in the unified data model;
calling the unified data model service interface according to the updating request, and updating the information of the model data in the unified data model, wherein the information of the model data comprises a theme domain, a data object and a data element and at least one of corresponding relations among the theme domain, the data object and the data element;
wherein the update to the subject domain comprises a change to the subject domain;
updates to data objects include additions, modifications, and deletions of data objects;
updates to data elements include additions, modifications, and deletions of data elements.
7. The method of claim 1, further comprising:
obtaining a query request for model data in the unified data model;
and acquiring the information of the data object matched with the query request from the unified data model, wherein the information of the data object comprises data object attributes and data object relations.
8. A data service apparatus based on a unified data model, comprising:
the request initiating module is used for receiving a data service request initiated by any business application scene through a uniform data service interface;
the request analysis module is used for analyzing the data service request to obtain a data service type, wherein the data service type comprises a data access service, a data management service, a data analysis service and a data model service;
the request response module is used for acquiring a data object and a data object relation and a mapping relation between the data object and a physical data table in the full-service unified data center based on a unified data model service interface of the unified data model; calling a corresponding service interface to perform model operation or data operation on the unified data model or the full-service unified data center according to the data service type;
the corresponding service interfaces comprise a unified data model service interface, a unified data access service interface, a unified data management service interface or a unified data analysis service interface.
9. The apparatus of claim 8, wherein the request response module comprises:
the first analysis submodule is used for analyzing the data service request to obtain data model management maintenance information;
the data model updating submodule is used for calling the unified data model service interface according to the data model management maintenance information, and adjusting or modifying the data object and the data object relation in the unified data model and the mapping relation between the data object and the physical data table in the full-service unified data center;
and the data center updating submodule is used for calling the unified data management service interface based on the adjusted or modified unified data model and correspondingly modifying or adjusting a physical data table in the full-service unified data center.
10. The apparatus of claim 8, wherein the request response module comprises:
the second analysis submodule is used for analyzing the data service request to obtain the access information of the data object to be accessed;
the first obtaining submodule is used for calling a unified data model service interface of the unified data model, obtaining data object information and a data object relation which are matched with the access information, and obtaining mapping relation information between a data object and a physical data table in the full-service unified data center;
and the second obtaining submodule is used for calling a unified data access service interface based on the mapping relation between the data object in the unified data model and the physical data table in the full-service unified data center and the data object relation, and obtaining data matched with the data object to be accessed from the physical data table of the full-service unified data center.
CN201911276195.1A 2019-12-12 2019-12-12 Data service method and device based on unified data model Active CN111143449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911276195.1A CN111143449B (en) 2019-12-12 2019-12-12 Data service method and device based on unified data model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911276195.1A CN111143449B (en) 2019-12-12 2019-12-12 Data service method and device based on unified data model

Publications (2)

Publication Number Publication Date
CN111143449A true CN111143449A (en) 2020-05-12
CN111143449B CN111143449B (en) 2023-05-30

Family

ID=70518244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911276195.1A Active CN111143449B (en) 2019-12-12 2019-12-12 Data service method and device based on unified data model

Country Status (1)

Country Link
CN (1) CN111143449B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949763A (en) * 2005-10-11 2007-04-18 北京航空航天大学 Shared message server system
CN101067814A (en) * 2007-05-10 2007-11-07 浪潮集团山东通用软件有限公司 Mapping conversion method between data access level Xml format data and relational data
CN101354696A (en) * 2008-09-08 2009-01-28 北京航空航天大学 Data integration and application service system based on electric communication field sharing information model
CN104754045A (en) * 2015-03-23 2015-07-01 国网辽宁省电力有限公司信息通信分公司 Data center service and application interface management platform
CN106202452A (en) * 2016-07-15 2016-12-07 复旦大学 The uniform data resource management system of big data platform and method
CN109523423A (en) * 2018-11-28 2019-03-26 中国海洋石油集团有限公司 A kind of application system generation method, device, equipment and storage medium
CN110008296A (en) * 2019-03-26 2019-07-12 贵州图智信息技术有限公司 A kind of system and method for fast construction geographic information data application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949763A (en) * 2005-10-11 2007-04-18 北京航空航天大学 Shared message server system
CN101067814A (en) * 2007-05-10 2007-11-07 浪潮集团山东通用软件有限公司 Mapping conversion method between data access level Xml format data and relational data
CN101354696A (en) * 2008-09-08 2009-01-28 北京航空航天大学 Data integration and application service system based on electric communication field sharing information model
CN104754045A (en) * 2015-03-23 2015-07-01 国网辽宁省电力有限公司信息通信分公司 Data center service and application interface management platform
CN106202452A (en) * 2016-07-15 2016-12-07 复旦大学 The uniform data resource management system of big data platform and method
CN109523423A (en) * 2018-11-28 2019-03-26 中国海洋石油集团有限公司 A kind of application system generation method, device, equipment and storage medium
CN110008296A (en) * 2019-03-26 2019-07-12 贵州图智信息技术有限公司 A kind of system and method for fast construction geographic information data application

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
毛建强等: "基于对象映射的数据访问服务", 《指挥信息系统与技术》 *
江樱;黄慧;卢文达;骆伟艺;: "基于大数据技术的电力全业务数据运营管理平台研究", 自动化技术与应用 *
陈建等: "基于全业务统一数据中心统一模型管理技术应用", 《电网技术》 *

Also Published As

Publication number Publication date
CN111143449B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US20200327107A1 (en) Data Processing Method, Apparatus, and System
US9317557B2 (en) Answering relational database queries using graph exploration
US8700560B2 (en) Populating a multi-relational enterprise social network with disparate source data
US9678835B2 (en) Plural architecture master data management
US10127272B2 (en) Modifying a database query
CN106126569A (en) A kind of rapid data method of servicing and system
CN110032886A (en) The method and apparatus of access authorization for resource management
CN107103011B (en) Method and device for realizing terminal data search
US9652740B2 (en) Fan identity data integration and unification
US11068402B2 (en) Externalized configurations and caching solution
US11150996B2 (en) Method for optimizing index, master database node and subscriber database node
CN111381820A (en) Method and device for automatically generating API based on GUI
US10649964B2 (en) Incorporating external data into a database schema
US20140075028A1 (en) Centralized Data Provisioning
CN112905600A (en) Data query method and device, storage medium and electronic equipment
US8694559B2 (en) Using database content for multiple business data systems connected to one database
Cruz et al. Assessing nosql databases for telecom applications
CN106326295B (en) Semantic data storage method and device
CN107463618B (en) Index creating method and device
CN111143449A (en) Data service method and device based on unified data model
US10635681B2 (en) Forming data responsive to a query
US10467193B1 (en) Real-time ad hoc querying of data records
US10353886B2 (en) Big data computing architecture
US11860883B2 (en) System and method for implementing data usage analysis for database systems
CN115017185A (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant