CN110287223A - Information storage means and device, electronic device and storage medium - Google Patents
Information storage means and device, electronic device and storage medium Download PDFInfo
- Publication number
- CN110287223A CN110287223A CN201910551516.8A CN201910551516A CN110287223A CN 110287223 A CN110287223 A CN 110287223A CN 201910551516 A CN201910551516 A CN 201910551516A CN 110287223 A CN110287223 A CN 110287223A
- Authority
- CN
- China
- Prior art keywords
- entity
- meta
- model
- metadata
- relationship
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
- G06F16/24573—Query processing with adaptation to user needs using data annotations, e.g. user-defined metadata
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/288—Entity relationship models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of information storage means and devices, electronic device and storage medium, this method comprises: establishing the meta-model entity for storing the parameter information of meta-model, wherein meta-model is the model for defining metadata;By instantiating meta-model entity, the metadata entity for storing metadata information is obtained;Opening relationships object;Establish label object, wherein label object is for identifying at least one of: meta-model entity, metadata entity, relationship object;Wherein, the relationship object of foundation is used to indicate at least one of: the first connection relationship between multiple meta-model entities, the second connection relationship between multiple metadata entities, third connection relationship between meta-model entity and label object, the 4th connection relationship between metadata entity and label object, the 5th connection relationship between meta-model entity and metadata entity;Use chart database storage meta-model entity, metadata entity, relationship object and label object.
Description
Technical field
The present invention relates to the communications fields, in particular to a kind of information storage means and device, electronic device and deposit
Storage media.
Background technique
Metadata, also known as broker data are the data for describing data.With information-based development, metadata
Scale is increasing, in the related technology, directly stores metadata in database, and this storage mode efficiency is lower, mode
It is single, and the metadata of storage cannot effectively be managed.
For the problems such as in the related technology, the storage efficiency of metadata and its relevant information is lower, not yet propose effective
Technical solution.
Summary of the invention
The embodiment of the invention provides a kind of information storage means and devices, electronic device and storage medium, at least
Solve the problems, such as that the storage efficiency of metadata in the related technology and its relevant information is lower.
According to one embodiment of present invention, a kind of information storage means are provided, comprising:
Establish the meta-model entity for storing the parameter information of meta-model, wherein the meta-model is for defining member
The model of data;
By instantiating the meta-model entity, the metadata entity for storing metadata information is obtained;
Opening relationships object;
Establish label object, wherein the label object is for identifying at least one of: the meta-model entity, institute
State metadata entity, the relationship object;Wherein, the relationship object of foundation is used to indicate at least one of: Duo Gesuo
State the first connection relationship between meta-model entity, the second connection relationship between multiple metadata entities, the member mould
Third connection relationship between type entity and the label object, the between the metadata entity and the label object the 4th
Connection relationship, the 5th connection relationship between the meta-model entity and the metadata entity;
The meta-model entity, the metadata entity, the relationship object and the mark are stored using chart database
Sign object:
Optionally, meta-model entity of the foundation for storing the parameter information of meta-model includes at least one of:
The meta-model entity of the parameter information of library model for storing data is established, the parameter information of table model for storing data is established
Meta-model entity, establish the meta-model entity for storing the parameter information of column model;It is described to pass through instantiation first mould
Type entity, the metadata entity obtained for storing metadata information includes at least one of: by instantiating first mould
Type entity obtains the database instance for storing metadata information, is obtained by instantiating the meta-model entity for storing
The data table example of metadata information obtains the reality of the column for storing metadata information by instantiating the meta-model entity
Example;First connection relationship includes: combination or association, and second connection relationship includes: combination or association, and the third connects
Relationship is connect as polymerization, the 4th connection relationship is polymerization, and the 5th connection relationship is instantiation.
Optionally, the meta-model entity and the metadata entity include following information: globally unique identifier, first
Attribute and the second attribute;The relationship object includes following information: globally unique identifier, relationship type and third attribute and
4th attribute.
Optionally, the chart database is Neo4j chart database, wherein described to store first mould using chart database
Type entity, the metadata entity, the relationship object and the label object include: to use the Neo4j chart database
In node type store the globally unique identifier of the meta-model entity and the globally unique identifier of the metadata entity;
The first attribute of the meta-model entity and the second attribute, described is stored using the attribute type in the Neo4j chart database
The first attribute and the second attribute of metadata entity and the third attribute and the 4th attribute of the relationship object;Using described
Relationship type in Neo4j chart database stores globally unique identifier and the relationship type of the relationship object;Using described
Tag types in Neo4j chart database store the label object.
According to another embodiment of the present invention, a kind of information-storing device is additionally provided, comprising:
First establishes module, for establishing the meta-model entity of the parameter information for storing meta-model, wherein the member
Model is the model for defining metadata;
Module is instantiated, for instantiating the meta-model entity, the metadata obtained for storing metadata information is real
Body;
Second establishes module, is used for opening relationships object;
Third establishes module, for establishing label object, wherein the label object is for identifying at least one of:
The meta-model entity, the metadata entity, the relationship object;Wherein, the relationship object of foundation be used to indicate with
It is at least one lower: the first connection relationship between multiple meta-model entities, second between multiple metadata entities
Connection relationship, the third connection relationship between the meta-model entity and the label object, the metadata entity with it is described
The 4th connection relationship between label object, the 5th connection relationship between the meta-model entity and the metadata entity;
Memory module, for using chart database to store the meta-model entity, the metadata entity, the relationship pair
As and the label object.
Optionally, described first to establish module include at least one of: first establishing unit, for establishing for storing
The meta-model entity of the parameter information of database model;Second establishes unit, for establishing the ginseng of table model for storing data
The meta-model entity of number information;Third establishes unit, for establishing the meta-model entity of the parameter information for storing column model;
The instantiation module includes at least one of: the first instantiating unit is used for instantiating the meta-model entity
In the database instance of storage metadata information;Second instantiating unit is used for for instantiating the meta-model entity
Store the data table example of metadata information;Third instantiating unit is obtained for instantiating the meta-model entity for depositing
Store up the column example of metadata information;Wherein, first connection relationship includes: combination or association, the second connection relationship packet
Include: combination or association, the third connection relationship are polymerization, and the 4th connection relationship is polymerization, the 5th connection relationship
For instantiation.
Optionally, the meta-model entity and the metadata entity include following information: globally unique identifier, first
Attribute and the second attribute;The relationship object includes following information: globally unique identifier, relationship type and third attribute and
4th attribute.
Optionally, the chart database is Neo4j chart database, wherein the memory module is for passing through following steps
The meta-model entity, the metadata entity, the relationship object and the label object are stored using chart database: being made
With the node type in the Neo4j chart database store the meta-model entity globally unique identifier and the metadata
The globally unique identifier of entity;The first of the meta-model entity is stored using the attribute type in the Neo4j chart database
The third attribute of attribute and the second attribute, the first attribute of the metadata entity and the second attribute and the relationship object
With the 4th attribute;Using the relationship type in the Neo4j chart database store the relationship object globally unique identifier and
Relationship type;The label object is stored using the tag types in the Neo4j chart database.
According to another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute any of the above-described information storage means when operation.
According to another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided,
In, be stored with computer program in the memory, the processor be arranged to run the computer program to execute on
State any one information storage means.
Through the invention, due to establishing the meta-model entity for storing the parameter information of meta-model, wherein the member mould
Type is the model for defining metadata;By instantiating the meta-model entity, the member for storing metadata information is obtained
Data entity;Opening relationships object;Establish label object, wherein the label object is for identifying at least one of: described
Meta-model entity, the metadata entity, the relationship object;, the relationship object of foundation be used to indicate it is following at least it
One: the first connection relationship between multiple meta-model entities, the second connection relationship between multiple metadata entities,
Third connection relationship between the meta-model entity and the label object, the metadata entity and the label object it
Between the 4th connection relationship, the 5th connection relationship between the meta-model entity and the metadata entity;Use diagram data
Library stores the meta-model entity, the metadata entity, the relationship object and the label object.Due to establishing member
Model entity, metadata entity, relationship object and label object, and meta-model entity, metadata entity, relationship object and mark
Label store corresponding information respectively, and use chart database storage meta-model entity, metadata entity, relationship object and label
Object, by adopting the above technical scheme, solve metadata in the related technology storage efficiency it is lower the problems such as, and then reached energy
Enough effects that efficient storage is carried out to metadata and relevant information.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the information storage means of the embodiment of the present invention;
Fig. 2 is the structural block diagram of information-storing device according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of information storage means according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
The embodiment of the invention provides a kind of information storage means, Fig. 1 is the information storage side according to the embodiment of the present invention
The flow chart of method, as shown in Figure 1, comprising:
Step S102 establishes the meta-model entity for storing the parameter information of meta-model, wherein the meta-model is to use
In the model for defining metadata;
Step S104 obtains the metadata entity for storing metadata information by instantiating the meta-model entity;
Step S106, opening relationships object;
Step S108, establishes label object, wherein the label object is for identifying at least one of: the member mould
Type entity, the metadata entity, the relationship object;, the relationship object of foundation is used to indicate at least one of: more
The first connection relationship between a meta-model entity, the second connection relationship between multiple metadata entities are described
Third connection relationship between meta-model entity and the label object, between the metadata entity and the label object
4th connection relationship, the 5th connection relationship between the meta-model entity and the metadata entity;
Step S100, using chart database store the meta-model entity, the metadata entity, the relationship object with
And the label object.
Through the invention, due to establishing the meta-model entity for storing the parameter information of meta-model, wherein the member mould
Type is the model for defining metadata;By instantiating the meta-model entity, the member for storing metadata information is obtained
Data entity;Opening relationships object;Establish label object, wherein the label object is for identifying at least one of: described
Meta-model entity, the metadata entity, the relationship object;Establish the relationship object be used to indicate it is following at least it
One: the first connection relationship between multiple meta-model entities, the second connection relationship between multiple metadata entities,
Third connection relationship between the meta-model entity and the label object, the metadata entity and the label object it
Between the 4th connection relationship, the 5th connection relationship between the meta-model entity and the metadata entity;Use diagram data
Library stores the meta-model entity, the metadata entity, the relationship object and the label object.Due to establishing member
Model entity, metadata entity, relationship object and label object, and meta-model entity, metadata entity, relationship object and mark
Label store corresponding information respectively, and use chart database storage meta-model entity, metadata entity, relationship object and label
Object, by adopting the above technical scheme, solve metadata in the related technology storage efficiency it is lower the problems such as, and then reached energy
Enough effects that efficient storage is carried out to metadata and relevant information.
In an alternative embodiment of the invention, the meta-model entity established for storing the parameter information of meta-model
Including at least one of: establishing the meta-model entity of the parameter information of library model for storing data, establish for storing number
According to the meta-model entity of the parameter information of table model, the meta-model entity for storing the parameter information of column model is established.
In embodiments of the present invention, meta-model may include at least one of: library model (Database model), table
Model (Table model), column model (Column model), different types of meta-model defines different types of metadata.
For example, library model defines the metadata of type of database, table model defines the metadata of data table types, the definition of column model
The metadata of column types.When establishing meta-model entity, corresponding meta-model entity can be established according to the type of meta-model
To store the parameter information of corresponding meta-model, for example, the meta-model entity established can be used for storing meta-model, i.e., by first mould
Type is stored in meta-model entity.For example, establishing the parameter of library model for storing data for the meta-model of library types of models
The meta-model entity of information;For the meta-model of table model, the meta-model of the parameter information of table model for storing data is established
Entity;For column model, the meta-model entity metadata entity of the parameter information for storing column model is established for storing member
Data information.
It is described by instantiating the meta-model entity in an alternative embodiment of the invention, it obtains for storing member
The metadata entity of data information includes at least one of: being obtained by instantiating the meta-model entity for storing first number
It is believed that the database instance of breath, obtains the reality of the tables of data for storing metadata information by instantiating the meta-model entity
Example obtains the column example for storing metadata information by instantiating the meta-model entity.
By being instantiated to meta-model entity, available database instance, data table example or column example, to divide
The metadata of the metadata of other storing data library type, the metadata of data table types or column type.
In an alternative embodiment of the invention, first connection relationship includes: combination or association, second connection
Relationship includes: combination or association, and the third connection relationship is polymerization, and the 4th connection relationship is polymerization, and the described 5th connects
Relationship is connect as instantiation.
In embodiments of the present invention, between meta-model entity, between metadata entity, meta-model entity and label object it
Between and metadata entity and label object between there is connection relationship, by opening relationships object come than indicating these companies
Connect relationship.According to the difference of connecting object, connection relationship can be divided into: polymerization, instantiation combine and are associated with four kinds of relation objects
Type.Connection relationship between multiple meta-model entities can be combination or association, the connection relationship between multiple metadata entities
It can be combination or association, the connection relationship between meta-model entity and metadata entity is instantiation, meta-model entity and mark
Connection relationship between label object is polymerization, and the connection relationship between metadata entity and label object is to polymerize.
In an alternative embodiment of the invention, the meta-model entity and the metadata entity include following letter
Breath: globally unique identifier, the first attribute and the second attribute;The relationship object includes following information: globally unique identifier, pass
Set type and third attribute and the 4th attribute.
In an alternative embodiment of the invention, the chart database is Neo4j chart database, wherein described to use figure
Meta-model entity, the metadata entity described in database purchase, the relationship object and the label object include: to use
Node type in the Neo4j chart database stores globally unique identifier and the metadata reality of the meta-model entity
The globally unique identifier of body;Store the meta-model entity using the attribute type in the Neo4j chart database first belongs to
Property and the second attribute, the first attribute of the metadata entity and the second attribute and the relationship object third attribute and
4th attribute;Globally unique identifier and the pass of the relationship object are stored using the relationship type in the Neo4j chart database
Set type;The label object is stored using the tag types in the Neo4j chart database.
In embodiments of the present invention, using chart database to meta-model entity, metadata entity, relationship object and label
Object is stored, and the storage efficiency of metadata and its relevant information is improved.
Optionally, in the present invention is implemented, using Neo4j chart database to meta-model entity, metadata entity, relationship pair
As and label object stored, so as to further increase the storage efficiency of metadata and its relevant information.
Meta-model entity may include globally unique identifier, the first attribute and the second attribute, and the first attribute is meta-model reality
The attribute unrelated with upper-layer service system that body includes, the i.e. attribute unrelated with data described in metadata, for example, first belongs to
Property can be at least one of: creation time, renewal time, owning user, version etc..Second attribute is and business demand
(i.e. data described in metadata) related attribute, for example, the second attribute can be at least one of: user name, user
Mailbox, shipping address.In embodiments of the present invention,
Metadata entity may include globally unique identifier, the first attribute and the second attribute, and the first attribute is metadata reality
The attribute unrelated with upper-layer service system that body includes, for example, the first attribute can be at least one of: creation time, more
New time, owning user, version etc..Second attribute is attribute related with business demand, for example, the second attribute can be it is following
At least one: user name, the mailbox of user, shipping address.
Relationship object may include globally unique identifier, relationship type, third attribute and the 4th attribute, and relationship type can be with
Be at least one of: polymerization, instantiation, combination, association, third attribute is the attribute unrelated with upper-layer service system, for example,
Third attribute can be at least one of: relationship start node ID, relationship terminate boundary's node ID, creation time.4th attribute
It is attribute relevant to business, such as the 4th attribute can be at least one of: task ID, extraction-transposition-load
(Extract-Transform-Load, ETL) tool title.
In embodiments of the present invention, each meta-model entity or metadata entity can have multiple label objects, can be with
Carry out one label object of unique identification using character string.
End explanation is carried out to above- mentioned information storage method below in conjunction with an example, but is not used in the restriction embodiment of the present invention
Technical solution, the exemplary technical solution of the present invention is as follows:
Step 1, general metadata storing data model is established, the storage of metadata is divided by the embodiment of the present invention
Four kinds of storage objects: meta-model entity, metadata entity, metadata relationship (relationship object i.e. in above-described embodiment) and member
Data label (label object i.e. in above-described embodiment).
Meta-model entity (MetaModel Entity) is the object for storing meta model information, and wherein meta-model is fixed
The model of adopted metadata.Meta-model may include at least one of: library model (Database Model), table model (Table
Model), column model (Column Model).Metadata entity (Metadata Entity) is for storing metadata information
Object is used to store metadata.Metadata can be at least one of: library example, table example, column example.First number
According to relationship (Meta-Relationships) be it is a kind of for storing between meta-model entity, meta-model entity and metadata entity
Between and metadata entity between link information object.It is divided into polymerization (Aggregate), reality according to the difference of connecting object
Exampleization (Instantiate), combination (Composite) and association (Associate) four kinds of relationship types.Meta-model entity it
Between, be combination or incidence relation between metadata entity, be instantiation relationship between meta-model entity and metadata entity, and first
It is paradigmatic relation between model entity, metadata entity and label.Metadata tag (Meta-Labels) (i.e. above-described embodiment
In label object) be object for identifying and storing meta-model entity, metadata entity and relationship classification information.First number
In terms of can be used for following two according to label: 1. accelerate inquiry.It, can be by inputting metadata tag, quickly in query process
Inquire relevant metadata entity;2. identifying entity class, it can by setting for indicating the metadata mark of classification
Label, identify the classification of metadata entity, meta-model entity, relationship object etc..
It should be noted that the meta-model entity of above-mentioned foundation, metadata entity, relationship object are general with label object
, i.e., meta-model and metadata in any specific area can be indicated and be stored using above-mentioned data model.
Step 2, the storage of MetaModel Entity and Metadata Entity:
The data of persistent storage are divided into four seed types in Neo4j: Node, Relationships, Labels and
Properties.In embodiments of the present invention, the node (Node) and attribute (Properties) in Neo4j chart database are utilized
To store the information of meta-model entity and metadata entity.The information of meta-model entity and metadata entity is divided into globally unique mark
Know (Global Unique ID, GUID), (first i.e. in above-described embodiment belongs to primary attribute (Basic Properties)
Property), service attribute (Business Properties) (the second attribute i.e. in above-described embodiment) these three types.Wherein, base
Plinth attribute refers to meta-model entity, attribute unrelated with upper-layer service system in metadata entity, such as: creation time, when updating
Between, owning user, version etc.;And business information can be dynamically changed according to business demand (i.e. data described in metadata)
Attribute, such as: user name, mailbox, shipping address.
Only store the GUID of MetaModel Entity Yu Metadata Entity in Node, and primary attribute and industry
Business attribute is stored in Properties.
Step 3, the storage of Meta-Relationships:
The information of Meta-Relationships is by GUID, relationship type (Relationship Type), primary attribute
(Basic Properties), service attribute (Business Properties) composition.Wherein, relationship type includes: polymerization
(Aggregate), (Instantiate), combination (Composite) and association (Associate) four seed type are instantiated;Base
Plinth attribute refers to the attribute unrelated with upper-layer service system, including relationship start node ID, relationship end node ID (for example, working as
, can be using metadata entity A as relationship start node when metadata entity A and metadata entity B has connection relationship, it will be first
Data entity B is as relationship end node, creation time etc.;Service attribute refers to attribute relevant to business, such as ETL implementation name
Title, task ID etc..
Meta-Relationships is stored using the Relationships in Neo4j.Wherein, GUID and relation object
Type is stored in Relationships, and primary attribute and service attribute are stored in Properties.
Step 4, the storage of Meta-Labels:
Meta-Labels's is relatively simple for structure, and character string can be used and carry out one Meta-Label of unique identification.Each
MetaModel Entity or Metadata Entity can have multiple Meta-Label, be deposited using the Labels in Neo4j
Store up Meta-Labels.
In embodiments of the present invention, using the embedded deployment mode of Neo4j, Neo4j storage service is embedded into application
In service processes, so as to greatly improve easy deployment, independence and the maintainability of application system.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of information-storing device is additionally provided in the present embodiment, and the device is real for realizing above-described embodiment and preferably
Mode is applied, the descriptions that have already been made will not be repeated.As used below, the soft of predetermined function may be implemented in term " module "
The combination of part and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or
The realization of the combination of software and hardware is also that may and be contemplated.
Fig. 2 is the structural block diagram of information-storing device according to an embodiment of the present invention, as shown in Fig. 2, the device includes:
First establishes module 202, for establishing the meta-model entity of the parameter information for storing meta-model, wherein institute
Stating meta-model is the model for defining metadata;
It instantiates module 204 and obtains the metadata for storing metadata information for instantiating the meta-model entity
Entity;
Second establishes module 206, is used for opening relationships object;
Third establishes module 208, for establishing label object, wherein the label object for identify it is following at least it
One: the meta-model entity, the metadata entity, the relationship object;Wherein, the relationship object of foundation is used to indicate
At least one of: the first connection relationship between multiple meta-model entities, between multiple metadata entities
Two connection relationships, the third connection relationship between the meta-model entity and the label object, the metadata entity and institute
The 4th connection relationship between label object is stated, the 5th connection between the meta-model entity and the metadata entity is closed
System;
Memory module 210, for using chart database to store the meta-model entity, the metadata entity, the pass
It is object and the label object.
Through the invention, due to establishing the meta-model entity for storing the parameter information of meta-model, wherein the member mould
Type is the model for defining metadata;By instantiating the meta-model entity, the member for storing metadata information is obtained
Data entity;Opening relationships object;Establish label object, wherein the label object is for identifying at least one of: described
Meta-model entity, the metadata entity, the relationship object;, the relationship object of foundation be used to indicate it is following at least it
One: the first connection relationship between multiple meta-model entities, the second connection relationship between multiple metadata entities,
Third connection relationship between the meta-model entity and the label object, the metadata entity and the label object it
Between the 4th connection relationship, the 5th connection relationship between the meta-model entity and the metadata entity;Use diagram data
Library stores the meta-model entity, the metadata entity, the relationship object and the label object.Due to establishing member
Model entity, metadata entity, relationship object and label object, and meta-model entity, metadata entity, relationship object and mark
Label store corresponding information respectively, and use chart database storage meta-model entity, metadata entity, relationship object and label
Object, by adopting the above technical scheme, solve metadata in the related technology storage efficiency it is lower the problems such as, and then reached energy
Enough effects that efficient storage is carried out to metadata and relevant information.
In an alternative embodiment of the invention, described first, which establishes module 202, includes at least one of: first is established
Unit, for establishing the meta-model entity of the parameter information of library model for storing data;Second establishes unit, uses for establishing
In the meta-model entity of the parameter information of storing data table model;Third establishes unit, for establishing for storing column model
The meta-model entity of parameter information;
In an alternative embodiment of the invention, the instantiation module includes at least one of: the first instantiation is single
Member obtains the database instance for storing metadata information for instantiating the meta-model entity;Second instantiation is single
Member obtains the data table example for storing metadata information for instantiating the meta-model entity;Third instantiation is single
Member obtains the column example for storing metadata information for instantiating the meta-model entity.
In an alternative embodiment of the invention, first connection relationship includes: combination or association, second connection
Relationship includes: combination or association, and the third connection relationship is polymerization, and the 4th connection relationship is polymerization, and the described 5th connects
Relationship is connect as instantiation.
In an alternative embodiment of the invention, the meta-model entity and the metadata entity include following letter
Breath: globally unique identifier, the first attribute and the second attribute;The relationship object includes following information: globally unique identifier, pass
Set type and third attribute and the 4th attribute.
In an alternative embodiment of the invention, the chart database is Neo4j chart database, wherein the storage mould
Block is used to store the meta-model entity, the metadata entity, the relationship object using chart database by following steps
And the label object: the overall situation of the meta-model entity is stored only using the node type in the Neo4j chart database
The globally unique identifier of one mark and the metadata entity;It is stored using the attribute type in the Neo4j chart database
The first attribute and the second attribute of the first attribute and the second attribute of the meta-model entity, the metadata entity, Yi Jisuo
State the third attribute and the 4th attribute of relationship object;The relationship is stored using the relationship type in the Neo4j chart database
The globally unique identifier of object and relationship type;The label pair is stored using the tag types in the Neo4j chart database
As.
Fig. 3 is the schematic diagram of information storage means according to an embodiment of the present invention, as shown in figure 3, depositing in chart database
Meta-model entity, metadata entity, relationship object and label object are stored up, and represents mutual connection relationship.It is optional
Ground, chart database can be Neo4j chart database.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned
Program is arranged to the method for executing any of the above-described when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps
Sequence code:
Step S1 establishes the meta-model entity for storing the parameter information of meta-model, wherein the meta-model is to be used for
Define the model of metadata;
Step S2 obtains the metadata entity for storing metadata information by instantiating the meta-model entity;
Step S3, opening relationships object;
Step S4, establishes label object, wherein the label object is for identifying at least one of: the meta-model
Entity, the metadata entity, the relationship object;, the relationship object of foundation is used to indicate at least one of: multiple
The first connection relationship between the meta-model entity, the second connection relationship between multiple metadata entities, the member
Third connection relationship between model entity and the label object, between the metadata entity and the label object
Four connection relationships, the 5th connection relationship between the meta-model entity and the metadata entity;
Step S5, using chart database store the meta-model entity, the metadata entity, the relationship object and
The label object.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store program code such as disk, magnetic or disk.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Embodiment 4
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
Step S1 establishes the meta-model entity for storing the parameter information of meta-model, wherein the meta-model is to be used for
Define the model of metadata;
Step S2 obtains the metadata entity for storing metadata information by instantiating the meta-model entity;
Step S3, opening relationships object;
Step S4, establishes label object, wherein the label object is for identifying at least one of: the meta-model
Entity, the metadata entity, the relationship object;, the relationship object of foundation is used to indicate at least one of: multiple
The first connection relationship between the meta-model entity, the second connection relationship between multiple metadata entities, the member
Third connection relationship between model entity and the label object, between the metadata entity and the label object
Four connection relationships, the 5th connection relationship between the meta-model entity and the metadata entity;
Step S5, using chart database store the meta-model entity, the metadata entity, the relationship object and
The label object.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of information storage means characterized by comprising
Establish the meta-model entity for storing the parameter information of meta-model, wherein the meta-model is for defining metadata
Model;
By instantiating the meta-model entity, the metadata entity for storing metadata information is obtained;
Opening relationships object;
Establish label object, wherein the label object is for identifying at least one of: the meta-model entity, the member
Data entity, the relationship object;Wherein, the relationship object of foundation is used to indicate at least one of: multiple members
The first connection relationship between model entity, the second connection relationship between multiple metadata entities, the meta-model are real
Third connection relationship between body and the label object, the 4th connection between the metadata entity and the label object
Relationship, the 5th connection relationship between the meta-model entity and the metadata entity;
The meta-model entity, the metadata entity, the relationship object and the label pair are stored using chart database
As.
2. the method according to claim 1, wherein
Meta-model entity of the foundation for storing the parameter information of meta-model includes at least one of: being established for storing
The meta-model entity of the parameter information of database model, the meta-model for establishing the parameter information of table model for storing data are real
Body establishes the meta-model entity for storing the parameter information of column model;
It is described by instantiating the meta-model entity, obtain the metadata entity for storing metadata information include with down toward
It is one of few: to obtain the database instance for storing metadata information by instantiating the meta-model entity, pass through instantiation
The meta-model entity obtains the data table example for storing metadata information, is obtained by instantiating the meta-model entity
For storing the column example of metadata information;
Wherein, first connection relationship includes: combination or association, and second connection relationship includes: combination or association, described
Third connection relationship is polymerization, and the 4th connection relationship is polymerization, and the 5th connection relationship is instantiation.
3. the method according to claim 1, wherein the meta-model entity and the metadata entity include
Following information: globally unique identifier, the first attribute and the second attribute;The relationship object includes following information: globally unique
Mark, relationship type and third attribute and the 4th attribute.
4. according to the method described in claim 3, it is characterized in that, the chart database is Neo4j chart database, wherein institute
It states and stores the meta-model entity, the metadata entity, the relationship object and the label object using chart database
Include:
The globally unique identifier of the meta-model entity and described is stored using the node type in the Neo4j chart database
The globally unique identifier of metadata entity;
Using the attribute type in the Neo4j chart database store the meta-model entity the first attribute and the second attribute,
The first attribute and the second attribute of the metadata entity and the third attribute and the 4th attribute of the relationship object;
Globally unique identifier and the relation object of the relationship object are stored using the relationship type in the Neo4j chart database
Type;
The label object is stored using the tag types in the Neo4j chart database.
5. a kind of information-storing device characterized by comprising
First establishes module, for establishing the meta-model entity of the parameter information for storing meta-model, wherein the meta-model
It is the model for defining metadata;
It instantiates module and obtains the metadata entity for storing metadata information for instantiating the meta-model entity;
Second establishes module, is used for opening relationships object;
Third establishes module, for establishing label object, wherein the label object is for identifying at least one of: described
Meta-model entity, the metadata entity, the relationship object;Wherein, the relationship object of foundation be used to indicate with down toward
It is one of few: the first connection relationship between multiple meta-model entities, the second connection between multiple metadata entities
Relationship, the third connection relationship between the meta-model entity and the label object, the metadata entity and the label
The 4th connection relationship between object, the 5th connection relationship between the meta-model entity and the metadata entity;
Memory module, for use chart database store the meta-model entity, the metadata entity, the relationship object with
And the label object.
6. device according to claim 5, which is characterized in that
Described first to establish module include at least one of: first establishing unit, for establishing library model for storing data
Parameter information meta-model entity;Second establishes unit, for establishing the member of the parameter information of table model for storing data
Model entity;Third establishes unit, for establishing the meta-model entity of the parameter information for storing column model;
The instantiation module includes at least one of: the first instantiating unit is obtained for instantiating the meta-model entity
To the database instance for storing metadata information;Second instantiating unit is obtained for instantiating the meta-model entity
For storing the data table example of metadata information;Third instantiating unit is used for instantiating the meta-model entity
In the column example of storage metadata information;
Wherein, first connection relationship includes: combination or association, and second connection relationship includes: combination or association, described
Third connection relationship is polymerization, and the 4th connection relationship is polymerization, and the 5th connection relationship is instantiation.
7. device according to claim 5, the meta-model entity and the metadata entity include following information: complete
Office's unique identification, the first attribute and the second attribute;The relationship object includes following information: globally unique identifier, relation object
Type and third attribute and the 4th attribute.
8. device according to claim 5, which is characterized in that the chart database is Neo4j chart database, wherein institute
Memory module is stated for storing the meta-model entity, metadata entity, described using chart database by following steps
Relationship object and the label object:
The globally unique identifier of the meta-model entity and described is stored using the node type in the Neo4j chart database
The globally unique identifier of metadata entity;
Using the attribute type in the Neo4j chart database store the meta-model entity the first attribute and the second attribute,
The first attribute and the second attribute of the metadata entity and the third attribute and the 4th attribute of the relationship object;
Globally unique identifier and the relation object of the relationship object are stored using the relationship type in the Neo4j chart database
Type;
The label object is stored using the tag types in the Neo4j chart database.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of Claims 1-4 when operation.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute side described in any one of Claims 1-4
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910551516.8A CN110287223A (en) | 2019-06-24 | 2019-06-24 | Information storage means and device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910551516.8A CN110287223A (en) | 2019-06-24 | 2019-06-24 | Information storage means and device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110287223A true CN110287223A (en) | 2019-09-27 |
Family
ID=68005428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910551516.8A Pending CN110287223A (en) | 2019-06-24 | 2019-06-24 | Information storage means and device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110287223A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078695A (en) * | 2019-11-29 | 2020-04-28 | 东软集团股份有限公司 | Method and device for calculating metadata association relation in enterprise |
CN111145011A (en) * | 2019-12-27 | 2020-05-12 | 中国银行股份有限公司 | Banking business system building method and device |
CN112749229A (en) * | 2019-10-31 | 2021-05-04 | 北京国双科技有限公司 | Data conversion method, device, storage medium and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963963A (en) * | 2009-07-23 | 2011-02-02 | 北京数码大方科技有限公司 | Method for constructing database meta-model |
CN107203529A (en) * | 2016-03-16 | 2017-09-26 | 中国移动通信集团河北有限公司 | Multi-service correlation analysis method and device based on metadata graph structural similarity |
CN108052618A (en) * | 2017-12-15 | 2018-05-18 | 北京搜狐新媒体信息技术有限公司 | Data managing method and device |
CN108090167A (en) * | 2017-12-14 | 2018-05-29 | 畅捷通信息技术股份有限公司 | Method, system, computing device and the storage medium of data retrieval |
US20190057119A1 (en) * | 2017-08-18 | 2019-02-21 | Red Hat, Inc. | Supporting graph database backed object unmarshalling |
CN109857822A (en) * | 2018-12-29 | 2019-06-07 | 国家开发银行 | Meta-model conversion method and management system based on chart database |
-
2019
- 2019-06-24 CN CN201910551516.8A patent/CN110287223A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963963A (en) * | 2009-07-23 | 2011-02-02 | 北京数码大方科技有限公司 | Method for constructing database meta-model |
CN107203529A (en) * | 2016-03-16 | 2017-09-26 | 中国移动通信集团河北有限公司 | Multi-service correlation analysis method and device based on metadata graph structural similarity |
US20190057119A1 (en) * | 2017-08-18 | 2019-02-21 | Red Hat, Inc. | Supporting graph database backed object unmarshalling |
CN108090167A (en) * | 2017-12-14 | 2018-05-29 | 畅捷通信息技术股份有限公司 | Method, system, computing device and the storage medium of data retrieval |
CN108052618A (en) * | 2017-12-15 | 2018-05-18 | 北京搜狐新媒体信息技术有限公司 | Data managing method and device |
CN109857822A (en) * | 2018-12-29 | 2019-06-07 | 国家开发银行 | Meta-model conversion method and management system based on chart database |
Non-Patent Citations (1)
Title |
---|
曹志伟: "支持ETL进化的元数据管理与应用", 《中国硕士学位论文全文数据库 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112749229A (en) * | 2019-10-31 | 2021-05-04 | 北京国双科技有限公司 | Data conversion method, device, storage medium and electronic equipment |
CN111078695A (en) * | 2019-11-29 | 2020-04-28 | 东软集团股份有限公司 | Method and device for calculating metadata association relation in enterprise |
CN111078695B (en) * | 2019-11-29 | 2023-11-21 | 东软集团股份有限公司 | Method and device for calculating association relation of metadata in enterprise |
CN111145011A (en) * | 2019-12-27 | 2020-05-12 | 中国银行股份有限公司 | Banking business system building method and device |
CN111145011B (en) * | 2019-12-27 | 2024-04-23 | 中国银行股份有限公司 | Banking system building method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Jiao et al. | Generic bill-of-materials-and-operations for high-variety production management | |
US8704821B2 (en) | System and method for managing virtual world environments based upon existing physical environments | |
US7050872B2 (en) | Innovation information management model | |
CN110287223A (en) | Information storage means and device, electronic device and storage medium | |
CN109614409A (en) | Business data processing method, device and server | |
CN102576354A (en) | Extensible framework to support different deployment architectures | |
CN110263145A (en) | A kind of electronic contract signature method and electronic contract sign equipment | |
CN109213771A (en) | Update the method and apparatus of portrait label | |
CN110019754A (en) | A kind of method for building up of knowledge base, device and equipment | |
CN109035018A (en) | The data record statistical method and device of intelligent contract in a kind of block chain | |
WO2008005472A2 (en) | Global information architecture | |
CN108304591A (en) | A kind of method for customizing of label, system and terminal device | |
CN106022727B (en) | Enterprise supply chain management method | |
CN109344173A (en) | Data managing method and device, data structure | |
US20110264487A1 (en) | Embedding Planning Components In Transactional Applications | |
CN103632278A (en) | Multi-strategy commodity recommendation system based on context information | |
US7574329B1 (en) | Object model for decision and issue tracking | |
Furley | The BT operational support systems architecture | |
CN112000679A (en) | Block chain data processing method and device with separated business operation and data operation | |
CN112748932B (en) | Data processing method and server based on intelligent contract | |
EP2212782A1 (en) | Methods and systems for directory-based programming | |
US20050060309A1 (en) | Query objects | |
KR100490750B1 (en) | Method for automatically managing relation between database entities represented by using persistent state object of enterprise javabeans | |
Papaioannou et al. | Building agile systems with mobile code | |
WO2003030020A2 (en) | Handling relational metanodes in databases |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190927 |
|
RJ01 | Rejection of invention patent application after publication |