OWL本体存储工具模块设计与测试
将OWL本体文件存储到MySQL数据库

[转发]实现将OWL本体文件存储到MySQL数据库首先配置好开发环境,我采用的是Eclipse +mysql-essential-5.1.51-win32,对于MySQL的JDBC选择的是mysql-connector-java-5.0.8。
我把JDBC在D盘的根目录下解压缩,在环境变量中将JDBC的所在地址加入原有的 classpath中,然后开始存储本体文件工作。
1. 利用MySQL创建一个数据库:create database jena;2. 打开Eclipse,新建一个Java工程,起名为Persistent。
3. 新建工程的同时,分别导入Jena包和MySQL的JDBC。
4. 在工程Persistent\src\目录下新建一个Java文件,名字为Persistent.java;5. 开始编写以下代码:import java.io.*;import java.sql.SQLException;import com.hp.hpl.jena.db.*;import com.hp.hpl.jena.rdf.model.*;public class Persistent {public static final String strDriver = "com.mysql.jdbc.Driver";public static final String strURL = "jdbc:mysql://localhost:3306/jena"; // localhost的后面要直接写冒号,再写3306;public static final String strUser = "root";public static final String strPassword = "root";public static final String strDB = "MySQL";public static void main(String[] args){try {DBConnection connection = new DBConnection(strURL, strUser, strPassword, strDB);// 创建连接时,第四个参数需要指定所用的数据库类型;也就是说strDB的值应该是“MySQL”try {Class.forName("com.mysql.jdbc.Driver");System.out.println("驱动程序已经安装。
OWL

腿~
2系 统 实现
本设计基于J a v a 平 台, 使用最初 由O T I , I B M公司的I DE 产品开
} p u b l i c C l a s s s e g e t C l a s s e s ( ){
r e t um c l a s es s ;
t h i s . r e s o u r c e: n e w Re so u r c e ( ) I t h i s . c l a s s e s。 n e w C l a s s e s ( ) l t h i s . c l a se sR e l a t i o n s D e w C l a s s e s R e l a t i o n ( ) I
一 信 息 技 术 与应 用
O WL 本体存储工具模块设计与实现
毛金玲 ( 辽 宁建 筑 职 业 学 院 , 辽宁辽阳 1 1 1 0 0 0 )
【 摘 要】本 文介 绍 了存储工 具的 实现过程, 包括 编 写代 码所 用的软件 、 系统 流程 以及 各模块 的 实现 方式 。 其 中重 点为各模 块的 实现 方 式, 说明 了实现每 个模块 的类 以及 实现 重要功 能的 函数 的代码 。 本 系统的 实现利 ] l f E c l i p s e 自带的工具 包及组件 得 以完成, 其 中用到 的 包有u m包, 用到 的类 为 I t e m t o r , V e c t o r , S t r i n g T o k e n i z e r , A r r a y L i s t ; s q l, 用到 的类有Dr i v e r Ma n a g e r , S t a t e me n t ; i o 包, 用到的 类有B u f e r e d Re a d e r 。 界 面绘制 主要 用到 3 " A WT  ̄ .
VeriFire Tools程序设计与测试工具说明书

DN-60826:D • 11/18/2021 — Page 1 of 2V F T 800c o v .p n gVeriFire ® Tools Programming and Test UtilityGeneralVeriFire ® Tools is the programming and test utility for ONYX ®series products. This Windows ® based utility, with online and offline capabilities, can be used to create the system programming in the comfort of home or office and then be downloaded from a laptop to the system in the field. It can also It includes user customizable views that can significantly reduce programming times, along with other new features, such as Project Services for better management and accountability of system databases.VeriFire Tools includes the features, functionality, diagnostics and reports of legacy versions of VeriFire Tools, but includes a modern Windows application look and style. The redesigned user interface maximizes the real estate of the users screen for improved visual-ization and programming efficiency; with customized views users can dock/float, pin/unpin, hide all/show all, arrange new tables hori-zontally or vertically, and view multiple services simultaneously. It uses Microsoft Ribbon control with a user customizable Quick Access Toolbar, more detailed node tree layouts and full screen mode. To make Point and PAM programming easier and less time-consuming, universal context menu options are provided for copy/paste/delete, along with Excel-like sorting/filtering, find/replace, and device cloning capabilities.VeriFire Tools employs projects that allow users to consolidate a site's node list into a single database file and password-protect it for added security. Users can also track any revision changes by ver-sioning their Projects with detailed descriptive text. Legacy VeriFire Tools databases can be imported using Project Services.HONEYWELL CONNECTED LIFE SAFETY SERVICES (CLSS)VeriFire Tools is available for licensed CLSS technicians. CLSS is an innovative, all-in-one cloud platform that enables systems inte-grators and facilities managers to deliver an enhanced fire safety service, while maximizing the performance efficiencies offered by Honeywell's trusted detection and alarm systems. The CLSS plat-form enables users to:•Get a “bird’s eye” view of all accounts•Obtain real-time information on event generation, enabling diagnosis before dispatch•Conduct tests and inspections using a mobile app (available in select markets)•Provide end users with multi-site asset information and event alertsFor additional information go to .Features•Network Topology Map is an additional Network Diagnostics service for HS-NCM networks that automatically constructs a visual representation of the NOTI•FIRE•NET™ network.•Network Level Download / Upload allows system programmers to upload all panel data from a network as one batch, and to download all nodes in the project to the network as one batch.•Panel History Upload brings event history into table format on the PC/tablet for improved readability and enhanced manipula-tion such as filtering and sorting.•Import from Excel ® brings control-by-event programming (CBE)and Logic Equations into VeriFire Tools from Excel.•Simulator tool provides a graphic representation of inputs and their associated outputs.•Program Validation tool identifies errors in system program-ming, such as inputs not associated with any outputs.•Compare Nodes tool identifies differences between databases and highlights those discrepancies to help the installer test and validate the system.•Network Test tool performs a communication test between selected nodes to verify network connectivity; test aborts if a real event occurs anywhere on the network.•Autoprogram tool commands the system to read and enter the addresses for SLC detectors and modules, quickly verifying these devices within the utility.•Device Maintenance Report clearly organizes valuable informa-tion about NFS-320, NFS2-640, and NFS2-3030 FlashScan detectors and modules; chamber values, percent of drift compen-sation and last functional test date.•Project Services allows simple creation, editing, and manage-ment of project databases for entire networks.•Online Services provides tools to for uploading/downloading databases, updating system application code, and performing read status and edit functions.•Supported Systems include the NFS-320, NFS2-640, NFS2-3030, NCA-2, DVC (and associated DAL devices), UDACT-2,LCD2-80, NFS-640, NFS-3030, and NCA.•Connected Life Safety System (CLSS) Remote Programming provides the option to upload/download the panel database remotely through the CLSS Gateway. Supported Panels are NFS-3030, NFS2-3030, NFS2-640, NFS-320, NFS-640, N16,and NCD.•Panel Feature Activation VeriFire Tools enables the configura-tion of various panel features while connected with CLSS Cloud or when offline.•CLSS Cloud Database Backup allows backup of the panel data-base on the CLSS Cloud.•CLSS Central Station Report provides the option to generate Central Station Reports through CLSS.For further details about these features, Operating System critical updates, and Service Pack prerequisites, see the VeriFire Tools backstage area for the “What’s New in this Release” PowerPoint slideshow.This document is not intended to be used for installation purposes.We try to keep our product information up-to-date and accurate.We cannot cover all specific applications or anticipate all requirements.All specifications are subject to change without notice.Country of Origin: USANOTIFIER12 Clintonville Road Northford, CT 06472 203.484.7161 VeriFire ® Tools and ONYX ® are registered trademarks and NOTI•FIRE•NET™ is a trademark of Honeywell International Inc.Microsoft ®, Windows ®, Outlook ®, and Excel ® are registered trademarks of Microsoft Corporation. Plantronics ® is a registered trademarks of Plantronics, Inc. GoldWave ® is a registered trademark of GoldWave Inc.©2021 by Honeywell International Inc. All rights reserved. Unauthorized use of this document is strictly prohibited.Product Line InformationVeriFire Tools: Current version and retrofit versions are available for download from . 75554: DB9-NUP Programming Cable.75672: USB A type to USB B type Programming Cable.Minimum System Requirements•Operating System:–Windows 10 Professional/Enterprise (64 bit editions only )–Microsoft Surface Pro 3–Microsoft Surface Pro 4•Hardware: Surface Pro 3/4 tablet or PC/laptop as specified below.•PC/Laptop Minimum Specifications:– 1 GHz 32-bit (x86) processor and 4GB RAM, or 1 GHz 64-bit (x64) processor and 8GB RAM.– 3 GB free disk space (600 MB recommended for audio stor-age ).–Mouse and keyboard.–XVGA monitor or newer; system display set to use small or medium fonts (any color and resolution supported ).–Video card capable of supporting 1024 x 768 output resolution or higher and 16 bit color.–Internet Explorer ® version 11.0, Build 18362 or higher. Internet settings should be configured to allow run scripts and be com-patible with Transport Layer Security (TLS).•Connectors:– 1 serial (COM) port or USB-to-Serial converter (ATEN Model UC-232A recommended.) (Use a USB A to B cable. USB con-nection must be less than 10 feet long.)–DB9-NUP cable (P/N 75554). (Serial port recommended for NFS-3030, NFS-640, NCA, and LCD2-80.)–USB A type to USB B type cable (Notifier P/N 75672).(USB 2.0 port recommended for NFS2-3030, NCA-2, NFS2-640, NFS-320, DVC, and UDACT-2.)–N16, NCD Supports USB Type C cable, 1 serial (COM) port or USB-to-Serial converter (ATEN Model UC-232A recom-mended)•Internet connection for:–Login–Remote upload/download via CLSS –Email services–Downloading/updating user manuals from .–Config file backup to CLSS –Panel feature activation•MAPI compatible email client, such as Microsoft Outlook ® or Mic-rosoft Outlook Express, to use email servicesDigital AudioT O PROGRAM THE D IGITAL A UDIO S YSTEM :•USB port (for suggested USB Digital Headset used in audio recording).•Plantronics ® DSP500 Digital Enhanced USB Headset (recom-mended) or your PC’s sound card with any standard UL-approved PC microphone.•GoldWave ® Digital Audio Editor (recommended) or equivalent audio editing software.D IGITAL A UDIO FILE FORMAT DESCRIPTIONSAudio editing software must be able to save files to .wav format with the following descriptions:FidelityHigh QualityStandard QualityFormat PCM µ-law Sample Rate 44100Hz 11025Hz Bit Depth 16-bit 8-bit Channelmonomono。
基于OWL的产品设计知识本体建模

江西省科技 支撑计划资助项 目 (0 9 G 0 10 20 B B 3 O ) 作者简介:王有远 (9 5 16 一),男,教授 ,博士 ,研究 方向为制 造业 信息化。
第3 卷 4 第7 期 2 1 — ( ) [3 02 7上 61
务l
1 wl a V leFo )o : l au s rm:相 当于 逻 辑 中的 全 称 l 量 词 ,用符 号 V表 示 。要求对 于 每一个 有指 定 属性 的类 实例 , 属性 的值 必 须 是 由 o : l a eF o wlal l srm V u 从 句指 定 的类的 实例 。取 值可 以为 空 。
识术 语 间的语义 信 息和 关 系。
12 OWL约束 公 理 .
概 念 的共 享 的形式 化 的描述 J ,其 目标是 捕获 相关 领 域 的 知 识 ,提 供 对 该 领域 知 识 的 共 同理 解 ,确 定该 领 域 内共 同认 可 的 词 汇 ,并 从 不 同层 次 的形
约束 公理 是 O WL类公理 的核心 部分 ,用 来对
化描述 ,通过O 约束公理来定义本 体模型 ,在此基础上 构建 出基于O 的产品设计知识 本 WL WL 体模型。以汽车造型设计为例 ,介绍 了汽车产品造型设计 知识本体模型 的构建 。 关键 词 : 产品设计知识 ;本体 ;O ;约束公理 WL
中图分类号 :T 1 2 H 6 文献标识码 :A 文章编号 :1 0 - 1 4 2 1 ) 7上 ) 0 6-0 9 0 ( 0 0 ( - 0 3 4 0 3 2
<o : as / wl Cl s >
2 企 业知 识 ) 企 业 知 识 ( 业 专 有 知 识 ( 计 历 史 , 已有 企 设
【 4 第3 卷 6】 4 第7 期 21- ( ) 02 7上
最新 网络本体语言(OWL)的标准体系解析(1)-精品

网络本体语言(OWL)的标准体系解析(1)万维网之父蒂姆·伯纳斯·李(Tim Berners-Lee)将万维网的演变分为两个阶段[1]。
第一个阶段,万维网应该是一个有利于人们合作的强大工具;第二个阶段,则是蒂姆·伯纳斯·李所定义的语义网阶段。
通俗地说,语义网就是一种能够理解人类语言的智能网络,它能够使人与的交流变得像人与人交流一样轻松。
我们目前正处于新一代万维网发展的边缘,即致力于第二代网络——语义网的研究、开发阶段。
在语义网的开发进程中,网络本体语言(Web Ontology Language,OWL)作为实现其功能的核心语言工具,其开发意义重大。
为了给OWL系统的开发奠定基础,万维网联盟(W3C)于2003年12月15日发布了由其下属的网络本体工作组开发的OWL系列标准规范文件,紧接着又对各标准文档进行了改进,于2004年2月10日公布了该系列体系的最新版本。
本文将对最新版本的OWL系列标准规范体系进行探讨和解析,并对中文网络本体语言开发中的标准建设提出一些建议,以期为国内OWL系统的研究开发提供借鉴。
1 OWL系列标准规范体系的构成为了更好地描述语义化本体模型和进行知识表述,W3C首先提出用来描述资源及其之间关系的语言规范:资源描述框架(Resources DescriptionFrame,RDF),在此基础上,欧洲开发了语义交互语言(Ontology Interchange Language,OIL),美国开发了DAML(DARPA Agent Markup Language)。
这两种网络本体语言都是对RDF类似的扩展,因此后来合并为DAML+OIL,随后W3C将其规范为理解力更强的网络本体语言(Web Ontology Language,OWL)。
OWL系列标准规范体系由6个推荐性标准文档组成,分别从理论、实例及规范性定义的角度对OWL进行了全面、简洁及规范化的阐述,它们是:●《网络本体语言概述》(OWL Web Ontology Language:Overview):通过列出OWL的语言特征并给出其简要的描述,对OWL进行简单介绍。
OWL本体关系数据库存储模式设计

O WL本 体 关 系数 据 库 存 储 模 式 设 计
陶 皖 , 红 燕 姚
( 安徽 工程科技 学院 计 算机科 学与 工程 系, 安徽 芜湖 2 10 ) 4 0 0
摘 要 : 体合 理有效 的存储 是保 证本 体共享 利用 的前提 , 本 现有 的关 系数据 库本 体存储 模式 在存储 O WL本体 后 会 出现 查
征的属性 、 概念之 间的关 系、 概念和属性之间的约束 来
1 本 体 的关 系数 据 库 存 储 模 式
本体可 以在平面 文件 ( a fe 、 l l f t i ) 数据库 等 中来存 储 。这里重点讨论本 体的关 系数据库 存储 问题 , 由于
维普资讯
第 l 7卷 第 2期 20 0 7年 2月
计 算 机 技 术 与 发 展
C MPUTER O TECHNOIOGY . AND DEVEIOPN E .  ̄ NT
V( . 7 NO 2 ) 1 1 . Fe 2 b. 007
l u rn noo y soa dx t r yc re t tlg trgeme xs&e o 州 . eo dyo tlg tr esh mai eine co dn t S c n l noo yso a c e dsg da cr ig OW L noo yc a atrsi g s o o tlg h r ce t i c.
idct ta h trg n iae h tteso a emeh di i pe Th u r ts d t o ssm l. eq ey etha mv ta h e r v l fiin y i n ra e . lteee pant a h sp e h tt rt e a fce c sice sd Al h s x li h tt e d e i e d i i esbe sn e g sfa il. Ke r s OW L no wy;eain l aa ae;tr esh ma ywo d : o tk rlt a tbs so a e o d g c
OWL本体存储技术研究
C mp t c ne n eh o g , H n nMeh ncl n l tcl n i ei ol e o ue S i c d cn l y e a c aiaa d e r aE g er gC l g ,Xi i g 5 0 2 C i ) r e a T o E ci n n e n a 3 0 , h a xn 4 n
前 广 泛使 用 的 垂 直 模 式 在 各 方 面 的 性 能 都 更 优 越 , 且 也 适 宜 于 存 储 大 规 模 本 体 。 而
关键词 : 网络 本 体 语 言 ; 资 源 描 述 框 架 ; 本 体 ; 存 储 ; 关 系 数 据 库
中图法分 类号 : P 1 T31
文献 标识 码 : A
pe diulrso a c m aus xtnsv y n n c a t r ges he ede e iel ow. I sa s e ti a n age s al t l gy ti lo f a n s vi g lr —c eon o o .
Байду номын сангаас
Ke r s OW L; R y wo d : DF; o t l g ; so a e r l t n d tb s noo y tr g ; ea i aa a e o
(.Colg f mp tr ce c n fr t n Guz o ies y Guy n 5 2 5 Chn ;2 1 l eo Co ue in ea dI o mai , e S n o ih uUnv ri , t ia g5 0 5 , ia .De at n f pr me t o
b s h stx a i h rs a c i g e ce c n et r x a d f n t n I a r u ei rf n t n i a h a p c a ep r a e i t i t sa hg e e r h n f in y a d b t p n e h i e e n u c i . t smo e s p ro u ci n e c s e t h t e - o h o tn h
OWL本体之间概念相似度计算研究的开题报告
OWL本体之间概念相似度计算研究的开题报告
一、研究背景
现代信息技术快速发展,促进了语义Web的建设,语义Web通过Ontology规范和描述了知识和概念之间的关系,为机器自动推理提供了一种强有力的基础。
然而,大量的本体与知识库在语义Web上的广泛应用,使得概念的相似性计算显得越来越重要。
概念相似度计算是自然语言处理中的一个重要问题,它可以应用于对概念语义信息的挖掘、文本分类、问答系统中关键词选择、网络信息检索中的筛选等多种领域。
OWL(Web Ontology Language)本体是语义Web中常用的本体描述语言,本体之间概念的相似度计算可以为语义搜索、本体匹配和数据集成等多个方面提供支持。
二、研究目的
本研究的目标是设计一种有效的OWL本体之间的概念相似度计算方法,使其能够支持本体匹配、语义搜索和数据集成等应用。
三、研究内容
1. OWL本体描述语言的研究
OWL是一种本体描述语言,本研究将深入学习OWL语法、本体结构和知识表示等相关内容,为后续计算概念相似度做好准备。
2. 概念相似度计算算法研究
研究传统的基于词汇重叠的概念相似度计算方法,如路径长度、信息系数等,并对其进行改进和创新,提高其对语义信息的准确性和鲁棒性。
3. 基于OWL本体的相似度计算系统设计与实现
设计和实现基于OWL本体的概念相似度计算系统,包括本体的读取与解析、概念节点的分析和计算以及结果的展示等模块。
四、研究意义
本研究可以为语义Web的建设提供强有力的支持,为本体匹配、语义搜索和数据集成等多个领域提供基础技术支撑。
此外,在自然语言处理领域中,本研究也为相关技术的发展提供了参考和借鉴。
owl本体指南
目前这种结构的万维网,很像一本地图做得很差的地理书,我们对于Web 中可以使用的文档和服务的了解,都是基于关键字搜索的,同时还需要灵活地使用文档的链接和使用模式。
如果没有强有力的工具的支持,这么大规模的数据是很难管理的,为了能够给Web绘制出更为详实的地图,计算代理需要对于网络上可用资源的内容和能力做一个机器能够读得懂的描述。
这些描述是人类能够读得懂的信息的扩展。
OWL,这种本体描述语言,可以用来描述Web文档和应用中内在的类和关系。
这篇文章解释了OWL语言的使用:通过定义类以及类的属性来形式化某个领域;定义个体并说明它们之间的属性;在OWL语言的形式化语义允许的层次上,对类和个体进行推理。
本文的各章节间是按照类、属性、个体的集合的定义给出来的,从最简单的概念开始,逐渐过渡到更为复杂的概念。
本文档的状态本文档已被W3C成员及其他相关方面审阅,并已被W3C总监(W3C Director)批准为W3C推荐标准(W3C Recommendation)。
W3C制定推荐标准的任务是使之受到关注,并促使其被广泛应用。
这将增强Web的功能性与互操作性。
本文档是W3C关于Web本体语言OWL的推荐标准的六个部分之一。
它已经被Web 本体工作小组(小组章程) 作为W3C语义Web行动 (行动声明) 的一部分于2004年2月10日发布。
本文档的早期版本中所描述的关于OWL的设计已被广泛评阅,并已满足工作小组的技术需求。
工作小组充分考虑所有收到的意见,并做了必要的修改。
本文档自从候选推荐标准版本以来的所有修改都在文后的变更日志中。
欢迎通过public-webont-comments@ (历史存档)提出您的意见,也可以通过www-rdf-logic@ (mailto:www-rdf-logic@)(历史存档) 参与相关技术的讨论。
可以访问到有关实现的一个列表。
W3C维护着一个与这些工作相关的专利声明的目录。
这节描述了本文档在发布时的状态。
基于本体的异构数据源集成系统分析与设计
2007年10月October 2007—273—计 算 机 工 程Computer Engineering 第33 第19期Vol 卷.33 No.19 ·开发研究与设计技术·文章编号:1000—3428(2007)19—0273—03文献标识码:A中图分类号:N945基于本体的异构数据源集成系统分析与设计周 刚,郭建胜(空军工程大学工程学院,西安 710038)摘 要:分析了现有的数据集成方式,针对集成中的语义异构问题提出了一种基于本体和XML 的集成系统框架,其中包括应用层、中间件层和数据源层3个层次,并给出了关键模块的设计,包括中介器、本体库和包装器。
结合航空装备信息的特点,介绍了该框架在航空装备信息集成系统中的具体应用。
关键词:异构数据源;本体;XML ;数据集成Analysis and Design of Heterogenous Database Integration SystemBased on OntologyZHOU Gang, GUO Jian-sheng(Engineering Institute, Air Force Engineering University, Xi’an 710038)【Abstract 】Based on the different kinds of data integration methods, this paper brings forward an ontology-and-XML-based data integration framework for eliminating the semantic heterogeneity, including application layer, middleware layer and database layer. It expatiates the pivotal technology of implementation and gives an application instance in the integration information system of aviation equipment. 【Key words 】heterogenous database; ontology; XML; data integration目前在企业中,由于开发时间或开发部门的不同,往往有多个异质的、运行在不同软硬件平台上的信息系统同时运行,这些系统的数据源彼此独立且相互封闭,使得数据难以在系统之间交流、共享和融合,因此形成了“信息孤岛”现象。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
OWL本体存储工具模块设计与测试
摘要:本文对基于关系数据库的OWL本体存储工具模块设计,在设计的基础上对每个模块进行了实现,最后通过测试检验了该存储工具对OWL本体抽象语法的解析结果是否正确以及在数据库中表的存储是否一致。
本设计基于Java平台,使用最初由OTI,IBM公司的IDE产品开发组创建的Eclipse集成开发环境。
系统利用Eclipse自带的工具包及组件得以完成,其中用到的包有util包,用到的类为Iterator,Vector,StringTokenizer,ArrayList;sql包,用到的类有DriverManager,Statement;io包,用到的类有BufferedReader。
界面绘制主要用到了AWT组件及Swing组件。
关键词:OWL本体模块设计软件测试
中图分类号:TP311.132 文献标识码:A 文章编号:1007-9416(2015)01-0000-00
1模块设计
该基于关系数据库的OWL本体存储工具的模块设计如图1所示。
图1 基于关系数据库的OWL本体存储工具模块设计图2系统实现
本设计基于Java平台,使用最初由OTI,IBM公司的IDE 产品开发组创建的Eclipse集成开发环境。
本系统的实现利用Eclipse自带的工具包及组件得以完成,其中用到的包有util 包,用到的类为Iterator,Vector,StringTokenizer,ArrayList;sql包,用到的类有DriverManager,Statement;io包,用到的类有BufferedReader。
界面绘制主要用到了AWT组件及Swing组件。
3模块实现
3.1数据模块
该模块对应的包为ren.Data包,这个包中的类是本工具的中间数据模型,用于分析OWL本体的源文件后存储分析结果,为SQL语句的生成提供数据。
3.2控制模块
控制模块为该工具的核心部分,用于执行对文件、字符串、数据库等操作以及对数据的处理和运行,并将结果反馈给视图模块等任务。
3.3显示操作模块
显示操作模块负责将每一个子步骤的结果反馈给视图
模块加以显示。
由于本工具的视图使用的是Java提供的Swing工具,通过事件监听机制来获取用户的操作并进行处理,因此该模块可与视图模块进行合并。
3.4视图模块
视图模块对应的是ren.UI包。
其中OWLToRDBManager 类为基于本工具的用户界面绘制类,用于完成绘制软件窗体、初始化软件说明、添加菜单栏、为软件窗体的主要控件添加监听器等操作。
此类中最主要的函数是initial(JFrame frame)函数,用于初始化界面,并为菜单栏中的菜单项(如打开文件、退出、显示版本信息)添加监听器和执行函数。
4系统流程
该基于关系数据库的OWL 本体的存储工具的操作流程图如图2所示。
图2 基于关系数据库的OWL本体的存储工具的操作流程图
该软件的操作步骤中,在任何步骤(除弹出模态对话框以外),均可以选择菜单项进行操作。
每一步操作之前,用户界面上均有提示信息,用户按照提示信息完成所需的操作即可。
与之对应的程序的控制流程和各个类之间的协同及调用关系如图2所示。
由图2和图3可得到用户的操作流程和与之对应的程序内部的调用关系,每个模块内的类完成自己的功能,每个类之间留有对外的接口,内部实现得到了屏蔽。
图3 程序控制流程及类之间协同调用图
5软件测试
软件测试是使用人工或者自动手段来运行或测试某个
系统的过程,其目的在于检验它是否满足规定的需求或弄清预期结果与实际结果之间的差别。
本工具的测试原理是在工具能够正常运行的前提下,导入OWL本体抽象语法,查看对应的分析结果是否正确,以及在数据库中表的存储是否一致。
在以上OWL本体抽象语法中,以HasKey公理为例HasKey公理在数据库中表的存储同样的正确的。
按照这种测试规则,对测试集中每个公理,均能显示出它的正确的解析结果以及一致的数据库中表的存储。
6结语
本文对基于关系数据库的OWL本体存储工具模块设计,在设计的基础上对每个模块进行了实现,最后通过测试检验了该存储工具对OWL本体抽象语法的解析结果是否正确以及在数据库中表的存储是否一致。
参考文献
[1]王珊,萨师煊.数据库系统概论[M].北京:高等教育出版社,2006.
[2]余永红.Java程序设计教程[M].北京:机械工业出版社,2008.
收稿日期:2015-01-10
作者简介:毛金玲(1974―),女,辽宁海城人,辽宁建筑职业学院,设备工程系,讲师,硕士,软件开发。