A method for storing ontology data
A data storage and ontology technology, applied in database models, relational databases, electronic digital data processing, etc., can solve the problems of multiple databases, complex queries, weak expressive ability of RDF or OWL, etc., and achieve the effect of strong expressive ability and simple design
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2018-12-04
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present invention relates to the technical field of ontology data storage, in particular to a method for storing ontology data. Background technique
[0002] With the development of information technology, the trend of intellectualization and intelligence of information technology makes the representation of information and data not only stay at the grammatical level, but also focus on the semantic and pragmatic levels. As a conceptual model that can describe information and data at the semantic level, ontology provides a good way to solve this kind of problem.
[0003] Ontology originates from the concept of philosophy. From the perspective of philosophy, ontology is a systematic explanation and illustration of objective existence, and is concerned with the abstract nature of objective reality. In the field of artificial intelligence, an ontology is defined as: "the explicit specification of a conceptual model". Since ontology was proposed, it h...
Examples
Embodiment 1
[0060] The present invention provides a method for storing ontology data, such as figure 1 As shown, it is a schematic diagram of the ontology data structure of the present invention. In the figure, c1, c2, c3... are concepts or instances, and r1, r2, r3... are relations or attributes, wherein c1 has r1 and r2 attributes, and concept c2 has r3, r4 attributes....
[0061] The present invention proposes a kind of ontology storage method based on Nosql database for this ontology data structure, concrete steps are as follows:
[0062] 1) Establish the database structure for ontology data storage:
[0063] Create a data table group in the Nosql database, the data table group includes: concept term table (ConTerm), concept data table (ConData), relational term table (RelTerm), relational data table (RelData) and id pool table (IdPool) , ID numbers of concepts and ID numbers of relationships are set in the id pool table, such as figure 2 shown.
[0064] Concept Glossary (ConTerm...
Embodiment 2
[0086] This embodiment is to figure 1 An example of storing the ontology data in the ontology database:
[0087] 1) Establish the database structure for ontology data storage:
[0088] Create a data table group in the Nosql database, the data table group includes: concept term table (ConTerm), concept data table (ConData), relational term table (RelTerm), relational data table (RelData) and id pool table (IdPool) ; ID numbers of concepts and ID numbers of relationships are set in the id pool table.
[0089] 2), concept storage:
[0090] (1) Store the concept c1 in the ontology database, and write the term c1 as the key value of term in the ConTerm table;
[0091] (2) Take out the id number of a concept from the IdPool table, such as '001', and use it as the key value of cid in the ConTerm table;
[0092] (3) Write '001' as the key value of cid in the ConData table;
[0093] (4) Write the term 'c1' as the key value of 'syn' in the ConData table;
[0094] (5) Other concept...