Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of method for visualizing flow signal of Digital Object Identifier adduction relationship provided in an embodiment of the present invention
Figure, as shown in Figure 1, the method, including:
Step 101:Obtain the corresponding Digital Object Identifier to be checked of object to be checked input by user DOI and reference
Relationship level;
Specifically, user inputs No. DOI and adduction relationship level of object to be checked in user terminal, wherein one is waited for
Query object and No. DOI are one-to-one, in addition, object to be checked, which can be applied, draws other objects, the object drawn may be used also
Apply drawing, the adduction relationship of multi-layer is thus constituted, user can set adduction relationship layer according to the demand of oneself
Grade.Device obtains object to be checked input by user corresponding No. DOI and adduction relationship level.
Step 102:According to described No. DOI to be checked obtain from data graph model corresponding DOI node datas and with institute
No. DOI to be checked the first relationship node with subordinate relation is stated, is obtained from data graph model according to the adduction relationship level
Take the second relationship node for having adduction relationship with described No. DOI to be checked of corresponding level;
Include multiple DOI nodes in data graph model specifically, obtaining the data graph model built in advance, and each
Subordinate relation between a DOI nodes or adduction relationship, device are obtained according to No. DOI to be checked got from data graph model
The the first relationship node for taking corresponding DOI node datas and there is subordinate relation with No. DOI to be checked, also, according to reference
Relationship level obtains the second relationship node for having adduction relationship with No. DOI to be checked of corresponding level from data graph model.
Wherein, it should be noted that subordinate relation is the DOI nodes set membership mark to be checked, and adduction relationship is DOI sections to be checked
Adduction relationship between point and other DOI nodes, adduction relationship include applying the relationship of drawing and by the relationship of drawing.
Step 103:By the DOI node datas, the first relationship node, the second relationship node, the subordinate
The collection of illustrative plates of relationship and adduction relationship structure is sent to the user terminal as query result.
Specifically, due to including the subordinate relation or adduction relationship between each node in data graph model,
After getting the corresponding first relationship node of DOI nodes to be checked and the second relationship node, DOI node datas, the first relationship section
Point, the second relationship node, subordinate relation and adduction relationship can construct the collection of illustrative plates of relationship between each node, which is made
For query result, query result is sent to the user terminal.It should be noted that DOI node datas include DOI nodes and
The attribute data of object to be checked, DOI nodes, the first relationship node and the second relationship node indicate in collection of illustrative plates with circle, DOI
There is directional arrow between node and the first relationship node, shows subordinate relation, DOI nodes and the second relationship node on directional arrow
Between have directional arrow, show adduction relationship on directional arrow.
Such as:Fig. 2 is that the method for visualizing flow of Digital Object Identifier adduction relationship provided in an embodiment of the present invention is shown
It is intended to, as shown in Fig. 2, including:
Device obtains object to be checked input by user corresponding No. DOI to be checked and adduction relationship level, wherein to be checked
No. DOI that No. DOI is article 3 is ask, adduction relationship level is 1, and device obtains text according to No. DOI to be checked from data graph model
The attribute data of chapter 3 corresponding DOI nodes and article 3, wherein attribute data include:It title, author and delivers the time, Ke Yili
Solution, attribute data can also have other attribute informations of article 3, the embodiment of the present invention to be not specifically limited this, article 3
The attribute data of corresponding DOI nodes and article 3 constitutes DOI node datas.Can also be got from data graph model with
Article 3 has the first relationship node of subordinate relation, from figure 2 it can be seen that the first relationship node includes 1 node of phase, publication A
Node and certain publishing house's node, and indicated with directional arrow between every one first relationship node DOI nodes corresponding with article 3,
And incidence relation is marked on directional arrow.First order reference can be got according to the adduction relationship level of user setting to close
Second relationship node of system, wherein the second relationship node includes 1 node of article, 2 node of article, article A nodes and paragraph section
Point, and indicated with directional arrow between every one second relationship node DOI nodes corresponding with article 3, and on directional arrow
Mark incidence relation.Due to user specify adduction relationship level be 1, in the second relationship node include 1 node of article,
Next stage adduction relationship after 2 node of article, article A nodes and paragraph node.It should be noted that can also be closed to first
Subordinate relation between set section point and the second relationship node is labeled.
The embodiment of the present invention by according to No. DOI to be checked from data graph model obtain DOI node datas and with it is to be checked
No. DOI the first relationship node with subordinate relation is ask, and the second relationship node is obtained according to adduction relationship level, finally by structure
The collection of illustrative plates built is sent to the user terminal as query result so that user can intuitively obtain the pass of the reference between each node
System.
On the basis of the above embodiments, the method further includes:
It obtains and builds the corresponding DOI metadata of object in the data graph model, the DOI metadata includes No. DOI, belongs to
Property data, with described No. DOI the second relationship section for having the first relationship node of subordinate relation and having adduction relationship with described No. DOI
Point;
DOI nodes are established according to described No. DOI, and described No. DOI and corresponding attribute data are stored to the DOI and saved
In point, DOI node datas are constituted;
Incidence relation of the DOI nodes respectively between the first relationship node is established according to subordinate relation, according to adduction relationship
The incidence relation between DOI nodes and the second relationship node is established, to build the data graph model.
Include multiple objects in data graph model specifically, structure data graph model in advance, each object has pair
The DOI metadata answered, DOI metadata includes No. DOI, attribute data, the first relationship node for having with No. DOI subordinate relation and with
No. DOI the second relationship node for having adduction relationship.Establish DOI nodes according to each object No. DOI, then by No. DOI and
In corresponding attribute data storage to DOI nodes, DOI node datas are constituted, added in data graph model has subordinate with No. DOI
First relationship node of relationship and have adduction relationship the second relationship node with No. DOI, finally according to subordinate relation establish No. DOI with
The incidence relation of first relationship node establishes the incidence relation between DOI nodes and the second relationship node according to adduction relationship.It is right
Each object in data graph model is built in aforementioned manners, may finally obtain complete data graph model.It answers
It, will be in the storage to database of data graph model after the completion of establishment when explanation.Fig. 3 is the phase provided in an embodiment of the present invention
The node and adduction relationship schematic diagram of class DOI data are printed, as shown in figure 3, object A is the section that be inserted into data model
Point, it is A that the corresponding DOI metadata of article A, which includes No. DOI, and attribute data is not shown, and has subordinate relation with article A
Type X is printed, there is the article B of adduction relationship with article A, creates the node of periodical type X and article B, then in article A and periodical type
Subordinate relation is established between X, is established between article A and article and is applied the relationship of drawing.
The embodiment of the present invention is by being pre-created data graph model, can will be with so that user is when inquiring some object
The related node of the object is shown in a graphical form, is understood it convenient for user.
On the basis of the above embodiments, described to establish DOI nodes according to described No. DOI and by described No. DOI and corresponding
Attribute data store into the DOI nodes, including:
Judge in the data graph model whether existing described No. DOI, if being not present, established according to described No. DOI
DOI nodes, and described No. DOI and corresponding attribute data are stored into the DOI nodes;
Specifically, when for Object Creation DOI nodes, can inquire whether have existed this in data graph model first
No. DOI of object, if it does not exist, then DOI nodes can be established according to No. DOI, and by No. DOI in the metadata of the object
It is stored into DOI nodes with attribute data, to constitute DOI node datas.
Correspondingly,
It is described that incidence relation of the DOI nodes respectively between the first relationship node is established according to subordinate relation, according to reference
Relationship establishes the incidence relation between DOI nodes and the second relationship node, and the data graph model is completed with structure, including:
If judging to be not present in the data graph model and there is subordinate relation the first relationship node with the DOI metadata,
Corresponding first relationship node is then created, and establishes the incidence relation between DOI nodes and the first relationship node;
If judging to be not present in the data graph model and there is adduction relationship the second relationship node with the DOI metadata,
Corresponding second relationship node is then created, and establishes the incidence relation between DOI nodes and the second relationship node.
Specifically, create complete DOI node datas after, searched whether from data graph model exist with object have from
First relationship node of category relationship, if it does not exist, then automatically create a first relationship node, then establish DOI nodes with
DOI nodes are connect by the incidence relation of the first relationship node with the first relationship node with oriented arrow, and be marked as subordinate pass
System.
If DOI nodes have the second relationship node of adduction relationship, and the second relationship section is not present in data graph model
Point then automatically creates a second relationship node, then establishes the incidence relation of DOI nodes and the second relationship node, i.e., by DOI
Node is connect with the second relationship node with oriented arrow, and is marked as adduction relationship.
It should be noted that after establishing completion data graph model, data graph model can be excavated, i.e., in data
In graph model interface, node is clicked, then shows relationship node and associated property data, further clicks on relationship node, then can dig
The relationship of the relationship node is dug, further shows next stage node.
The embodiment of the present invention by according to No. DOI to be checked from data graph model obtain DOI node datas and with it is to be checked
No. DOI the first relationship node with subordinate relation is ask, and the second relationship node is obtained according to adduction relationship level, finally by structure
The collection of illustrative plates built is sent to the user terminal as query result so that user can intuitively obtain the pass of the reference between each node
System.
On the basis of the above embodiments, described to establish DOI nodes according to described No. DOI and by described No. DOI and corresponding
Attribute data store into the DOI nodes, including:
Judge in the data graph model whether existing described No. DOI, and if it exists, then will be in the data graph model
No. DOI corresponding attribute data, the first relationship node with subordinate relation and the second relationship section with adduction relationship
Point is updated.
Specifically, the DOI metadata due to object may change, getting structure data graph model
After the DOI metadata of required object, No. DOI is obtained from DOI metadata, judges whether No. DOI have existed data artwork
In type, if existing, illustrate to need to update the data the data in graph model, at this point, by the DOI nodes in data graph model
In attribute data, the first relationship node with subordinate relation and the second relationship node with adduction relationship all delete,
Then the information in the DOI metadata of the object reacquired is rebuild one time, specific construction method and above-mentioned implementation
Example is consistent, and details are not described herein again.
The embodiment of the present invention has existed DOI nodes by judging in data graph model, then is carried out to the information of the node
Update so that user can acquire more accurate result in inquiry.
On the basis of the above embodiments, described that respective layer is obtained from data graph model according to the adduction relationship level
The the second relationship node for having adduction relationship with the object to be checked of grade, including:
Recurrence obtains and described No. DOI to be checked the second relationship node for having adduction relationship, if judging to know recursive number
Amount is equal to the adduction relationship level, then stops recurrence to obtain the second relationship node of corresponding level.
Specifically, when obtaining corresponding second relationship node from data graph model according to No. DOI to be checked, by passing
Return the mode of excavation to obtain, i.e., first obtains with No. DOI to be checked the first layer DOI nodes with direct adduction relationship, obtain
After the DOI nodes of complete first layer, then obtain second layer DOI nodes, it is known that the number of plies of acquisition reaches the adduction relationship of user setting
Until level.Such as:DOI nodes to be checked are the relationship of drawing of directly applying with DOI nodes A, and DOI nodes A and DOI nodes B is direct
The relationship of drawing is applied, DOI nodes B and DOI nodes C is directly to apply the relationship of drawing, if the adduction relationship level of user setting is 2, is led to
Cross the collection of illustrative plates that the query result obtained after inquiry is DOI nodes to be checked, DOI node A and DOI nodes B.
The embodiment of the present invention obtains the query result of corresponding level, Ke Yizhun by recursive mode from data graph model
True is back to user terminal by query result.
On the basis of the above embodiments, the method further includes:
The object metadata for the object to be registered that user submits is obtained, and is registered according to the object metadata, it is raw
It is No. DOI corresponding at the object to be registered.
Specifically, device obtains the object metadata for the object to be registered that user submits, such as:To be that an article is registered
Corresponding No. DOI, the object metadata of submission may include:Article name, author, date, keyword etc., device is according to this
A little object metadatas generate only one DOI, then return to user terminal by No. DOI of generation.
The embodiment of the present invention by according to No. DOI to be checked from data graph model obtain DOI node datas and with it is to be checked
No. DOI the first relationship node with subordinate relation is ask, and the second relationship node is obtained according to adduction relationship level, finally by structure
The collection of illustrative plates built is sent to the user terminal as query result so that user can intuitively obtain the pass of the reference between each node
System.
Fig. 4 is a kind of visualization device structural representation of Digital Object Identifier adduction relationship provided in an embodiment of the present invention
Figure, as shown in figure 4, described device, including:Acquisition module 401, enquiry module 402 and sending module 403, wherein:
Acquisition module 401 is for obtaining the corresponding Digital Object Identifier DOI to be checked of object to be checked input by user
Number and adduction relationship level;Enquiry module 402 is used to be obtained from data graph model according to described No. DOI to be checked corresponding
DOI node datas and the first relationship node that there is subordinate relation with described No. DOI to be checked, according to the adduction relationship level
The the second relationship node for having adduction relationship with described No. DOI to be checked of corresponding level is obtained from data graph model;Send mould
Block 403 is used for the DOI node datas, the first relationship node, the second relationship node, the subordinate relation and institute
The collection of illustrative plates for stating adduction relationship structure is sent to the user terminal as query result.
Specifically, user inputs No. DOI and adduction relationship level of object to be checked in user terminal, wherein one is waited for
Query object and No. DOI are one-to-one, in addition, object to be checked, which can be applied, draws other objects, the object drawn may be used also
Apply drawing, the adduction relationship of multi-layer is thus constituted, user can set adduction relationship layer according to the demand of oneself
Grade.Acquisition module 401 obtains object to be checked input by user corresponding No. DOI and adduction relationship level.Obtain structure in advance
Data graph model, include subordinate relation between multiple DOI nodes and each DOI nodes in data graph model or draw
With relationship, enquiry module 402 obtains corresponding DOI node datas according to No. DOI to be checked got from data graph model
And with No. DOI to be checked the first relationship node with subordinate relation, also, according to adduction relationship level from data graph model
Middle the second relationship node that there is adduction relationship with No. DOI to be checked for obtaining corresponding level.Wherein, it should be noted that from
Category relationship is the DOI nodes set membership mark to be checked, and adduction relationship is between DOI nodes to be checked and other DOI nodes
Adduction relationship, adduction relationship include apply the relationship of drawing and by the relationship of drawing.Due to including between each node in data graph model
Subordinate relation or adduction relationship therefore getting the corresponding first relationship node of DOI nodes to be checked and the second relationship section
After point, DOI node datas, the first relationship node, the second relationship node, subordinate relation and adduction relationship can construct each section
Query result is sent to the user terminal by the collection of illustrative plates of relationship, sending module 403 using the collection of illustrative plates as query result between point.
The embodiment of device provided by the invention specifically can be used for executing the process flow of above-mentioned each method embodiment,
Details are not described herein for function, is referred to the detailed description of above method embodiment.
The embodiment of the present invention by according to No. DOI to be checked from data graph model obtain DOI node datas and with it is to be checked
No. DOI the first relationship node with subordinate relation is ask, and the second relationship node is obtained according to adduction relationship level, finally by structure
The collection of illustrative plates built is sent to the user terminal as query result so that user can intuitively obtain the pass of the reference between each node
System.
Fig. 5 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in figure 5, the electronic equipment,
Including:Processor (processor) 501, memory (memory) 502 and bus 503;Wherein,
The processor 501 and memory 502 complete mutual communication by the bus 503;
The processor 501 is used to call the program instruction in the memory 502, to execute above-mentioned each method embodiment
The method provided, such as including:Obtain the corresponding Digital Object Identifier DOI to be checked of object to be checked input by user
And adduction relationship level;According to described No. DOI to be checked obtain from data graph model corresponding DOI node datas and with it is described
No. DOI to be checked the first relationship node with subordinate relation, obtains according to the adduction relationship level from data graph model
The the second relationship node for having adduction relationship with described No. DOI to be checked of corresponding level;By the DOI node datas, described
The collection of illustrative plates that one relationship node, the second relationship node, the subordinate relation and the adduction relationship are built is as query result
It is sent to the user terminal.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out the method that above-mentioned each method embodiment is provided, such as including:Obtain input by user wait for
The corresponding Digital Object Identifier to be checked of query object DOI and adduction relationship level;According to described No. DOI to be checked from number
According to obtained in graph model corresponding DOI node datas and with described No. DOI to be checked the first relationship node with subordinate relation,
Corresponding level is obtained from data graph model according to the adduction relationship level has adduction relationship with described No. DOI to be checked
Second relationship node;By the DOI node datas, the first relationship node, the second relationship node, the subordinate relation
It is sent to the user terminal as query result with the collection of illustrative plates of adduction relationship structure.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer instruction is stored, the computer instruction makes the computer execute the method that above-mentioned each method embodiment is provided, example
Such as include:Obtain the corresponding Digital Object Identifier to be checked of object to be checked input by user DOI and adduction relationship level;
Corresponding DOI node datas are obtained from data graph model and have with described No. DOI to be checked according to described No. DOI to be checked
First relationship node of subordinate relation, obtain from data graph model corresponding level according to the adduction relationship level with it is described
No. DOI to be checked the second relationship node for having adduction relationship;By the DOI node datas, the first relationship node, described
The collection of illustrative plates of two relationship nodes, the subordinate relation and adduction relationship structure is sent to the user terminal as query result.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light
The various media that can store program code such as disk.
The embodiments such as device described above are only schematical, wherein the unit illustrated as separating component
It may or may not be physically separated, the component shown as unit may or may not be physics list
Member, you can be located at a place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of module achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features;
And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and
Range.