CN104765850A - Ontology storing method and system based on relation database - Google Patents

Ontology storing method and system based on relation database Download PDF

Info

Publication number
CN104765850A
CN104765850A CN201510187796.0A CN201510187796A CN104765850A CN 104765850 A CN104765850 A CN 104765850A CN 201510187796 A CN201510187796 A CN 201510187796A CN 104765850 A CN104765850 A CN 104765850A
Authority
CN
China
Prior art keywords
resource
memory module
language
relational database
ontology
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
CN201510187796.0A
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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201510187796.0A priority Critical patent/CN104765850A/en
Publication of CN104765850A publication Critical patent/CN104765850A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an ontology storing method and system based on a relation database. The method includes the following steps of configuring ontology storage modes, corresponding to ontology languages, based on the relation database according to the ontology languages, wherein each ontology language corresponds to one ontology storage mode, and each ontology storage mode at least comprises a resource data list and a relation data list of resources; establishing the database according to the ontology storage modes, and storing ontology in the database according to the ontology storage modes. According to the method, by flexibly configuring the ontology storage modes, the ontology for establishing the different ontology languages is stored in the relation database, and the method has the advantages of being high in inquiry efficiency, easy to understand, maintain and expand and suitable for the different ontology languages.

Description

Based on body storage means and the storage system of relational database
Technical field
The present invention relates to Computer Applied Technology field, particularly a kind of body storage means based on relational database and storage system.
Background technology
Body is clear and definite, the formal normalized illustration of shared ideas model, it defines in specific knowledge field, the classification of concept and mutual relationship, is widely used in the representation of knowledge in computer realm; Body has four large features: the phenomenon of generalities in objective world is abstracted into conceptual model; Formalization with accurate mathematical linguistics but not these concepts of natural language description, ensures that computing machine can understand body; Concept in clear and definite body and relation thereof are all clearly defined; Shared body can be regarded as the common recognition reached between body user, the concept set of generally acknowledging in reflection association area, and object realizes sharing of knowledge.
Current body storage means, according to the difference of storage medium, mainly comprises: based on the storage mode of internal memory, plain text storage mode and the storage mode based on database.Wherein, storage mode based on database can be subdivided into again the storage based on relational database, the storage based on object-oriented database and storage 3 class based on Native XML (Extensible Markup Language, extend markup language) database.Further, based on the storage of relational database, in the current generation, because the maturation of relevant database is with stable, have broad application prospects.
In relevant database, the memory module of body mainly comprises horizontal pattern, vertical mode, resolution model and mixed mode.Wherein, mixed mode can possess the advantages such as easy to understand, search efficiency are high, Stability Analysis of Structures by good design, therefore applies comparatively extensive.
Ontology Language, in continuous evolution, experienced by RDF, RDFS, OIL, DAML+OIL, OWL; And OWL can be divided into OWL lite, OWL DL, OWL Full, namely its semantic description ability constantly strengthens.Wherein, RDF (ResourceDescription Framework) is World Wide Web Consortium, W3C, the resource description framework proposed, it is described that the relation between resource and resource, comprise resource (Resource), attribute (Property) and statement (Statement); RDFS (RDF Schema) is on the basis of RDF framework, definition describes the word-building used in resource, introduce class (Class), attribute (Property), relation (subClassOf) between class, the relation (subPropertyOf) between attribute, the field of definition (Domain) of attribute and codomain (Range); OWL expands on the basis of RDFS, new class can be constructed on the basis of other classes by logical combination operator, class can be defined by attribute constraint, the feature etc. of attribute can be stated, OWL provides more powerful descriptive power, support reasoning better, OWL provides the sublanguage increased progressively of three kinds of descriptive powers, OWL Lite, OWL DL, OWL Full.Wherein, OWL Lite provides single taxonomical hierarchy and simple attributes binding function, supports that radix value is the concept mutual relationship restriction of 0 or 1; OWL DL provides ability to express powerful as far as possible, comprises whole word-buildings of OWL, but must meet certain restriction when using, to keep calculating completeness, judgement property; OWL Full comprises the whole word-building of OWL, and eliminates the restriction of OWL DL, provides the strongest, ability to express freely.
The core of the storage of body in relational database sets up the memory module of body in relational database, at present, existing part achievement in research: Sesame for RDB is the memory module of RDF data based on relational database MySQL of Sesame open source projects realization, but can not meet the storage needs of OWL body; Chen Guangyi etc. propose ROSP and mix memory module, and meet the storage needs of OWL DL, but pattern is brief not, search efficiency has much room for improvement; Muhammad Shoaib establishes ERMOS memory module, meets the storage needs of OWL, has higher recall precision for example class knowledge; Li Man etc. propose a kind of new body mixing memory module, are applicable to the extensive body of OWL, but only cover most of OWL word-building; Jian Zhou etc. have developed Minerva system, demand can customize the memory module of OWL body by inference.
In addition, basic only towards the specific Ontology Language of one based on the Ontology Storage Technology of relational database in correlation technique, can not flexible configuration body memory module, meet the storage needs of the body that different Ontology Language builds, and be difficult to the whole word-buildings supporting OWL Full language completely, and it is higher to possess search efficiency simultaneously, easy to understand, maintenance, expansion, adapt to the feature of different Ontology Language.
Summary of the invention
The present invention is intended to solve one of technical matters in above-mentioned correlation technique at least to a certain extent.
For this reason, one object of the present invention is that proposing one can carry out flexible configuration to body memory module, the simple and convenient body storage means based on relational database.
Another object of the present invention is to propose a kind of body storage system based on relational database.
For achieving the above object, one aspect of the present invention embodiment proposes a kind of body storage means based on relational database, comprise the following steps: the body memory module based on relational database corresponding with described Ontology Language according to Ontology Language configuration, wherein, often kind of corresponding a kind of body memory module of Ontology Language, described body memory module at least comprises the mutual relationship tables of data of resource data table and resource; According to described body memory module building database, and body is stored in the database according to described body memory module.
According to the body storage means based on relational database that the embodiment of the present invention proposes, by the body memory module based on relational database corresponding according to Ontology Language configuration, and according to body memory module building database, body is stored in a database according to body memory module, thus realize carrying out flexible configuration to body memory module, meet the storage demand of body in relevant database that different Ontology Language builds, possesses search efficiency high, easy to understand, maintenance, expansion, adapt to the feature of different Ontology Language.
In addition, the body storage means based on relational database according to the above embodiment of the present invention can also have following additional technical characteristic:
Further, in one embodiment of the invention, described Ontology Language comprises: RDF language, RDFS language and OWL language.
Further, in one embodiment of the invention, if described Ontology Language is RDFS language, then corresponding with the described RDFS language body memory module based on relational database also comprises: the additional information data table of resource note table and resource; If described Ontology Language is OWL language, then corresponding with the described OWL language body memory module based on relational database also comprises: the additional information data table of resource note table, implicit resource tables of data and resource.
Further, in one embodiment of the invention, described resource data table comprises resources table and namespace table; The mutual relationship tables of data of described resource comprises: equalityrelation table, subresourceof table and triperelation table.
Further, in one embodiment of the invention, described resource note table comprises annotations table; Described implicit resource tables of data comprises classexpression table and resourcebooleanoperation table; The additional information data table of described resource comprises resourcefield table and resourcecharacter table.
Further, in one embodiment of the invention, the additional information data table of the mutual relationship tables of data of described resource data table, resource, described resource note table, described implicit resource tables of data and described resource includes: key.
Further, in one embodiment of the invention, described key is the MD5 value of the content described based on described Ontology Language.
Further, in one embodiment of the invention, described relational database is MySQL database.
The present invention on the other hand embodiment proposes a kind of body storage system based on relational database, comprise: body memory module configuration module, for the body memory module based on relational database corresponding with described Ontology Language according to Ontology Language configuration, wherein, often kind of corresponding a kind of body memory module of Ontology Language, described body memory module at least comprises the mutual relationship tables of data of resource data table and resource; Database operating modules, for according to described body memory module building database, and stores body in the database according to described body memory module.
According to the body storage system based on relational database that the embodiment of the present invention proposes, by the body memory module based on relational database corresponding according to Ontology Language configuration, and according to body memory module building database, body is stored in a database according to body memory module, thus realize carrying out flexible configuration to body memory module, meet the storage demand of body in relevant database that different Ontology Language builds, possesses search efficiency high, easy to understand, maintenance, expansion, adapt to the feature of different Ontology Language.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
Above-mentioned and/or additional aspect of the present invention and advantage will become obvious and easy understand from accompanying drawing below combining to the description of embodiment, wherein:
Fig. 1 is the process flow diagram of the body storage means based on relational database according to the embodiment of the present invention;
Fig. 2 is according to an embodiment of the invention based on the OWL body memory module schematic diagram of relational database;
Fig. 3 is according to an embodiment of the invention based on the RDF body memory module schematic diagram of relational database;
Fig. 4 is according to an embodiment of the invention based on the RDFS body memory module schematic diagram of relational database;
Fig. 5 is according to an embodiment of the invention for database (owlmapdatabase2) schematic diagram of body storage;
Fig. 6 is the body storage program schematic diagram write of JAVA language according to an embodiment of the invention;
Fig. 7 is body event memory schematic diagram in relational database according to an embodiment of the invention; And
Fig. 8 is the structural representation of the body storage system based on relational database according to the embodiment of the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise one or more these features.In describing the invention, the implication of " multiple " is two or more, unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, the term such as term " installation ", " being connected ", " connection ", " fixing " should be interpreted broadly, and such as, can be fixedly connected with, also can be removably connect, or connect integratedly; Can be mechanical connection, also can be electrical connection; Can be directly be connected, also indirectly can be connected by intermediary, can be the connection of two element internals.For the ordinary skill in the art, above-mentioned term concrete meaning in the present invention can be understood as the case may be.
In the present invention, unless otherwise clearly defined and limited, fisrt feature second feature it " on " or D score can comprise the first and second features and directly contact, also can comprise the first and second features and not be directly contact but by the other characterisation contact between them.And, fisrt feature second feature " on ", " top " and " above " comprise fisrt feature directly over second feature and oblique upper, or only represent that fisrt feature level height is higher than second feature.Fisrt feature second feature " under ", " below " and " below " comprise fisrt feature directly over second feature and oblique upper, or only represent that fisrt feature level height is less than second feature.
Describe the body storage means based on relational database and storage system that propose according to the embodiment of the present invention with reference to the accompanying drawings, describe the body storage means based on relational database proposed according to the embodiment of the present invention first with reference to the accompanying drawings.With reference to shown in Fig. 1, this storage means comprises the following steps:
S101, the body memory module based on relational database corresponding with Ontology Language according to Ontology Language configuration, wherein, often kind of corresponding a kind of body memory module of Ontology Language, body memory module at least comprises the mutual relationship tables of data of resource data table and resource.
Preferably, in one embodiment of the invention, relational database can be MySQL database.
Wherein, in one embodiment of the invention, Ontology Language can comprise: RDF language, RDFS language and OWL language.
Further, in one embodiment of the invention, if Ontology Language is RDFS language, then corresponding with the RDFS language body memory module based on relational database also comprises: the additional information data table of resource note table and resource; If Ontology Language is OWL language, then corresponding with the OWL language body memory module based on relational database also comprises: the additional information data table of resource note table, implicit resource tables of data and resource.
Further, in one embodiment of the invention, resource data table can comprise resources table and namespace table; The mutual relationship tables of data of resource comprises equalityrelation table, subresourceof table and triperelation table.
Further, in one embodiment of the invention, resource note table can comprise annotations table; Implicit resource tables of data comprises classexpression table and resourcebooleanoperation table; The additional information data table of resource comprises resourcefield table and resourcecharacter table.
Wherein, in one embodiment of the invention, the additional information data table of the mutual relationship tables of data of resource data table, resource, resource note table, implicit resource tables of data and resource includes: key.Preferably, in one embodiment of the invention, key can for describing the MD5 value of content based on described Ontology Language.
S102, according to body memory module building database, and stores body in a database according to body memory module.
In an embodiment of the present invention, the embodiment of the present invention is to the body memory module of the weak Ontology Language design basis of semantic description ability, along with the enhancing of Ontology Language semantic description ability, the growth of word-building, can new table be added by demand or expand the row of existing table under the body memory module on basis, but do not reduce table or delete the existing row shown, realize the storage of the body that the strong Ontology Language of semantic description ability builds, thus by appropriate design body memory module, distinguish ontology describing content, set up different tables and store respectively.Wherein, storage resources, between resource, the table of mutual relationship can be different table, further, different tables can be adopted to store dissimilar resource, different tables can be adopted to store mutual relationship information between dissimilar storage resources, and be the information of regular length by a kind of suitable algorithm by the information MAP of every line item of table, when the information of every line item is different, can think that after mapping, the information of regular length is different, the information of this regular length can as the major key of table, and a table of OWL resource will be described as master meter, with the regular length information after the information MAP of every line item for major key, by external key, other table can form master-salve table relation with this table.
With a specific embodiment, the present invention is described in detail below.
In one particular embodiment of the present invention, the embodiment of the present invention is divided into two parts content, Part I provides the memory module by inventive concept and content design, by flexible configuration memory module, adapt to the storage needs that RDF, RDFS, OWL Lite, OWL DL, OWL Full builds body respectively; Part II, according to body memory module, the body realizing OWL language structure stores in MySQL relational database.
(1) body memory module:
Core based on the Ontology Storage Technology of relational database is the design of memory module; By inventive concept and content, the memory module of different Ontology Language can be different; The Ontology Language that language descriptive power is stronger, the memory module of its correspondence can be more complicated.First the memory module of the strongest OWL Full of semantic description ability is provided, mainly as shown in Figure 2.
Body extensive in relevant database is stored, for meeting the higher requirement of search efficiency, reply major key appropriate design; The essential information of the every line item of preferential employing MD5 (Message-Digest Algorithm 5) process tables of data, as long as the essential information of every line item is different, it has been generally acknowledged that the character string of the regular length after md5 encryption is different, this character string is applicable to the major key as tables of data.Result hereinafter referred to as md5 encryption information is " the MD5 value " of this information.
Resource in Ontology Language OWL comprises class, attribute and example; What class represented is concept, and carrying out instantiation to concept, is exactly example; Attribute then describes the mutual relationship between concept, between concept and example, between example.
Further, resources table and namespace table is adopted to record resource; Adopt classexpression table, resourcebooleanoperation table explanation explanation implicit resource; Adopt the field of resourcefield table, resourcecharacter table description resource, scope and characteristic; Adopt equalityrelation table, subresourceof table, triperelation table that the mutual relationship of resource is described.
Carry out the resource in unique mark body with URI in OWL, its URI is made up of namespace and localname; Due to Knowledge Aggregation, shared needs, the resource that localname is identical, namespace is different, when semantic congruence, what can think description is same resource, and acquiescence adopts initial NameSpace.
Wherein, namespace table is adopted to store namespace information: to use Name row to store namespace occurrence; NameSpaceID row are used to store the MD5 value of Name column information.
Further, resources table is adopted to store resource in OWL, the localname of LocalName row storage resources or implicit resource expression formula in table; The namespace information of NameSpace row correlated resources; Type row illustrate the type of resource, containing OWLCLASS (dominant concept), OWLCLASSEXPRESSION (recessive concept), OWLDATATYPE (data type concept), OWLINDIVIDUAL (example), OWLOBJECTPROPER (object class attribute), OWLDATAPROPERTY (data class attribute), ANNOTATIONPROPERTY, ONTOLOGYPROPERTY etc.; ResourceID row store the MD5 value of LocalName column information.
Classexpression table makes an explanation to the recessive concept defined by attribute in resources table; The recessive concept of ClassExpID row association in table; PropertyID row relating attribute information; The type of RestrictionType mark restriction, as min, max, exactly, some, only, value; CardinalityNum stores the numerical value of Limit Type min, max, exactly; The destination object (concept or example) of ValueStr row relating attribute; The classification of the recessive concept of TypeStr row mark, containing OBJECT_EXACT_CARDINALITY, DATA_EXACT_CARDINALITY, OBJECT_SOME_VALUES_FROM, DATA_SOME_VALUES_FROM, OBJECT_ALL_VALUES_FROM, DATA_ALL_VALUES_FROM, OBJECT_MIN_CARDINALITY, DATA_MIN_CARDINALITY, OBJECT_MAX_CARDINALITY, DATA_MAX_CARDINALITY, OBJECT_HAS_VALUE, DATA_HAS_VALUE etc.
Resourcebooleanoperation table is described the implicit resource obtained through resource boolean operation in resource table; Wherein, this implicit resource in ResultResource row association resources table, BooleanType row describe the type of boolean operation, comprise or, not, and; Resource1 with Resource2 associates the related resource of boolean operation, as operation relates to a resource, only uses Resource1, as operation relates to resource more than two, then decomposes boolean operation expression formula; AxiomType row describe corresponding axiom type, comprise OBJECT_ONE_OF, OBJECT_UNION_OF, OBJECT_INTERSECTION_OF, OBJECT_COMPLEMENT_OF, DISJOINT_UNION.In addition, this table is used to the attribute chain launching to come from axiom SUB_PROPERTY_CHAIN_OF, and its BooleanType is defined as chain, and its AxiomType is defined as PROPETY_CHAIN.
Resourcefield shows field and the scope of the connection of current description attribute; Wherein ResourceID associates the attribute related to, the field that ResDomain with ResRange row relating attribute is connected and scope, i.e. the resource of ResDomain row association is connected to the resource of ResRange row association by the attribute that ResourceID associates; Corresponding OWL axiom type comprises OBJECT_PROPERTY_DOMAIN, DATA_PROPERTY_DOMAIN, OBJECT_PROPERTY_RANGE, DATA_PROPERTY_RANGE etc.
Resourcecharacter table describes the feature of resource; Resource row associate the resource be described; CharacterType row describe the characteristic type of resource, containing FUNCTIONAL, SYMMERTIC, ASYMMETRIC, INVERSE_FUNCTIONAL, IRREFLEXIVE, REFLEXIVE, TRANSITIVE; Type row describe corresponding axiom type, have FUNCTIONAL_OBJECT_PROPERTY, FUNCTIONAL_DATA_PROPERTY, SYMMETRIC_OBJECT_PROPERTY, ASYMMETRIC_OBJECT_PROPERTY, INVERSE_FUNCTIONAL_OBJECT_PROPERTY, IRREFLEXIVE_OBJECT_PROPERTY, REFLEXIVE_OBJECT_PROPERTY, TRANSITIVE_OBJECT_PROPERTY etc.
Equalityrelation table is for describing the paried comparison relation between concept, between example, between attribute; The resource that Resource1, Resource2 row association relativity relates to; EqualityType describes the type of relativity between resource, comprises EQUIVALENT_OBJECT_PROPERTIES, EQUIVALENT_DATA_PROPERTIES, EQUIVALENT_CLASSES, SAME_INDIVIDUALS, DISJOINT_CLASSES, DIFFERENT_INDIVIDUALS, INVERSE_OBJECT_PROPERTIES, DISJOINT_OBJECT_PROPERTIES, DISJOINT_DATA_PROPERTIES etc.
Subresourceof table describes the membership between resource, and the resource of SubResource row association is under the jurisdiction of the resource of SuperResource row association; Type row describe the type be subordinate to, and comprise SUBCLASS_OF, CLASS_ASSERTION, SUB_OBJECT_PROPERTY, SUB_PROPERTY_CHAIN_OF, SUB_DATA_PROPERTY, HAS_KEY, SUB_ANNOTATION_PROPERTY_OF, DECLARTION etc.
Triperelation table stores the mutual relationship connected by attribute between example, and Subject, Predicate, Object row associate corresponding example, attribute, example respectively; Type describes the axiom type be subordinate to, and comprises DATA_PROPERTY_ASSERTION, NEGATIVE_DATA_PROPERTY_ASSERTION, OBJECT_PROPERTY_ASSERTION, NEGATIVE_OBJECT_PROPERTY_ASSERTION.
Annotations table stores the annotation to resource, NameSpace, and RefResource, ValResource, AnnotationType row illustrate object, notes content, the type of comment of annotation respectively; AnnotationType is associated with type of comment by external key, mainly comprises AnnotationProperty and OntologyProperty two class; And the value of RefResource row, ValResource row will adopt the value of the major key of resources table or namespace table, improve search efficiency, save storage space.In addition, the table etc. of SWRL (Semantic Web Rule Language) is described in addition.
For RDF language, use above-mentioned namespace, resources, triperelation table, see Fig. 3; For RDFS language, on RDF basis, increase resourcefield, subresourceof, annotations table, see Fig. 4; OWL Lite, OWL DL, OWL Full, then on RDFS basis, increase the tables such as equalityrelation, resourcecharacter, resourcebooleanoperation, classexpression, main as Fig. 2.
(2) body based on relational database stores:
For the storage of body in relevant database that RDF, RDFS, OWL Lite, OWL DL or OWL Full language builds, first, according to the memory module based on relational database that Ontology Language is corresponding, by relational data library software building database (as set up each table, relation between table); Subsequently, adopt sql like language, body is stored in database according to memory module, with reference to shown in table 1.
Table 1
Particularly, in an embodiment of the present invention, first press the body memory module shown in Fig. 2, construct owlmapdatabase2 database by MySQLWorkbench, see Fig. 5; Subsequently, under windows platform, adopt OWL API, write body storage program based on JAVA language, the body automatically realizing adopting OWL Lite, OWL DL, OWL Full language builds is stored into the lane database set up in MySQL, as shown in Figure 6 and Figure 7.
The embodiment of the present invention is in Windows XP system, based on Mysql database, application OWL API, employing JAVA programming language carries out case realization, can according to the difference of Ontology Language, flexible configuration is carried out to body memory module, meets the storage demand of body in Mysql relational data that RDF, RDFS, OWL Lite, OWL DL or OWL Full Ontology Language builds.
Further, in one embodiment of the invention, the embodiment of the present invention can along with the enhancing of RDF, RDFS, RDFS, OWL Lite, OWL DL, OWL Full descriptive power, its body memory module can increase corresponding table, realize above-mentioned Ontology Language and build the storage of body in relational database, and at least one table can be adopted to record resource; Adopt at least two tables in addition to explain and implicit resource is described; The field of at least two table description resources in addition, scope and characteristic can be adopted; The mutual relationship of at least three table explanation resources in addition can be adopted; Body stores easy to understand, maintenance and expansion, and the resource that can be recorded by a table in body, because different resource can be variant, a kind of suitable algorithm can be adopted to be the different information that can be considered regular length by the information MAP of each resource, as the major key of this table, as adopted MD5 (Message-Digest Algorithm 5) algorithm; Other table can connect this table by external key, and this table and other tables just form master-salve table relation; Save storage space, search efficiency is high.
According to the body storage means based on relational database that the embodiment of the present invention proposes, by the body memory module based on relational database corresponding according to Ontology Language configuration, and according to body memory module building database, so that body is stored in a database according to body memory module, thus realize carrying out flexible configuration to body memory module, meet the storage demand of body in relevant database that different Ontology Language builds, possesses search efficiency high, easy to understand, maintenance, expansion, adapt to the feature of different Ontology Language.
The body storage system based on relational database proposed according to the embodiment of the present invention is described with reference to the accompanying drawings.With reference to shown in Fig. 8, this storage system 100 comprises: body memory module configuration module 10 and database operating modules 20.
Wherein, body memory module configuration module 10 is for the body memory module based on relational database corresponding with Ontology Language according to Ontology Language configuration, wherein, often kind of corresponding a kind of body memory module of Ontology Language, body memory module at least comprises the mutual relationship tables of data of resource data table and resource.Body for according to body memory module building database, and stores in a database according to body memory module by database operating modules 20.
Should be understood that can be identical with the workflow of the body storage means based on relational database of the embodiment of the present invention according to the specific implementation process of the body storage system based on relational database of the embodiment of the present invention, is no longer described in detail herein.
According to the body storage means based on relational database that the embodiment of the present invention proposes, by the body memory module based on relational database corresponding according to Ontology Language configuration, and according to body memory module building database, so that body is stored in a database according to body memory module, thus realize carrying out flexible configuration to body memory module, meet the storage demand of body in relevant database that different Ontology Language builds, possesses search efficiency high, easy to understand, maintenance, expansion, adapt to the feature of different Ontology Language.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art can change above-described embodiment within the scope of the invention when not departing from principle of the present invention and aim, revising, replacing and modification.

Claims (9)

1., based on a body storage means for relational database, it is characterized in that, comprise the following steps:
The body memory module based on relational database corresponding with described Ontology Language according to Ontology Language configuration, wherein, often kind of corresponding a kind of body memory module of Ontology Language, described body memory module at least comprises the mutual relationship tables of data of resource data table and resource;
According to described body memory module building database, and body is stored in the database according to described body memory module.
2. the body storage means based on relational database according to claim 1, it is characterized in that, described Ontology Language comprises: RDF language, RDFS language and OWL language.
3. the body storage means based on relational database according to claim 2, is characterized in that,
If described Ontology Language is RDFS language, then corresponding with the described RDFS language body memory module based on relational database also comprises: the additional information data table of resource note table and resource;
If described Ontology Language is OWL language, then corresponding with the described OWL language body memory module based on relational database also comprises: the additional information data table of resource note table, implicit resource tables of data and resource.
4. the body storage means based on relational database according to claim 3, is characterized in that, described resource data table comprises resources table and namespace table; The mutual relationship tables of data of described resource comprises: equalityrelation table, subresourceof table and triperelation table.
5. the body storage means based on relational database according to claim 4, is characterized in that, described resource note table comprises annotations table; Described implicit resource tables of data comprises classexpression table and resourcebooleanoperation table; The additional information data table of described resource comprises resourcefield table and resourcecharacter table.
6. the body storage means based on relational database according to claim 5, it is characterized in that, the additional information data table of the mutual relationship tables of data of described resource data table, resource, described resource note table, described implicit resource tables of data and described resource includes: key.
7. the body storage means based on relational database according to claim 6, is characterized in that, described key is the MD5 value describing content based on described Ontology Language.
8. the body storage means based on relational database according to any one of claim 1-7, is characterized in that, described relational database is MySQL database.
9., based on a body storage system for relational database, it is characterized in that, comprising:
Body memory module configuration module, for the body memory module based on relational database corresponding with described Ontology Language according to Ontology Language configuration, wherein, often kind of corresponding a kind of body memory module of Ontology Language, described body memory module at least comprises the mutual relationship tables of data of resource data table and resource;
Database operating modules, for according to described body memory module building database, and stores body in the database according to described body memory module.
CN201510187796.0A 2015-04-20 2015-04-20 Ontology storing method and system based on relation database Pending CN104765850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510187796.0A CN104765850A (en) 2015-04-20 2015-04-20 Ontology storing method and system based on relation database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510187796.0A CN104765850A (en) 2015-04-20 2015-04-20 Ontology storing method and system based on relation database

Publications (1)

Publication Number Publication Date
CN104765850A true CN104765850A (en) 2015-07-08

Family

ID=53647678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510187796.0A Pending CN104765850A (en) 2015-04-20 2015-04-20 Ontology storing method and system based on relation database

Country Status (1)

Country Link
CN (1) CN104765850A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101149748A (en) * 2007-10-29 2008-03-26 浙江大学 Editing method of semantic mapping information between ontology schema and relational database schema
US20100063982A1 (en) * 2006-11-20 2010-03-11 Matrikon Inc. Ontological database design
CN103793465A (en) * 2013-12-20 2014-05-14 武汉理工大学 Cloud computing based real-time mass user behavior analyzing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100063982A1 (en) * 2006-11-20 2010-03-11 Matrikon Inc. Ontological database design
CN101149748A (en) * 2007-10-29 2008-03-26 浙江大学 Editing method of semantic mapping information between ontology schema and relational database schema
CN103793465A (en) * 2013-12-20 2014-05-14 武汉理工大学 Cloud computing based real-time mass user behavior analyzing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
卢传耀: "基于面向文档的NoSQL数据库的RDF数据存储实现", 《电子技术与软件工程》 *
陈光仪: "基于关系数据库的本体存储研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Similar Documents

Publication Publication Date Title
Bonifati et al. Querying graphs
Angele et al. Ontologies in F-logic
Pardillo et al. Using ontologies for the design of data warehouses
Brockmans et al. Visual modeling of OWL DL ontologies using UML
Hitzler et al. OWL 2 web ontology language primer
Bergamaschi et al. A semantic approach to ETL technologies
Barba-González et al. BIGOWL: Knowledge centered big data analytics
Konstantinou et al. Ontology and database mapping: a survey of current implementations and future directions
Gómez-Romero et al. A fuzzy extension of the semantic building information model
Heflin An introduction to the owl web ontology language
CN101017432A (en) Management method of component library
Ahmed et al. Merged ontology for engineering design: Contrasting empirical and theoretical approaches to develop engineering ontologies
Villazón-Terrazas et al. Reusing and re-engineering non-ontological resources for building ontologies
Zhou et al. Tool for translating relational databases schema into ontology for semantic web
Da Silva et al. Semantic interoperability of heterogeneous semantic resources
CN104765850A (en) Ontology storing method and system based on relation database
Boronat et al. An algebraic baseline for automatic transformations in mda
Xiao et al. Semantic Mappings for the Integration of XML and RDF Sources
Hess et al. Ontology-based verification of core model conformity in conceptual modeling
Dimitriadis et al. How to integrate databases without starting a typology war: The Typological Database System
Zhang et al. Storing fuzzy description logic ontology knowledge bases in fuzzy relational databases
Cruz The emerging semantic web: selected papers from the first Semantic Web Working Symposium
Darari et al. LinkedLab: A linked data platform for research communities
Imam et al. NIFSTD and NeuroLex: Comprehensive Neuroscience Ontology Development Based on Multiple Biomedical Ontologies and Community Involvement.
Trinh et al. Semantic interoperability between relational database systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150708