CN112182139A - Method, device and equipment for tracing resource description framework triple - Google Patents

Method, device and equipment for tracing resource description framework triple Download PDF

Info

Publication number
CN112182139A
CN112182139A CN201910806106.3A CN201910806106A CN112182139A CN 112182139 A CN112182139 A CN 112182139A CN 201910806106 A CN201910806106 A CN 201910806106A CN 112182139 A CN112182139 A CN 112182139A
Authority
CN
China
Prior art keywords
data
triple
coded data
entity
resource description
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
Application number
CN201910806106.3A
Other languages
Chinese (zh)
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.)
Yingsheng Zhichuang Technology Guangzhou Co ltd
Original Assignee
Yingsheng Zhichuang Technology Guangzhou 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 Yingsheng Zhichuang Technology Guangzhou Co ltd filed Critical Yingsheng Zhichuang Technology Guangzhou Co ltd
Priority to CN201910806106.3A priority Critical patent/CN112182139A/en
Publication of CN112182139A publication Critical patent/CN112182139A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • G06F16/325Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method, a device and equipment for tracing a resource description framework triple, which are used for acquiring current triple data; coding each element in the current ternary group data to obtain coded data; forming new ternary group data by taking the coded data as an entity; the elements of the previous triple can be traced according to the RDF triple mapping relation table lookup table, the RDF tracing problem is solved, the defects that the RDF cannot store metadata information and knowledge changes along with time are overcome under the condition that an external storage scheme is not introduced, and the knowledge continuity is guaranteed.

Description

Method, device and equipment for tracing resource description framework triple
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for tracing resource description framework triples, a computer device, and a storage medium.
Background
RDF (Resource Description Framework) is a data model, RDF is a knowledge definition document that follows the W3C specification, and RDF is commonly used for knowledge storage and knowledge representation.
Taking the company of Alibara as an example, the company information table stores the data as follows: the address of Alibara is in Hangzhou;
name of field company_name location
Value of Alibaba Hangzhou
Using the data stored in RDF, < http:// example. org/company/Alibaba > indicates that Alibab is an entity, < company: location > indicates a relationship, and "Handzhou" is an attribute of the entity.
That is, the triple data of the RDF can be expressed as < http:// example. org/company/Alibaba > < company: location > "Handgzhou".
Due to the particularity of the RDF, triple data of entities, relations and attributes can be stored, only fixed information amount can be stored, and the stored additional information amount is small.
If the total part of the Ali bus is moved from Hangzhou to Beijing in the future, the triad only stores the Beijing, the Hangzhou as the previous total part can be replaced by the Beijing, and the Hangzhou is not connected with the Ali bus in a knowledge base from now on, so that the continuity of knowledge is lost, and the result of knowledge fault is caused.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention are provided to provide a method for tracing a resource description framework triplet, an apparatus for tracing a resource description framework triplet, a computer device and a storage medium, which overcome the above problems or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a source tracing apparatus for a resource description framework triple, including:
acquiring current triple data;
coding each element in the current ternary group data to obtain coded data;
and taking the coded data as an entity to form new triple data.
Preferably, the apparatus further comprises:
and establishing a resource description framework triple mapping relation table.
Preferably, the encoding for each element in the current triple data to obtain encoded data includes:
extracting each element in the current ternary group data; wherein the elements comprise entities, relationships, attributes;
and respectively coding the entity, the relation and the attribute to obtain coded data.
Preferably, the forming new triple data by using the coded data as an entity includes:
performing bit fetching operation on the coded data to obtain coded data after bit fetching;
and taking the coded data after bit extraction as an entity to form new ternary group data.
Preferably, the establishing a resource description framework triple mapping relationship table includes:
acquiring entities, relations and attributes of current ternary group data;
carrying out Hash operation on the entities, the relations and the attributes to obtain corresponding coded data;
and establishing the resource description framework triple mapping relation table by adopting the entities, the relations, the attributes and the coded data corresponding to the entities.
Preferably, the apparatus further comprises:
acquiring the new triple data;
extracting the coded data in the entity of the new triple data;
and inquiring the resource description frame triple mapping relation table according to the coded data to obtain corresponding current triple data.
The embodiment also discloses a source tracing device for the resource description framework triple, which includes:
the triple data acquisition module is used for acquiring current triple data;
the coded data acquisition module is used for coding each element in the current ternary group data to obtain coded data;
and the composition module is used for taking the coded data as an entity to compose new triple data.
Preferably, the apparatus further comprises:
and the relation table establishing module is used for establishing a resource description framework triple mapping relation table.
The embodiment also discloses a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the resource description framework triple tracing method when executing the computer program.
The embodiment also discloses a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for tracing the resource description framework triplet.
The embodiment of the invention has the following advantages:
in this embodiment, current triple data is acquired; coding each element in the current ternary group data to obtain coded data; forming new ternary group data by taking the coded data as an entity; the elements of the previous triple can be traced according to the RDF triple mapping relation table lookup table, the RDF tracing problem is solved, the defects that the RDF cannot store metadata information and knowledge changes along with time are overcome under the condition that an external storage scheme is not introduced, and the knowledge continuity is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts
FIG. 1 is a flowchart illustrating steps of an embodiment of a method for tracing a resource description framework triple according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a triplet data in the present embodiment;
fig. 3 is a schematic diagram of a triplet data in the present embodiment;
fig. 4 is a schematic diagram of a triplet data in the present embodiment;
FIG. 5 is a schematic diagram of a knowledge-graph in the present embodiment;
FIG. 6 is a schematic flowchart of an encoded data acquiring step according to the present embodiment;
FIG. 7 is a schematic flowchart of a triple data composing step according to the present embodiment;
FIG. 8 is a flowchart illustrating a mapping table establishing step according to this embodiment;
fig. 9 is a block diagram illustrating a structure of an embodiment of a tracing apparatus for a resource description framework triple according to an embodiment of the present invention;
FIG. 10 is an internal block diagram of a computer device of an embodiment.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the embodiments of the present invention more clearly apparent, the embodiments of the present invention are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for tracing a resource description framework triple according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, acquiring current triple data;
specifically, the present embodiment may be applied to a terminal, where the terminal may include but is not limited to various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the system operated by the terminal may include an android system, a Windows system, an IOS system, and may further include a Linux system, a Unix system, and the like.
In this embodiment, current triple data is first obtained; for example, the current triplet data is < http:// example. org/company/Alibaba > < company: location > "Hangzhou"; that is, the triple data stored in RDF may be an entity using URL (Uniform Resource Locator) < http:// example. org/company/Alibaba >, and < company: location > is a relationship, and "Handzhou" is an attribute of the entity, and the above-mentioned attribute may be an entity of another triple. ,
102, coding each element in the current ternary group data to obtain coded data;
in this embodiment, each element in the current triple data may be further encoded to obtain encoded data, where it is to be noted that the element refers to a composition of a triple, that is, an entity, a relationship, an attribute, and the like, and after the current triple data is obtained, each element therein is encoded, that is, the entity, the relationship, and the attribute are encoded respectively to obtain encoded data; as shown in table 1, an RDF triple mapping relationship table of the present embodiment is shown;
Figure BDA0002183713800000051
table 1: RDF triple mapping relation table
Wherein, table 1 includes the elements before encoding, i.e. the entities (http:// example. org/company/aliba), the relations (company: location), and the attributes (Hangzhou or Beijing), and the above-mentioned elements are respectively Hash-encoded and fixed bits are taken to obtain the corresponding encoded data, as shown in table 1, http:// example. org/company/aliba is Hash-encoded and 10 bits are taken to obtain the corresponding encoded data of 42351b246 a; the position is subjected to Hash coding, and the first 3 bits are taken to obtain corresponding coded data as 1 ab; the Hangzhou is subjected to Hash coding, and the first 10 bits are taken to obtain corresponding coded data which is 379bb 10472; beijing is Hash-coded, and the first 10 bits are taken, so that the corresponding coded data is 65bb46ed 07.
It should be noted that other encryption algorithms may also be used for encoding, for example, various symmetric encryption algorithms and asymmetric encryption algorithms are used for encoding, which is not limited in this embodiment; specifically, in this embodiment, the Hash coding may be performed by using methods such as the SHA1 algorithm and the MD5 algorithm, which is not limited too much in this embodiment.
And 103, taking the coded data as an entity to form new triple data.
In this embodiment, after the encoded data is obtained, the encoded data is spliced to be used as an entity to form new triple data.
For example, the coded data of the triplet, http:// example. org/company/Alibaba, is 42351b246 a; the corresponding coded data of company: location is 1 ab; the corresponding encoded data of the Hangzhou is 379bb10472, spliced into entity < id _42351b246a _1ab _379bb10472 >;
referring to fig. 2, a schematic diagram of a triplet data in the present embodiment is shown; < id _42351b246a _1ab _379bb10472> represents entity 1, and < source: url > represents relationship 2, and "https:// en. wikipedia. org/wiki/Alibaba _ Group" represents attribute 3, which is used to record the source.
Referring to fig. 3, a schematic diagram of a triplet data in the present embodiment is shown; < id _42351b246a _1ab _379bb10472> represents entity 1, while < source: eventTime > represents relationship 2 and "1999-01-01" represents attribute 3, the triplet being used to record the event time.
Referring to fig. 4, a schematic diagram of a triplet data in the present embodiment is shown; < id _42351b246a _1ab _65bb46ed07> represents entity 1, and < source: hypervalue > represents relationship 2 and "Hangzhou" represents attribute 3, which is used to record that the headquarters is Hangzhou before beijing becomes the new headquarters. In this embodiment, the elements of the previous triple can be traced according to the RDF triple mapping relationship table lookup, so that the problem of RDF tracing is solved, and the disadvantage that the RDF cannot store metadata information and knowledge that changes over time is overcome without introducing an external storage scheme.
It is noted that, in order to let the reader understand the core concept of the present embodiment, the present embodiment is "the total part of the alibama is in hangzhou", and it is assumed that the total part of the alibama is moved to beijing at a certain day: "the Total of Ali Bar is in Beijing", that is, two cases (1999-01-01 Total of Ali Bar in Hangzhou and 2020-01-01 Total of Ali Bar in Beijing) are taken as examples.
Referring to FIG. 5, a schematic diagram of a knowledge-graph in the present embodiment is shown; it can be seen from fig. 5 that < id _42351b246a _1ab _65bb46ed07> the entity can also possess two relationships and attributes, i.e. the entity is an entity of two triplets, respectively < id _42351b246a _1ab _65bb46ed07> < source: url > "https:// en.wikipedia.org/wiki/alababa _ Group"; < id _42351b246a _1ab _65bb46ed07> < source: eventTime > "2020-01-01".
Further, the knowledge graph may also include other triple data, such as < id _42351b246a _1ab _65bb46ed07> < source: hypervalue > "Handgzhou"; < Handzhou > < source: url > "https:// en.wikipedia.org/wiki/Alibaa _ Group"; < Hangzhou > < source: eventTime > "1999-01-01".
In the knowledge graph formed by the three-element group data, a new triple entity is formed by encoding of one three-element group data, and then an RDF triple mapping relation table is inquired to obtain data before encoding, so that triple information is traceable; the method can trace that the Alibara headquarters is currently in Beijing and is in Hangzhou before.
In this embodiment, current triple data is acquired; coding each element in the current ternary group data to obtain coded data; forming new ternary group data by taking the coded data as an entity; the elements of the previous triple can be traced according to the RDF triple mapping relation table lookup table, the RDF tracing problem is solved, the defects that the RDF cannot store metadata information and knowledge changes along with time are overcome under the condition that an external storage scheme is not introduced, and the knowledge continuity is guaranteed.
In a specific example of this embodiment, the method further includes the following steps: and establishing an RDF triple mapping relation table.
Specifically, as shown in table 1, encoding rules for different elements in the triple data may be established, specifically, encoding may be performed through different encryption algorithms, so as to obtain an encoding capable of uniquely representing the elements in the triple data, and establish a mapping relationship between the elements, so as to form an RDF triple mapping relationship table.
In one embodiment, referring to fig. 6, a flowchart of an encoded data obtaining step of this embodiment is shown, where the encoding is performed on each element in the current triple-tuple data to obtain encoded data, and the encoding includes the following sub-steps:
substep S11, extracting each element in the current triple data; wherein the elements comprise entities, relationships, attributes;
and a substep S12, respectively encoding the entity, the relationship and the attribute to obtain encoded data.
In a specific example, after the current triple data is obtained, that is, after the entity, the relationship, and the attribute are obtained, the entity, the relationship, and the attribute may be encoded respectively to obtain encoded data.
In a preferred embodiment, referring to fig. 7, a flow chart of a triple data composing step of this embodiment is shown, where the composing new triple data with the encoded data as an entity includes the following sub-steps:
a substep S21, performing a bit fetching operation on the encoded data to obtain the bit-fetched encoded data;
and a substep S22, using the coded data after bit extraction as an entity to form new triple data.
In this embodiment, bit fetching operation may be performed on the encoded data of the elements of the triple data to obtain encoded data of a fixed number of bits, so as to save storage space; and splicing the coded data of a plurality of elements to form another new entity of the triple data. And further, storing the data before encoding and the data after encoding into an RDF triple mapping relation table.
Specifically, obtaining data encoded in an entity according to the entity in the new triple data, and querying the RDF triple mapping relationship table to obtain triple data elements corresponding to the coded data after bit extraction, that is, data before coding; the nesting of the triples is realized, so that the information of the triples can be traced, and the continuity of knowledge is ensured.
In one preferred embodiment, referring to fig. 8, a flow chart of a mapping relationship table establishing step of this embodiment is shown, where the establishing a resource description framework triple mapping relationship table includes the following sub-steps:
substep S31, acquiring the entity, relationship and attribute of the current ternary group data;
substep S32, carrying out hash operation on the entity, the relation and the attribute to obtain corresponding coded data;
and a substep S33, establishing the resource description framework triple mapping relation table by using the entities, the relations, the attributes and the corresponding coded data.
In this embodiment, hash operation may be performed on current triple data according to the entity, relationship, and attribute of the current triple data through an encryption algorithm to obtain encoded data; and establishing an RDF triple mapping relation table through the entity, the relation and the attribute before encoding and the encoded data after encoding.
In one preferred embodiment, the method further comprises: acquiring the new triple data; extracting the coded data in the entity of the new triple data; and querying the resource description frame triple mapping relation table according to the coded data to obtain corresponding current triple data, thereby realizing the technical effect of triple data tracing.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 9, a block diagram of a structure of an embodiment of a tracing apparatus for a resource description framework triple in an embodiment of the present invention is shown, which may specifically include the following modules:
a triple data obtaining module 301, configured to obtain current triple data;
an encoded data obtaining module 302, configured to encode each element in the current triple-packet data to obtain encoded data;
a composing module 303, configured to compose new triple data by using the encoded data as an entity.
In one embodiment, the apparatus further comprises:
and the relation table establishing module is used for establishing a resource description framework triple mapping relation table.
In one embodiment, the encoded data acquiring module includes:
the extraction submodule is used for extracting each element in the current ternary group data; wherein the elements comprise entities, relationships, attributes;
and the coded data acquisition submodule is used for respectively coding the entity, the relation and the attribute to obtain coded data.
In one embodiment, the composition module includes:
the bit fetching submodule is used for carrying out bit fetching operation on the coded data to obtain the coded data after bit fetching;
and the composition submodule is used for taking the coded data after the bit extraction as an entity to form new ternary group data.
In one embodiment, the relationship table establishing module includes:
the acquisition submodule is used for acquiring the entity, the relation and the attribute of the current ternary group data;
the Hash operation submodule is used for carrying out Hash operation on the entities, the relations and the attributes to obtain corresponding encoded data;
and the relation table establishing submodule is used for establishing the resource description framework triple mapping relation table by adopting the entities, the relations, the attributes and the coded data corresponding to the entities, the relations and the attributes.
In one embodiment, the apparatus further comprises:
the new triple data acquisition module is used for acquiring the new triple data;
the extraction module is used for extracting the coded data in the entity of the new triple data;
and the current ternary group data acquisition module is used for inquiring the resource description frame ternary group mapping relation table according to the coded data to obtain corresponding current ternary group data.
For specific definition of the tracing apparatus for the resource description framework triplet, reference may be made to the above definition of the tracing method for the resource description framework triplet, and details are not described here. The modules in the tracing apparatus of the resource description framework triplet described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The tracing device of the resource description framework triple provided by the above can be used for executing the tracing method of the resource description framework triple provided by any of the above embodiments, and has corresponding functions and beneficial effects.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of operation maintenance. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring current triple data;
coding each element in the current ternary group data to obtain coded data;
and taking the coded data as an entity to form new triple data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: establishing a resource description framework triple mapping relation table
In one embodiment, the processor, when executing the computer program, further performs the steps of:
extracting each element in the current ternary group data; wherein the elements comprise entities, relationships, attributes;
and respectively coding the entity, the relation and the attribute to obtain coded data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
performing bit fetching operation on the coded data to obtain coded data after bit fetching;
and taking the coded data after bit extraction as an entity to form new ternary group data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring entities, relations and attributes of current ternary group data;
carrying out Hash operation on the entities, the relations and the attributes to obtain corresponding coded data;
and establishing the resource description framework triple mapping relation table by adopting the entities, the relations, the attributes and the coded data corresponding to the entities.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring the new triple data;
extracting the coded data in the entity of the new triple data;
and inquiring the resource description frame triple mapping relation table according to the coded data to obtain corresponding current triple data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring current triple data;
coding each element in the current ternary group data to obtain coded data;
and taking the coded data as an entity to form new triple data.
In one embodiment, the computer program when executed by the processor implements the steps of:
establishing a resource description framework triple mapping relation table
In one embodiment, the computer program when executed by the processor implements the steps of:
extracting each element in the current ternary group data; wherein the elements comprise entities, relationships, attributes;
and respectively coding the entity, the relation and the attribute to obtain coded data.
In one embodiment, the computer program when executed by the processor implements the steps of:
performing bit fetching operation on the coded data to obtain coded data after bit fetching;
and taking the coded data after bit extraction as an entity to form new ternary group data.
In one embodiment, the computer program when executed by the processor implements the steps of:
acquiring entities, relations and attributes of current ternary group data;
carrying out Hash operation on the entities, the relations and the attributes to obtain corresponding coded data;
and establishing the resource description framework triple mapping relation table by adopting the entities, the relations, the attributes and the coded data corresponding to the entities.
In one embodiment, the computer program when executed by the processor implements the steps of:
acquiring the new triple data;
extracting the coded data in the entity of the new triple data;
and inquiring the resource description frame triple mapping relation table according to the coded data to obtain corresponding current triple data.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
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 terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method for tracing the resource description framework triplet, the device for tracing the resource description framework triplet, the computer equipment and the storage medium provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for tracing a resource description framework triple is characterized by comprising the following steps:
acquiring current triple data;
coding each element in the current ternary group data to obtain coded data;
and taking the coded data as an entity to form new triple data.
2. The method of claim 1, wherein the apparatus further comprises:
and establishing a resource description framework triple mapping relation table.
3. The method according to claim 1 or 2, wherein the encoding for each element in the current triple data, resulting in encoded data, comprises:
extracting each element in the current ternary group data; wherein the elements comprise entities, relationships, attributes;
and respectively coding the entity, the relation and the attribute to obtain coded data.
4. The method of claim 1, wherein composing the encoded data as an entity into new triple data comprises:
performing bit fetching operation on the coded data to obtain coded data after bit fetching;
and taking the coded data after bit extraction as an entity to form new ternary group data.
5. The method of claim 2, wherein the establishing a resource description framework triple mapping relationship table comprises:
acquiring entities, relations and attributes of current ternary group data;
carrying out Hash operation on the entities, the relations and the attributes to obtain corresponding coded data;
and establishing the resource description framework triple mapping relation table by adopting the entities, the relations, the attributes and the coded data corresponding to the entities.
6. The method of claim 2 or 5, wherein the apparatus further comprises:
acquiring the new triple data;
extracting the coded data in the entity of the new triple data;
and inquiring the resource description frame triple mapping relation table according to the coded data to obtain corresponding current triple data.
7. An apparatus for tracing a resource description framework triple, comprising:
the triple data acquisition module is used for acquiring current triple data;
the coded data acquisition module is used for coding each element in the current ternary group data to obtain coded data;
and the composition module is used for taking the coded data as an entity to compose new triple data.
8. The apparatus of claim 1, further comprising:
and the relation table establishing module is used for establishing a resource description framework triple mapping relation table.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method for tracing resource description framework triples according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for tracing resource description framework triples according to any one of claims 1 to 6.
CN201910806106.3A 2019-08-29 2019-08-29 Method, device and equipment for tracing resource description framework triple Pending CN112182139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910806106.3A CN112182139A (en) 2019-08-29 2019-08-29 Method, device and equipment for tracing resource description framework triple

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910806106.3A CN112182139A (en) 2019-08-29 2019-08-29 Method, device and equipment for tracing resource description framework triple

Publications (1)

Publication Number Publication Date
CN112182139A true CN112182139A (en) 2021-01-05

Family

ID=73919476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910806106.3A Pending CN112182139A (en) 2019-08-29 2019-08-29 Method, device and equipment for tracing resource description framework triple

Country Status (1)

Country Link
CN (1) CN112182139A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080243908A1 (en) * 2007-03-29 2008-10-02 Jannes Aasman Method for Creating a Scalable Graph Database Using Coordinate Data Elements
CN105447156A (en) * 2015-11-30 2016-03-30 北京航空航天大学 Resource description framework distributed engine and incremental updating method
CN105930419A (en) * 2016-04-19 2016-09-07 福州大学 RDF data distributed parallel semantic coding method
CN107315801A (en) * 2017-06-22 2017-11-03 中国人民解放军国防科学技术大学 Parallel Discrete Event Simulation system initialization date storage method
CN109359172A (en) * 2018-08-02 2019-02-19 浙江大学 A kind of entity alignment optimization method divided based on figure
CN109800317A (en) * 2018-03-19 2019-05-24 中山大学 A kind of image querying answer method based on the alignment of image scene map
CN109885699A (en) * 2019-02-15 2019-06-14 中国人民解放军国防科技大学 Method and device for storing resource description information of cloud simulation model based on knowledge graph

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080243908A1 (en) * 2007-03-29 2008-10-02 Jannes Aasman Method for Creating a Scalable Graph Database Using Coordinate Data Elements
CN105447156A (en) * 2015-11-30 2016-03-30 北京航空航天大学 Resource description framework distributed engine and incremental updating method
CN105930419A (en) * 2016-04-19 2016-09-07 福州大学 RDF data distributed parallel semantic coding method
CN107315801A (en) * 2017-06-22 2017-11-03 中国人民解放军国防科学技术大学 Parallel Discrete Event Simulation system initialization date storage method
CN109800317A (en) * 2018-03-19 2019-05-24 中山大学 A kind of image querying answer method based on the alignment of image scene map
CN109359172A (en) * 2018-08-02 2019-02-19 浙江大学 A kind of entity alignment optimization method divided based on figure
CN109885699A (en) * 2019-02-15 2019-06-14 中国人民解放军国防科技大学 Method and device for storing resource description information of cloud simulation model based on knowledge graph

Similar Documents

Publication Publication Date Title
CN108491320A (en) Exception analysis method, device, computer equipment and the storage medium of application program
CN106202235A (en) A kind of data processing method and device
CN107870989A (en) webpage generating method and terminal device
CN113254445B (en) Real-time data storage method, device, computer equipment and storage medium
CN110245469A (en) Watermark generation method, watermark analytic method, device and the storage medium of webpage
CN109657177A (en) The generation method of the page, device, storage medium and computer equipment after upgrading
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN108809943B (en) Website monitoring method and device
CN106649210B (en) Data conversion method and device
Pooseh et al. A numerical scheme to solve fractional optimal control problems
CN112182139A (en) Method, device and equipment for tracing resource description framework triple
CN109684339B (en) Supply and demand document adjusting method and device, computer equipment and storage medium
CN109241371B (en) Map data storage method, map data loading method, map data storage device, map data loading device and computer equipment
US20190279012A1 (en) Methods, systems, apparatuses and devices for facilitating inspection of industrial infrastructure by one or more industry experts
CN115935909A (en) File generation method and device and electronic equipment
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
CN114239521A (en) Contract template generation method and device, computer equipment and storage medium
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN112800396B (en) Page watermark generation method, device, equipment, storage medium and program product
CN115145391B (en) AI deep learning-based virtual reality treadmill self-adaptation method and system
US20160155054A1 (en) Method of Operating a Solution Searching System and Solution Searching System
CN115827762A (en) Data offline export method and device
CN113590372A (en) Log-based link tracking method and device, computer equipment 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