CN105808853B - A kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method - Google Patents
A kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method Download PDFInfo
- Publication number
- CN105808853B CN105808853B CN201610133259.2A CN201610133259A CN105808853B CN 105808853 B CN105808853 B CN 105808853B CN 201610133259 A CN201610133259 A CN 201610133259A CN 105808853 B CN105808853 B CN 105808853B
- Authority
- CN
- China
- Prior art keywords
- ontology
- file
- data
- module
- database
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/20—Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining methods.Service module is called including reasoning module, ontological construction module, database conversion module, database storage module and ontology knowledge;Ontological construction module into storage and manages ontology using distributing ontology storage file, and distributing ontology storage file includes logical layer ontology file, data Layer ontology file and management level ontology file;After obtaining ontology knowledge and calling the inquiry request that service module is sent out, the management level file of ontological construction module screens the body of data file in ontology library by management logic and is supplied to logical layer ontology file reasoning module;Logic finds information needed in the ontology file that screening obtains and is supplied to reasoning module logical layer file by inference;The present invention can improve the efficiency of data management, and a kind of effective method is provided for the engineer application of semantic network technology.
Description
Technical field
The invention belongs to semantic net engineer applications and intelligent ancillary works design field more particularly to a kind of Engineering Oriented to answer
Ontological construction management and ontology data automatic obtaining method.
Background technology
The development of semantic net and body constructing method and technology at present is concentrated mainly on body constructing method research, knows
Know the fields such as expression grammar research, ontology knowledge learning method and technical research, relational database technology research.Ontology knowledge and
The storage of data is mainly realized by relational database.And the development of CAD is still in area of computer aided and puts down
The structure and exploitation of platform or software, computational methods are developed and the fields such as optimization.
Existing body constructing method and relational database technology can not meet the requirement of semantic network engineer application, existing
There is method that there is the problems such as ontology file is big, Maintenance Difficulty, expert's dependence are strong, database expansion is fast in building process;Although
Mass data is mapped to by relational database can improve the efficiency of management of data in the example of ontology file, but instantly
There has been no the methods of high-efficient automatic mapping.
Mapping techniques field between ontology knowledge and data it is more mature be OBDA.OBDA uses newest ontology
Language OWL2QL provides more complete ontology data Mapping and Converting language and method.Main mapping method has three
Simple corresponding (D2RQ) of class --- ontology class and attribute and database table column;Database schema is described on the basis of preceding a kind of
Element and the semantic relation of ontology entity time (OntoGrate);Complex mappings based on view --- emphasis is towards from different
Data are obtained in structure database.But due to using conventional bulk construction method, just need to solve one to carry out engineer application
Large-scale ontology file and multiple isomeric data bi-directional conversion mapping problems;However, structural difference big feelings more in database type
Under condition, mapping the degree of automation of OBDA is unsatisfactory.
Invention content
The object of the present invention is to provide a kind of data management efficiency is high, and Engineering Oriented is applied ontological construction management and sheet
Volume data automatic obtaining method.
A kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method, including reasoning module, this
Body builds module, database conversion module, database storage module and ontology knowledge and calls service module;
Ontological construction module into storage and manages ontology using distributing ontology storage file, distributing ontology storage text
Part includes logical layer ontology file, data Layer ontology file and management level ontology file;Reasoning module is obtaining ontology knowledge tune
After the inquiry request sent out with service module, the management level file of ontological construction module is by managing logic to the number in ontology library
It is screened according to ontology file and is supplied to logical layer ontology file;The logical layer file sheet that logic is obtained in screening by inference
Information needed is found in body file and is supplied to reasoning module;
Data conversion module, including ontology file are reflected to database file transform subblock and database file automated ontology
Penetrate transform subblock;
Database storage module, including triple database and engineer application process database, triple database pass through
Ontology file completes the mapping of data Layer ontology file to database file transform subblock;Engineer application process database passes through
Triple database be automatically performed Mapping and Converting work, data store organisation be by corresponding data Layer ontology file towards
Engineering software inputoutput data structure determine;The module is that ontological construction module and ontology knowledge call service module to establish
Data flow path;
Ontology knowledge calls service module, which provides foreground service to the user, and be using network server as core
Engineer application process database and engineer application software establish interface;Engineer application software is by calling engineering data base to be marked
Initial input needed for quasi- model running calls and after operation standard model, work is written in the ect data files of output data
Journey application process database;The module obtains input data from user, and by result of calculation input database memory module.
A kind of ontological construction management of Engineering Oriented application of the present invention and ontology data automatic obtaining method, can also wrap
It includes:
1, the management method of distributing ontology storage file is:
A1 top-level logic ontology files need each domain expert of concurrent engineering to build jointly;Towards every engineer application task
Logical layer ontology file built by each domain expert, relationship is set in last layer logic ontology between the logic ontology of bottom
It sets;
A2 data Layer ontology file templates are built by domain expert, and data structure is according to corresponding engineer application task
The generation of process data is established with use form by automatic mapping form;
A3 expert's creative management layer ontology file template, and the classification relation of each data Layer ontology is set in a template, with
And the logical relation between each template and corresponding logical layer ontology file;
A4 user generates the ontology file with project data, newly-generated data after carrying out intelligent ancillary works application
Ontology file is saved in ontology file library, is managed by management level ontology file;Logic between newly-generated ontology file
Relationship inherits the relationship between corresponding body of data template, and the data knowledge in file will be included in the grammer of enquiry module automatically
In system;
The data generated during a5 engineer applications are stored in engineering data base;File in engineering data base is by expert
Maintenance and management, general user is without operation.
2, the construction method of ontological construction module is:
B1 analyzes the architecture of X field Industrial Engineering Life cycle items application work, builds full Life Cycle respectively
Phase system model LCM, and it is every using data inheritance relational model SDM between work;List every theory for applying work
Method and implementation tool are simultaneously fabricated to method base MB and kit TB;List the resource collection R of system;
B2 builds five top layer class knots respectively in top-level logic ontology file, respectively according to LCM, SDM, R, MB and TB
Structure;Respectively this five top layer classes add subclass;It is that setting sequence is closed between each subclass in LCM according to the timeline of engineer application
The entity attribute of system, and be that confession entity attribute is arranged in the subclass corresponded in the subclass and LCM in SDM on timeline;According to number
It is that the entity attribute of data flow is set in SDM between each subclass according to inheritance;It is the subclass in MB and TB according to application field
Subordinate entity attribute is arranged in subclass corresponding with SDM;
B3 establishes data Layer ontology file template one by one according to the engineering properties of types of applications task in SDM;The mould of structure
Class in plate file only describes engineer application the variable and invariant of data in the process;It is established in top layer class formation
Primary Key classes are used for the label of data;Data attribute is arranged to each class, cancels the subordinate relation that each class is included,
It sets a property one by one, and each data attribute domain must contain PK;
B4 establishes the class of management level ontology file, and is all kinds of setting subclasses according to the characteristics of the scale of concurrent engineering;Root
According to the body of data file generated during engineer application, it is inserted into example in management level ontology file, to each body of data
File is marked and links.
3, the specific operation process of database conversion module is:
C1 uses Jena SDB memory technologies, builds the storage of RDF resources and obtains access rights;
C2 obtains information, the ontology-database for completing them such as table name, major key, external key of table in editor's ontology file and reflects
It penetrates;The ontology-Database Mapping method includes three steps:(1) Jena ARQ ontology query techniques are used, it is defined
Ontology file mapping relations template file in the information in relation to table name and PK, and generate table name and PK relationship map files;(2)
Using Jena ARQ ontology query techniques, obtain in ontology file mapping relations template file in relation to non-corresponding to table name and table
Other column information of PK major keys, and generate table name and field relationship map file;(3) Jena ARQ Ontology Query skills are used
Art obtains in ontology file mapping relations template file in relation to external key Foreigner Key (FK) letters corresponding to table name and table
Breath, and generate table name and foreign key relationship mapped file;
C3 is by obtaining to obtain mapping relations replacement SQL and ODBC file templates in step c2;
C4 executes SQL files using JDBC, completes automatic conversion of the ontology file to database file;In Prot é g é rings
Ontop API carries OBDA files under border realize automatic mapping of the project data into data Layer ontology file example.
Advantageous effect:
Method proposed by the present invention and the system built using this method, the ontological construction that can be provided through the invention
The example in ontology file is completed in the automatic conversion of knowledge data and mapping in method supporting relation database and engineering data base
A large amount of project data are automatically stored, the efficiency of data management is improved, one kind is provided for the engineer application of semantic network technology
Effective method.
The present invention builds the logical layer of ontology and data Layer as a result of layer-stepping body constructing method respectively;Do not make
Mapping relations directly occur for ontology file and data with existing library, but (each masterplate is directed to one by data Layer ontology masterplate
A engineer application software in engineer application field) automatically generated data library table, avoid one large-scale ontology file towards
Multiple heterogeneous database biaxial stress structure problems, it is achieved that the efficient automatic input of ontology data example into ontology file,
A large amount of engineer application process data efficient systemizations are realized orderly to store.Due to using this method solve engineer application fields
The two-way automatic input problem of ontology file and data file makes semantic net platform be designed with intelligent ancillary works to combine.
Method proposed by the present invention and the system built under method have the following advantages:
The system framework built on the basis of method proposed by the present invention has good open and maintainable ---
The structure of logical layer ontology can be added according to the difference for being related to field, not break fast overall structure, and not only ontological construction is imitated
Rate is improved, and the maintenance of body contents is very convenient;After the entity of description frontier ontology is added, it is only necessary to configure
Corresponding data Layer ontology file, so that it may with by the view plug-ins encapsulated in data conversion module realize ontology database from
Dynamicization structure is and to establish data with engineer application software and contact, the degree of automation is higher;If replacing engineer application software,
It only needs to reconfigure corresponding software interface in ontology knowledge calls service module and the criterion calculation mould of new software is provided
Type does not influence the calling for having interface and existing software, open higher.
The system of this method structure can effectively support knowledge reasoning query function --- the logical layer ontology of semantic net
File has ensured the description of all entity class relationships and example relationship, supports the use of query language and tool;Management level ontology
File has ensured the orderly management of the data Layer ontology file of each storage project data, and carries out structure to its system, realizes
Pre- inquiry before reasoning inquiry, simplifies the complexity of query language, improves the efficiency of reasoning.
This method is that semantic net and engineer application establish bridge by ontology, can effectively improve the intelligence of Industrial Engineering
And the degree of automation --- by automatic mapping function, project data is stored in data Layer ontology file, and passes through management
Layer ontology file is effectively managed, and solves the problems, such as the efficient storage and intelligent management of a large amount of project data.Each data
There is fixed URL to number in ontology file, avoids the case where data are using conflict in different user concurrent design process
Occur.Query function can be that user's intelligent inference goes out required data and information, improve the efficiency of work.
This method structure system can effectively support concurrent engineering efficient development --- project data is not only in number
According to being preserved in the database for being preserved in layer ontology file, and being automatically generated in system operation, this
Sample equally supports traditional engineering process data management;In addition, the network service module developed in system will can effectively be known
Know intelligence inquiry and preliminary auxiliary intelligent design function is integrated, ensures each field administrative staff, researcher, designer simultaneously
Row is carried out the work and is learnt.
Description of the drawings
The ontological construction management of Fig. 1 Engineering Orienteds application builds frame diagram with ontology data automatic obtaining method system;
Fig. 2 data conversions and automatic obtaining method flow chart;
The Computer Aided Design basic operation of the ontological construction management and ontology data automatic obtaining method of the application of Fig. 3 Engineering Orienteds
Flow chart;
The ontological construction management of Fig. 4 Engineering Orienteds application inquires basic operation with the reasoning of ontology data automatic obtaining method
Flow chart;
Fig. 5 system ontology file management methods.
Specific implementation mode
The present invention is described in further details below in conjunction with attached drawing.
The invention discloses a kind of ontological construction management of Engineering Oriented application and the automatic acquiring technology of ontology data, the skills
Art obtains ontology data automatically, the mapping of ontology knowledge base construction method, ontology knowledge and memory technology provide it is efficiently feasible
Method.The structure of the technology by ontological construction module, data memory module, network foreground as shown in Figure 1, mainly service mould
The compositions such as block, data conversion module and reasoning enquiry module:
1) reasoning enquiry module, in the system built to motion method using Ontology query language ontology knowledge and data into
Row reasoning is inquired, and Query Information is fed back to user on network english teaching platform.
2) ontological construction module, the module using this patent design distributing ontology storage file to ontology into storage and
Management.So-called distributing ontology storage file is made of three parts, be respectively logical layer ontology file, data Layer ontology file and
Management level ontology file, file create on Prot é g é platforms.1. logical layer file is responsible for all knowledge and data in system
Between interactively attribute be described, and for reasoning enquiry module provide inference logic basis;2. data Layer file is right respectively
Entity class in corresponding logical layer ontology file carries out properties of data structures description, and is the life of back-end data library file
Master pattern is provided at data management processes;3. management level file is responsible for returning the body of data file in ontology library
Class, mark, and body of data is integrated into system by correlation logic layer ontology;Ontology library is responsible for the data sheet that storage generates
Body file (referring specifically in specific implementation mode to the detailed description of body constructing method).
3) data conversion module is from " ontology file to database file transform subblock " and " database file automated ontology
Mapping and Converting submodule " forms.The former completes data Layer ontology file to triple by Jena on network server platform
The Mapping and Converting of database file;The latter passes through the mistake of definition on the basis of the data structure of corresponding data Layer ontology file
Automatic mapping of the Cheng Shixian project data into body of data file on example, as shown in Figure 2 (referring specifically to hereinafter to data
The detailed description that conversion module function is realized).
4) include triple database and engineer application process database in database storage module.Triple database is logical
Cross the mapping that " ontology file to database file conversion module " completes data Layer ontology file;Engineer application process database is logical
It crosses triple database and is automatically performed Mapping and Converting work, data store organisation is by corresponding data Layer ontology file face
To engineering software inputoutput data structure determine;Engineer application process database is various to what is generated during engineer application
Design, calculate, the process datas such as emulation are stored, do not need ordinary user and participate in safeguarding, the data that user uses will be by
Completely it is mapped in body of data file.Two databases play the role of the transfer of data conversion, and the data that the former stores exist
It can be deleted after completing mapping process, the data of the latter's storage can carry out higher level operation by expert.
5) ontology knowledge calls service module using network server as core, provides foreground service to the user, and is engineering
Application process database and engineer application software establish interface --- and engineer application software is by calling engineering data base to be marked
The original input data of quasi- model running is called and after operation standard model, work is written in the ect data files of output data
Journey application process database.User can carry out knowledge-based reasoning inquiry by network server, can select required data
Layer ontology file and establish the background data base of oneself, can access and administration authority allow background data base, can select
And call engineer application software.
The basic operation flow of the present invention is as follows:
1. the invention provides intelligent Computer Aided Design pattern and uses two kinds of function choosing-items of query function.If using intelligence auxiliary
Design function then needs to have checked whether corresponding data Layer ontology file template.If without template, need to be answered according to engineering
With requiring to build corresponding data Layer ontology file;If there is template, the template is selected.
2. template file is converted by triple database file by the data format conversion module in calling system, and
According to the data structure in template database is generated with relationship.
3. user by network english teaching platform by the primary data typing engineer application process database of engineer application,
And the file in database is added, is deleted and modification is until obtaining ideal input result.
4. the required engineer application software of user's selection simultaneously inputs logging data, master pattern is called to be calculated or imitated
Very.
5. obtained engineer application data automatic input engineer application process database, and be automatically mapped in step 1 and select
In the example for the data Layer ontology file template selected, which is separately stored in ontology library.
6. if user selects query function, the ontology file in ontology library is carried out by file management ontology first pre-
Screening, obtains all relevant ontology files, then carries out knowledge query in the file that screening obtains using enquiry module.
It is specific as shown in Figure 3, Figure 4.
Ontology knowledge file storage of the present invention and management method:
1. top-level logic ontology file needs each domain expert of concurrent engineering to build jointly;Towards every engineer application task
Logical layer ontology file then built by each domain expert, relationship is set in last layer logic ontology between the logic ontology of bottom
It sets.As shown in Figure 5.
2. data Layer ontology file template is also built by domain expert, data structure is according to corresponding engineer application task
The generation of process data is established with use form.
3. needing expert's creative management layer ontology file, and the classification of each data Layer ontology template file is set hereof
Logical relation between relationship and each template and corresponding logical layer ontology file.
4. user will generate the ontology file with project data, newly-generated number after carrying out intelligent ancillary works application
It will be saved in ontology file library according to ontology file, be managed by management level ontology file.Between newly-generated ontology file
Logical relation inherits the relationship between corresponding body of data template, and the data knowledge in file will be included in enquiry module automatically
In grammer system.
5. the data generated during engineer application are also stored in engineering data base.File in engineering data base is by special
Family's maintenance and management, ordinary user is without operation.
The present invention discloses ontological construction management and the ontology data automatic obtaining method of a kind of Engineering Oriented application, specific to walk
It is rapid as follows:According to the system performance construction logic layer ontology file in application project field, and build reasoning enquiry module;According to work
The engineer application data flow characteristics of specific works in journey system build data Layer ontology file;According to body of data file format
Type and subordinate relation structure management level ontology file simultaneously build ontology library for three kinds of ontology files;According to each data Layer ontology
File structure feature builds database table automatic mapping module based on Jena, and establishes triple database automatically and engineering is answered
Use database;Module of the project data to data Layer ontology file example automatic input is built based on OBDA;Build network service
Platform is established associated interface for ontology library, triple database, engineer application database and engineer application software, is carried for user
For the service of the functions such as reasoning inquiry, data management and Computer Aided Design.
One, a kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method, this method include pushing away
It manages module, ontological construction module, database conversion module, database storage module and ontology knowledge and calls service module:
1.1 reasoning enquiry modules, ontology knowledge and data in the system built to motion method using Ontology query language
Inquiry is made inferences, Query Information is fed back into user on network english teaching platform.The module is obtaining ontology knowledge tune
After the inquiry request sent out with service module, information is obtained by logical layer ontology file and feeds back to respective request.
1.2 ontological construction modules, the module is using the distributing ontology storage file of this patent design to ontology into storage
And management.So-called distributing ontology storage file is made of three parts, is logical layer ontology file, data Layer ontology file respectively
With management level ontology file, file creates on Prot é g é platforms.Data Layer file is divided into engineer application process data library file
Generation provide master pattern;After obtaining inquiry request, management level file is by managing logic to the data sheet in ontology library
Body file is screened and is supplied to logical layer ontology file;The logical layer file ontology text that logic is obtained in screening by inference
Information needed is found in part and is supplied to reasoning enquiry module.
1.3 data conversion modules, the module is from " ontology file to database file transform subblock " and " database file
Automated ontology mapping transform subblock " forms.The former by Jena, completed on network service platform data Layer ontology file to
The Mapping and Converting of triple database file;The latter is on the basis of the data structure of corresponding data Layer ontology file, by fixed
The process of justice realizes automatic mapping of the project data into body of data file on example.The module is ontological construction module sum number
Data automatic conversion channel is established according to library module.
1.4 database storage modules, the module include triple database and engineer application process database.Triple number
The mapping of data Layer ontology file is completed by " ontology file to database file conversion module " according to library;Engineer application crosses number of passes
Mapping and Converting work is automatically performed by triple database according to library, data store organisation is by corresponding data Layer ontology
File towards engineering software inputoutput data structure determine;Engineer application process database during engineer application to generating
Various designs, calculating, the process datas such as emulation are stored.The module is that ontological construction module and ontology knowledge call service
Module establishes data flow path.
1.5 ontology knowledges call service module, which provides foreground service to the user using network server as core,
And establish interface for engineer application process database and engineer application software.Engineer application software is by calling engineering data base to obtain
To the initial input needed for master pattern operation, calls and after operation standard model, the ect data files of output data are write
Enter engineer application process database.The module obtains input data from user, and by result of calculation input database memory module.
Two, file management method is as follows in the system built:
2.1 top-level logic ontology files need each domain expert of concurrent engineering to build jointly;Appoint towards every engineer application
The logical layer ontology file of business is then built by each domain expert, and relationship is in last layer logic ontology between the logic ontology of bottom
Setting.
2.2 data Layer ontology file templates are built by domain expert, and data structure is according to corresponding engineer application task
The generation of process data established by automatic mapping form with use form.
2.3 expert's creative management layer ontology file template, and the classification relation of each data Layer ontology is set in a template, with
And the logical relation between each template and corresponding logical layer ontology file.
2.4 users will generate the ontology file with project data after carrying out intelligent ancillary works application, newly-generated
Body of data file will be saved in ontology file library, be managed by management level ontology file.Between newly-generated ontology file
Logical relation inherit the relationship between corresponding body of data template, the data knowledge in file will be included in enquiry module automatically
Grammer system in.
The data generated during 2.5 engineer applications are also stored in engineering data base.File in engineering data base by
Expert maintenance and management, general user is without operation.
Three, the body constructing method of Engineering Oriented application is specific as follows:
3.1 analyze the architecture of certain field Industrial Engineering Life cycle items application work, build full life respectively
Period system model LCM (life cycle model), and it is every using data inheritance relational model SDM between work
(subject data model);It lists every theoretical method using work and implementation tool and is fabricated to method base MB
(methods base) and kit TB (tools base);List the resource collection R (resources) of system.
3.2 in top-level logic ontology file, builds five top layer class knots respectively according to LCM, SDM, R, MB and TB respectively
Structure;Respectively this five top layer classes add subclass;It is that setting sequence is closed between each subclass in LCM according to the timeline of engineer application
The entity attribute of system, and be that confession entity attribute is arranged in the subclass corresponded in the subclass and LCM in SDM on timeline;According to number
It is that the entity attribute of data flow is set in SDM between each subclass according to inheritance;It is the subclass in MB and TB according to application field
Subordinate entity attribute is arranged in subclass corresponding with SDM.
3.3, according to the engineering properties of types of applications task in SDM, establish data Layer ontology file template one by one.Structure
Class in template file only describes engineer application the variable and invariant of data in the process;It is established in top layer class formation
Primary Key (PK) class is used for the label of data;Data attribute is arranged to each class, cancels the subordinate that each class is included
Relationship sets a property one by one, and each data attribute domain must contain PK.
3.4 establish management level ontology according to application type, field, the importance etc. of the data Layer structural body template of structure
The class of file, and be all kinds of setting subclasses according to the characteristics of the scale of concurrent engineering;According to the number generated during engineer application
According to ontology file, it is inserted into example in management level ontology file, each body of data file is marked and is linked.
Four, ontology file is realized to data file automatic conversion and the method for project data automatic input ontology entity
It is as follows:
4.1 use Jena SDB memory technologies, build the storage of RDF resources and obtain access rights.
4.2 obtain the information such as table name, major key, external key of table in editor's ontology file, and the ontology-proposed using this patent
Database Mapping method completes the mapping of their correspondence.So-called ontology-Database Mapping method is walked including once three
Suddenly:(1) Jena ARQ ontology query techniques are used, in defined ontology file mapping relations template file in relation to table name and
The information of PK, and generate table name and PK relationship map files;(2) Jena ARQ ontology query techniques are used, ontology file is obtained
Other column information in relation to the non-PK major keys corresponding to table name and table in mapping relations template file, and generate table name and field
Relationship map file;(3) Jena ARQ ontology query techniques are used, related table in ontology file mapping relations template file is obtained
External key Foreigner Key (FK) information corresponding to name and table, and generate table name and foreign key relationship mapped file.
4.3 by obtaining to obtain mapping relations replacement SQL and ODBC file templates in step 2.
4.4 execute SQL files using JDBC, complete automatic conversion of the ontology file to database file;In Prot é g é rings
Ontop API carries OBDA files under border realize automatic mapping of the project data into data Layer ontology file example.
Fixation body constructing method of the technology towards engineer application:
1. analyzing the architecture of certain field Industrial Engineering Life cycle items application work, full Life Cycle is built respectively
Phase system model LCM, and it is every using data inheritance relational model SDM between work;List every theory for applying work
Method and implementation tool are simultaneously fabricated to method base MB and kit TB;List the resource collection R of system.
2. in top-level logic ontology file, five top layer class knots are built respectively according to LCM, SDM, R, MB and TB respectively
Structure;Respectively this five top layer classes add subclass;It is that setting sequence is closed between each subclass in LCM according to the timeline of engineer application
The entity attribute (object property) of system, and be that the subclass setting corresponded in the subclass and LCM in SDM on timeline supplies
State entity attribute;It is that the entity attribute of data flow is set in SDM between each subclass according to data inheritance relationship;According to application field
For the subclass subclass corresponding with SDM in MB and TB, subordinate entity attribute is set.
3. according to the engineering properties of types of applications task in SDM, data Layer ontology file template is established one by one.The mould of structure
Class in plate file only describes engineer application the variable and invariant of data in the process;PK classes are established in top layer class formation,
Label for data;To each class setting data attribute (data property), cancels the subordinate that each class is included and close
System, sets a property one by one, and the domain of each data attribute Id must contain PK.
4. establishing management level ontology according to application type, field, the importance etc. of the data Layer structural body template of structure
The class of file, and be all kinds of setting subclasses according to the characteristics of the scale of concurrent engineering;According to the number generated during engineer application
According to ontology file, it is inserted into example in management level ontology file, each body of data file is marked and is linked.
The technical data is converted and automatic obtaining method:
It is as shown in Figure 2 to map general thought:
1:Using Jena SDB memory technologies, builds the storage of RDF resources and obtain access rights.
2:Obtain the information such as table name, major key, external key of table in editor's ontology file, and the ontology-proposed using this patent
Database Mapping method completes the mapping of their correspondence.So-called ontology-Database Mapping method is walked including once three
Suddenly:(1) Jena ARQ ontology query techniques are used, in defined ontology file mapping relations template file in relation to table name and
The information of P major key Primary Key (PK), and generate table name and PK relationship maps file (referring to step A);(2) Jena is used
ARQ ontology query techniques obtain in ontology file mapping relations template file in relation to the non-PK major keys corresponding to table name and table
Other column information, and generate table name and field (column) relationship map file (referring to step B);(3) Jena ARQ are used
Ontology query technique obtains in ontology file mapping relations template file in relation to the external key Foreigner corresponding to table name and table
Key (FK) information, and generate table name and foreign key relationship mapped file (referring to step C).
3:By obtaining to obtain mapping relations replacement SQL and ODBC file templates in step 2 (detailed step is shown in D, E).
4:SQL files are executed using JDBC, using ontop API carry OBDA files, then obtain ontology from database
The step of data and method are as follows.
Step A. obtains the metamessage of table, and creates database table name:
If all data attribute collection are combined into DP in data Layer ontology file, then have:
DP=dp | dpx∈ DP, x ∈ [1, X] } formula 1
In formula:X is positive integer.
If the domain collection of all data attributes is combined into DPD, then have:
DPD=dpd | dpdxy∈ DPD, x ∈ [1, X], y ∈ [1, Y] } formula 2
In formula:X, Y are positive integers.
If first key class is PK in ontology file.
Traverse dpdxy, find dpdxyIt is the dp of PKxSet ListPK, then have:
ListPK=lpk | dpdmn=lpkΔ, lpkΔ∈ ListPK, m ∈ [1, M], n ∈ [1, N], Δ ∈ [1, δ], 1≤δ
≤ X } formula 3
In formula:M, N, δ are positive integers.
Traverse lpkΔ, find dpdmnIt is not the dp of PKm。
According to dpmName character establish corresponding database table name, if table name list be set ListTable, then have:
ListTable={ ltα|ltα∈ ListTable, α ∈ [1, A], A≤δ } formula 4
In formula:A is positive integer.
Step B. obtains the metamessage of field, and adds field for the database created:
Traverse dpx, from the dpd deleted in set DP in set ListPKxyIt is the dp of PKx, set ListEL is obtained, then
Have:
ListEL=lel | dpx=lelΔ, lelΔ∈ ListEL, x ∈ [1, X], Δ ∈ [1, δ], 1≤δ≤X } formula 5
X in formula, Δ are positive integers.
According to dp in ListELxTitle add field in the corresponding data table created, if table name list be set
ListColumn then has:
ListColumn={ lcβ|lcβ∈ ListColumn, β ∈ [1, B], B≤δ } formula 6
In formula:B is positive integer.
Step C. obtains the metamessage of class, establishes external connection table:
If all entity attributes (subject property) are set SP in data Layer ontology file, then have:
SP=sp | spi∈ SP, i ∈ [1, I] } formula 7
In formula:I is positive integer.
If spiDomain in the collection of all domain be combined into SPD, then have:
SPD=spd | spdij∈ SPD, i ∈ [1, I], j ∈ [1, J] } formula 8
In formula:I, J are positive integer.
If spiRange in the collection of all range be combined into SPR, then have:
SPR=spr | spriq∈ SPD, i ∈ [1, I], q ∈ [1, Q] } formula 9
In formula:I, Q are positive integer.
Traverse spi, all spdij and spriq are found, and external connection table, external connection are established according to the title of their corresponding classes
Table table name is set ListFK, then has:
ListFK=lfk | lpkε∈ ListPK, ε ∈ [1, ∈], 1≤∈≤I } formula 10
In formula:∈, I are positive integers.
Step D. generates the configuration file that ontology file is mapped to data file:
Based on three kinds of configuration method templates in Jena, ListTable, the ListColumn obtained according to step A, B and C
It writes sql sentences respectively with ListFK, obtains three configuration files.
Three configuration files are merged into unified sql sentences and are encapsulated.
The sentence of the encapsulation is integrated in network service module, can automatically be mapped the data Layer ontology file of selection simultaneously
Generate engineer application process database.
Step E. generates the Map Profile of ontology data automatic input into instances of ontology:
Based on three kinds of configuration method templates in OBDA, ListTable, the ListColumn obtained according to step A, B and C
It writes sql sentences respectively with ListFK, obtains three configuration files.
Three configuration files are merged into unified OBDA automatic mapping files.
The envelope automatic mapping file is integrated in network service module, can be automatically by the engineer application process data of selection
Project data in library is simultaneously entered into the example of data Layer ontology file.
Claims (4)
1. ontological construction management and the ontology data automatic obtaining method of a kind of Engineering Oriented application, it is characterised in that:Including pushing away
It manages module, ontological construction module, database conversion module, database storage module and ontology knowledge and calls service module;
Ontological construction module is stored and is managed to ontology using distributing ontology storage file, distributing ontology storage file
Including logical layer ontology file, data Layer ontology file and management level ontology file;Reasoning module is obtaining ontology knowledge calling
After the inquiry request that service module is sent out, the management level file of ontological construction module is by managing logic to the data in ontology library
Ontology file is screened and is supplied to logical layer ontology file;The logical layer file ontology that logic is obtained in screening by inference
Information needed is found in file and is supplied to reasoning module;
Data conversion module, including ontology file turn to database file transform subblock and database file automated ontology mapping
Change submodule;
Database storage module, including triple database and engineer application process database, triple database pass through ontology
File completes the mapping of data Layer ontology file to database file transform subblock;Engineer application process database passes through ternary
Group database be automatically performed Mapping and Converting work, data store organisation be by corresponding data Layer ontology file towards work
Journey software inputoutput data structure determines;The module is that ontological construction module and ontology knowledge call service module to establish data
Circulation road;
Ontology knowledge calls service module, which provides foreground service to the user using network server as core, and is engineering
Application process database and engineer application software establish interface;Engineer application software is by calling engineering data base to obtain master die
Initial input needed for type operation calls and after operation standard model, the ect data files write-in engineering of output data is answered
Use process database;The module obtains input data from user, and by result of calculation input database memory module.
2. a kind of ontological construction management of Engineering Oriented application according to claim 1 and the ontology data side of acquisition automatically
Method, it is characterised in that:The management method of the distributing ontology storage file is:
A1 top-level logic ontology files need each domain expert of concurrent engineering to build jointly;Towards patrolling for every engineer application task
It collects layer ontology file to be built by each domain expert, relationship is arranged in last layer logic ontology between the logic ontology of bottom;
A2 data Layer ontology file templates are built by domain expert, and data structure is according to the process of corresponding engineer application task
The generation of data is established with use form by automatic mapping form;
A3 expert's creative management layer ontology file template, and the classification relation of each data Layer ontology is set in a template, and it is each
Logical relation between template and corresponding logical layer ontology file;
A4 user generates the ontology file with project data, newly-generated body of data after carrying out intelligent ancillary works application
File is saved in ontology file library, is managed by management level ontology file;Logical relation between newly-generated ontology file
The relationship between corresponding body of data template is inherited, the data knowledge in file will be included in the grammer system of enquiry module automatically
In;
The data generated during a5 engineer applications are stored in engineering data base;File in engineering data base is by expert maintenance
And management, non-expert user is without operation.
3. a kind of ontological construction management of Engineering Oriented application according to claim 1 and the ontology data side of acquisition automatically
Method, it is characterised in that:The construction method of the ontological construction module is:
The architecture of b1 analysis projects field Industrial Engineering Life cycle items application work, builds Life cycle respectively
System model LCM, and it is every using data inheritance relational model SDM between work;List every theory side for applying work
Method and implementation tool are simultaneously fabricated to method base MB and kit TB;List the resource collection R of system;
B2 builds five top layer class formations according to LCM, SDM, R, MB and TB respectively in top-level logic ontology file;Respectively
This five top layer classes add subclass;It is the entity that ordinal relation is set in LCM between each subclass according to the timeline of engineer application
Attribute, and be that subordinate entity attribute is arranged in the subclass corresponded in the subclass and LCM in SDM on timeline;It is closed according to data inheritance
System is the entity attribute that data flow is arranged in SDM between each subclass;According to application field be MB and TB in subclass and SDM in it is right
The subclass setting subordinate entity attribute answered;
B3 establishes data Layer ontology file template one by one according to the engineering properties of types of applications task in SDM;The template text of structure
Class in part only describes the variable and invariant of available data during engineer application;Primary is established in top layer class formation
Key classes are used for the label of data;Data attribute is arranged to each class, cancels the subordinate relation that each class is included, is arranged one by one
Attribute, and each data attribute domain must contain Primary Key;
B4 establishes the class of management level ontology file, and is all kinds of setting subclasses according to the characteristics of the scale of concurrent engineering;According to work
The body of data file generated in journey application process, example is inserted into management level ontology file, to each body of data file
It is marked and links.
4. a kind of ontological construction management of Engineering Oriented application according to claim 1 and the ontology data side of acquisition automatically
Method, it is characterised in that:The specific operation process of the database conversion module is:
C1 uses Jena SDB memory technologies, builds the storage of RDF resources and obtains access rights;
C2 obtains the table name of table, major key, foreign key information in editor's ontology file, completes their ontology-Database Mapping;Institute
It includes three steps to state ontology-Database Mapping method:(1) Jena ARQ ontology query techniques are used, defined ontology
Information in relation to table name and Primary Key in File Mapping relationship templates file, and generate table name and Primary Key relationships
Mapped file;(2) Jena ARQ ontology query techniques are used, obtain in ontology file mapping relations template file in relation to table name and
Other column information of non-Primary Key major keys corresponding to table, and generate table name and field relationship map file;(3) make
With Jena ARQ ontology query techniques, obtain in ontology file mapping relations template file in relation to the external key corresponding to table name and table
Foreigner Key information, and generate table name and foreign key relationship mapped file;
C3 replaces SQL and ODBC file templates by the mapping relations obtained in step c2;
C4 executes SQL files using JDBC, completes automatic conversion of the ontology file to database file;Under Prot é g é environment
Ontop API carry OBDA files realize automatic mapping of the project data into data Layer ontology file example.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610133259.2A CN105808853B (en) | 2016-03-09 | 2016-03-09 | A kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610133259.2A CN105808853B (en) | 2016-03-09 | 2016-03-09 | A kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105808853A CN105808853A (en) | 2016-07-27 |
CN105808853B true CN105808853B (en) | 2018-08-17 |
Family
ID=56466983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610133259.2A Active CN105808853B (en) | 2016-03-09 | 2016-03-09 | A kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105808853B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106980901B (en) * | 2017-04-15 | 2019-09-13 | 福州大学 | Streaming RDF data parallel reasoning algorithm |
CN107368302B (en) * | 2017-06-28 | 2020-04-24 | 东南大学 | Design pattern recognition method based on ontology |
CN107506527B (en) * | 2017-07-28 | 2021-01-15 | 中国船舶重工集团公司第七一九研究所 | Thermodynamic system construction method and system based on mapping reasoning |
CN107870898B (en) * | 2017-10-11 | 2021-09-14 | 广州极天信息技术股份有限公司 | Domain semantic web modeling method oriented to engineering application |
CN108647395A (en) * | 2018-04-11 | 2018-10-12 | 北京仿真中心 | A kind of construction method of the design ontology of Complex Product design process |
CN108647196B (en) * | 2018-04-16 | 2022-10-25 | 北京航空航天大学 | Artificial intelligence generation method and device for table in digital aircraft simulation report |
CN111633644A (en) * | 2020-05-15 | 2020-09-08 | 哈尔滨工程大学 | Industrial robot digital twin system combined with intelligent vision and operation method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710343A (en) * | 2009-12-11 | 2010-05-19 | 北京中机科海科技发展有限公司 | Body automatic build system and method based on text mining |
CN104182454A (en) * | 2014-07-04 | 2014-12-03 | 重庆科技学院 | Multi-source heterogeneous data semantic integration model constructed based on domain ontology and method |
CN105205190A (en) * | 2014-06-10 | 2015-12-30 | 南京理工大学 | Ontology construction methodology for complex product design |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040107076A1 (en) * | 2002-12-03 | 2004-06-03 | Chien-Ming Tseng | Method and system for integration of engineering change data |
-
2016
- 2016-03-09 CN CN201610133259.2A patent/CN105808853B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710343A (en) * | 2009-12-11 | 2010-05-19 | 北京中机科海科技发展有限公司 | Body automatic build system and method based on text mining |
CN105205190A (en) * | 2014-06-10 | 2015-12-30 | 南京理工大学 | Ontology construction methodology for complex product design |
CN104182454A (en) * | 2014-07-04 | 2014-12-03 | 重庆科技学院 | Multi-source heterogeneous data semantic integration model constructed based on domain ontology and method |
Non-Patent Citations (1)
Title |
---|
基于本体的领域特征建模过程研究;顾剑华等;《计算机应用与软件》;20080228;第25卷(第2期);第7-9、34页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105808853A (en) | 2016-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105808853B (en) | A kind of ontological construction management of Engineering Oriented application and ontology data automatic obtaining method | |
Maedche et al. | Managing multiple ontologies and ontology evolution in ontologging | |
Pardillo et al. | Using ontologies for the design of data warehouses | |
CN110837492A (en) | Method for providing data service by multi-source data unified SQL | |
CN105469204A (en) | Reassembling manufacturing enterprise integrated evaluation system based on deeply integrated big data analysis technology | |
Berko et al. | Application of ontologies and meta-models for dynamic integration of weakly structured data | |
Huh | Modelbase construction with object‐oriented constructs | |
CN111159427B (en) | Knowledge graph construction method and system based on crowdsourcing | |
Shoval et al. | Hierarchical entity-relationship diagrams: the model, method of creation and experimental evaluation | |
Mancas | MatBase—A tool for transparent programming while modeling data at conceptual levels | |
Martino et al. | Semantic techniques for discovering architectural patterns in building information models | |
Rivero et al. | A reference architecture for building semantic-web mediators | |
Poinot et al. | Seven keys for practical understanding and use of CGNS | |
OUKHOUYA et al. | Automating Data Warehouse Design With MDA Approach Using NoSQL and Relational Systems | |
Van Bommel | Transformation of knowledge, information and data: theory and applications | |
Silva-Lepe | Techniques for Reverse-engineering and Re-engineering into the Object-Oriented Paradigm | |
Pons et al. | Schema evolution in object databases by catalogs | |
Ahmadi et al. | Automatic Data Migration between Two Databases with Different Structure | |
Gorskis et al. | Ontology-Based System Development for Medical Database Access | |
Mayadewi et al. | Scheme mapping for relational database transformation to ontology: A survey | |
Nagy et al. | Uncertainty Handling in the Context of Ontology Mapping for Question-Answering. | |
Barbosa et al. | An ontology for the recommendation of technically qualified teams in distributed software projects | |
Buccella et al. | Ontology-Based Data Integration | |
Wielinga et al. | Knowledge technology: Moving into the next millennium | |
Zhang | Design of Visual Information Model of Blockchain Intelligent Interactive Data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |