W3China社区首页 管理页面 写新日志 退出

   
 

[Semantic Web]用MySQL存储本体 
Lee 发表于 2006/2/20 14:25:50

    首先要安装好MySQL服务器,然后建立一个数据库,如OntologyDB。再建立一个用户如OntologyDBUser,并给予其对数据库OntologyDB的所有操作权限。然后下载MySQL的JDBC驱动程序mysql-connector-java-3.1.12.zip,解压后将其中的mysql-connector-java-3.1.12-bin.jar改名为Driver.jar并将其COPY到Protege 3.1的安装目录中。     进入Protege,打开本体工程文件,然后选择文件菜单中的Convert Project to Format,选择在弹出的对话框中选择OWL Database。然后在弹出的对话框中按如下内容填写: Project ---- 项目名称,自己定; JDBC Driver Class Name ---- com.mysql.jdbc.Driver JDBC URL ---- jdbc:mysql://localhost/OntologyDB Table ---- OntologyDB数据库中用于存储本体的表,如OntologyTable Username ---- OntologyDBUser Password ---- OntologyDBUser OK以后本体就存储到MySQL中了,可以打开Query Browser看一下。表中每个Column均为Protege预定义,其含义如下(来自http://protege.stanford.edu/doc/design/jdbc_backend.html): Column Description Can be null Can be empty frame [integer] frame id Frame ID's < 10000 are reserved for the system. The frame ids for system frames are declared in the file: edu.stanford.smi.protege.model.Model.java No No frame_type [smallint] same as "value_type" but for the frame column No No slot [integer] slot frame id No No facet [integer] facet frame id (0 if not a facet value) No No is_template [smallint] 0 => value is OKBC "own", 1 => value is OKBC "template" No No value_index [integer] number used to maintain relative ordering of slot_or_facet_value entries for a frame-slot(-facet) combination No No value_type [smallint] number used to indicate the "type" of the value stored in slot_or_facet_value.  The number-to-type conversion is given in the file: edu.stanford.smi.protege.storage.database.DatabaseUtils.java No No slot_or_facet_value [varchar(N)] facet value if facet is not 0, slot value otherwise. Holds values of length that will fit in a varchar (typically <= 255) Yes No long_slot_or_facet_value [longvarchar] same as slot_or_facet_value but holds values too long to fit in slot_or_facet_value Yes No

阅读全文(28888) | 回复(16) | 编辑 | 精华

 


回复:用MySQL存储本体
子轩发表评论于2006/5/10 9:29:18

谢谢

个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除

 


» 1 2 »

发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)

 
Google
最 新 日 志
信息组织视角下的语义检索
本体是一种情报检索语言吗
(连载)语义网之路--RDF模型的基本思
大风起兮沙飞扬(27)
大风起兮沙飞扬(26)
大风起兮沙飞扬(25)
大风起兮沙飞扬(24)
大风起兮沙飞扬(23)
大风起兮沙飞扬(22)
大风起兮沙飞扬(21)
大风起兮沙飞扬(20)
大风起兮沙飞扬(19)
大风起兮沙飞扬(18)
An Ontology-Based In
基于本体的信息检索模型
 
最 新 评 论
回复:郁闷
回复:用MySQL存储本体
replcica watches
回复:Protege汉化全攻略
回复:Protege汉化全攻略
回复:Protege汉化全攻略
回复:基于本体的信息检索模型
回复:小型本体构建心得(Protege 
回复:优美英文心灵鸡汤:别太久错过机会
回复:优美英文心灵鸡汤:别太久错过机会
 
最 新 留 言
签写新留言

加我下QQ
请求帮助
真好
关于mysql和protege 有问题想
佩服佩服
关于语义网之路
大树
这个周末愉快!
周未愉快
周未愉快!
 
Blog 信 息
blog名称:风落沙
日志总数:348
评论数量:550
留言数量:52
访问次数:1590111
建立时间:2005年1月28日
友 情 连 接


 

狂潮怒啸

 
站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.047 second(s), page refreshed 144780735 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号