• 阳光下的思念
    了解作者
  • Java
    开发工具
  • 381KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 5
    下载次数
  • 2018-07-05 10:13
    上传日期
有关语义应用框架jena的中文介绍,以及jena的本体应用接口等
Jena+中文教程.rar
  • Jena+中文教程.pdf
    405.8KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6252b17e74bc5c0105d80b9d/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6252b17e74bc5c0105d80b9d/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Jena</div><div class="t m0 x1 h2 y2 ff1 fs0 fc0 sc0 ls0 ws0">Jena</div><div class="t m0 x1 h2 y3 ff1 fs0 fc0 sc0 ls0 ws0">Jena</div><div class="t m0 x1 h3 y1 ff1 fs0 fc0 sc0 ls0 ws0">Jena<span class="_ _0"> </span><span class="ff2 sc1">&#31616;&#20171;</span></div><div class="t m0 x2 h4 y4 ff2 fs1 fc0 sc0 ls0 ws0">&#19968;&#33324;&#26469;&#35828;&#65292;&#25105;&#20204;&#22312;<span class="_ _1"> </span><span class="ff3">Protege<span class="_ _2"> </span></span>&#36825;&#26679;&#30340;&#32534;&#36753;&#22120;&#37324;&#26500;&#24314;&#20102;&#26412;&#20307;&#65292;&#23601;&#20250;&#24819;&#22312;&#24212;&#29992;&#31243;&#24207;&#37324;</div><div class="t m0 x2 h4 y5 ff2 fs1 fc0 sc0 ls0 ws0">&#20351;&#29992;&#23427;&#65292;<span class="_ _3"> </span>&#36825;&#23601;&#38656;&#35201;&#19968;&#20123;&#24320;&#21457;&#25509;&#21475;&#12290;<span class="_ _3"> </span>&#29992;&#31243;&#24207;&#25805;&#20316;&#26412;&#20307;&#26159;&#24456;&#24517;&#35201;&#30340;&#65292;<span class="_ _3"> </span>&#22240;&#20026;&#22312;&#24456;&#22810;&#24773;<span class="_ _4"> </span>&#20917;</div><div class="t m0 x2 h4 y6 ff2 fs1 fc0 sc0 ls0 ws0">&#19979;&#65292;<span class="_ _5"> </span>&#25105;&#20204;&#35201;&#33258;&#21160;&#29983;&#25104;&#26412;&#20307;&#65292;<span class="_ _5"> </span>&#38752;&#20154;&#25163;&#36890;&#36807;<span class="_ _6"> </span><span class="ff3">Protege<span class="_ _2"> </span></span>&#21019;&#24314;&#25152;&#26377;&#26412;&#20307;&#26159;&#19981;&#29616;&#23454;&#30340;&#12290;<span class="_ _7"> </span><span class="ff3">Je<span class="_ _8"> </span>na</span></div><div class="t m0 x2 h4 y7 ff2 fs1 fc0 sc0 ls0 ws0">&#26159;<span class="_ _9"> </span><span class="ff3">HP<span class="_ _a"> </span></span>&#20844;&#21496;&#24320;&#21457;&#30340;&#36825;&#26679;&#19968;&#22871;<span class="_ _b"> </span><span class="ff3">API<span class="_ _c"> </span></span>&#65292;<span class="_ _d"></span>&#20284;&#20046;<span class="_ _e"> </span><span class="ff3">HP<span class="_ _a"> </span></span>&#20844;&#21496;&#22312;&#26412;&#20307;&#36825;&#26041;&#38754;&#36208;&#24471;&#24456;&#38752;&#21069;&#65292;<span class="_ _d"></span>&#20854;<span class="_ _f"> </span>&#20182;</div><div class="t m0 x2 h4 y8 ff2 fs1 fc0 sc0 ls0 ws0">&#22823;&#20844;&#21496;&#36824;&#22312;&#35266;&#26395;&#21527;&#65311;</div><div class="t m0 x2 h4 y9 ff2 fs1 fc0 sc0 ls0 ws0">&#21487;&#20197;&#36825;&#26679;&#35828;&#65292;<span class="_ _10"> </span><span class="ff3">Jena<span class="_ _11"> </span></span>&#23545;&#24212;&#29992;&#31243;&#24207;&#23601;&#20687;<span class="_ _12"> </span><span class="ff3">Protege<span class="_ _2"> </span></span>&#23545;&#25105;&#20204;&#65292;&#25105;&#20204;&#20351;&#29992;<span class="_ _1"> </span><span class="ff3">Protege<span class="_ _2"> </span></span>&#25805;&#20316;</div><div class="t m0 x2 h4 ya ff2 fs1 fc0 sc0 ls0 ws0">&#26412;&#20307;&#65292;<span class="_ _13"></span>&#24212;&#29992;&#31243;&#24207;&#21017;&#26159;&#20351;&#29992;<span class="_ _14"> </span><span class="ff3">Jena<span class="_ _11"> </span></span>&#26469;&#20570;&#21516;&#26679;&#30340;&#24037;&#20316;&#65292;<span class="_ _13"></span>&#24403;&#28982;&#36825;&#20123;&#24212;&#29992;&#31243;&#24207;&#36824;&#26159;&#24471;&#30001;<span class="_ _15"> </span>&#25105;</div><div class="t m0 x2 h4 yb ff2 fs1 fc0 sc0 ls0 ws0">&#20204;&#26469;&#32534;&#20889;&#12290;<span class="_ _16"> </span>&#20854;&#23454;<span class="_ _17"> </span><span class="ff3">Protege<span class="_ _2"> </span></span>&#26412;&#36523;&#20063;&#26159;&#22312;<span class="_ _18"> </span><span class="ff3">Jena<span class="_ _11"> </span></span>&#30340;&#22522;&#30784;&#19978;&#24320;&#21457;&#30340;&#65292;<span class="_ _16"> </span>&#20320;&#30475;&#22914;&#26524;<span class="_ _19"> </span><span class="ff3">Prote<span class="_ _1a"> </span>ge</span></div><div class="t m0 x2 h4 yc ff2 fs1 fc0 sc0 ls0 ws0">&#30340;<span class="_ _9"> </span><span class="ff3">console<span class="_ _1b"> </span></span>&#37324;&#25253;&#24322;&#24120;&#30340;&#35805;&#65292;<span class="_ _1c"></span>&#22810;&#21322;&#20250;&#21644;<span class="_ _1d"> </span><span class="ff3">Jena<span class="_ _11"> </span></span>&#26377;&#20851;&#12290;<span class="_ _1c"></span>&#26368;&#36817;&#20986;&#20102;&#19968;&#20010;<span class="_ _1e"> </span><span class="ff3">Protege<span class="_ _1f"> </span>OW<span class="_ _20"> </span>L</span></div><div class="t m0 x2 h4 yd ff3 fs1 fc0 sc0 ls0 ws0">API<span class="_ _c"> </span><span class="ff2">&#65292;&#30456;&#24403;&#20110;&#23545;<span class="_ _18"> </span></span>Jena<span class="_ _11"> </span><span class="ff2">&#30340;&#21253;&#35013;&#65292;&#25454;&#35828;&#20351;&#29992;&#36215;&#26469;&#26356;&#26041;&#20415;&#65292;&#36825;&#20010;<span class="_ _21"> </span></span>API<span class="_ _22"> </span><span class="ff2">&#23601;&#26159;<span class="_ _23"> </span></span>Protege</div><div class="t m0 x2 h4 ye ff2 fs1 fc0 sc0 ls0 ws0">&#30340;<span class="_ _9"> </span><span class="ff3">OWL<span class="_ _24"> </span>Plugin<span class="_ _25"> </span></span>&#25152;&#20351;&#29992;&#30340;&#65292;&#30456;&#20449;&#20316;&#32773;&#32463;&#36807;<span class="_ _26"> </span><span class="ff3">OWL<span class="_ _24"> </span>Plugin<span class="_ _25"> </span></span>&#30340;&#24320;&#21457;&#20197;&#21518;&#65292;&#35828;&#36825;&#20123;&#35805;</div><div class="t m0 x2 h4 yf ff2 fs1 fc0 sc0 ls0 ws0">&#26159;&#26377;&#19968;&#23450;&#20381;&#25454;&#30340;&#12290;</div><div class="t m0 x2 h4 y10 ff2 fs1 fc0 sc0 ls0 ws0">&#39064;&#30446;&#26159;&#35828;&#29992;<span class="_ _18"> </span><span class="ff3">Jena<span class="_ _11"> </span></span>&#22788;&#29702;<span class="_ _23"> </span><span class="ff3">OWL<span class="_ _27"> </span></span>&#65292;<span class="_ _1c"></span>&#20854;&#23454;<span class="_ _0"> </span><span class="ff3">Jena<span class="_ _11"> </span></span>&#24403;&#28982;&#19981;&#21482;&#33021;&#22788;&#29702;<span class="_ _12"> </span><span class="ff3">OWL<span class="_ _27"> </span></span>&#65292;<span class="_ _13"></span>&#23601;&#20687;<span class="_ _0"> </span><span class="ff3">Proteg<span class="_ _28"> </span>e</span></div><div class="t m0 x2 h4 y11 ff2 fs1 fc0 sc0 ls0 ws0">&#38500;&#20102;&#33021;&#22788;&#29702;<span class="_ _29"> </span><span class="ff3">OWL<span class="_ _11"> </span></span>&#22806;&#36824;&#33021;&#22788;&#29702;<span class="_ _29"> </span><span class="ff3">RDF(S)</span></div><div class="t m1 x3 h4 y11 ff2 fs1 fc0 sc0 ls0 ws0">&#19968;<span class="_ _2a"></span>&#26679;<span class="_ _2a"></span>&#12290;</div><div class="t m0 x4 h4 y11 ff3 fs1 fc0 sc0 ls0 ws0">Jena<span class="_ _2b"> </span><span class="ff2">&#26368;&#22522;&#26412;&#30340;&#20351;&#29992;&#26159;&#22788;&#29702;<span class="_ _2c"> </span></span>RDF(<span class="_ _2d"> </span>S)</div><div class="t m2 x5 h4 y11 ff2 fs1 fc0 sc0 ls0 ws0">&#65292;</div><div class="t m0 x2 h4 y12 ff2 fs1 fc0 sc0 ls0 ws0">&#20294;&#27605;&#31455;<span class="_ _2e"> </span><span class="ff3">OWL<span class="_ _2f"> </span></span>&#24050;&#32463;&#25104;&#20026;<span class="_ _30"> </span><span class="ff3">W3C<span class="_ _2f"> </span></span>&#30340;&#25512;&#33616;&#26631;&#20934;&#65292;&#25152;&#20197;&#23545;&#23427;&#30340;&#25903;&#25345;&#20063;&#26159;&#22823;&#21183;&#25152;&#36235;&#12290;</div><div class="t m0 x2 h4 y13 ff2 fs1 fc0 sc0 ls0 ws0">&#22909;&#20102;&#65292;&#29616;&#22312;&#26469;&#28857;&#23454;&#38469;&#30340;&#65292;&#24590;&#26679;&#29992;<span class="_ _31"> </span><span class="ff3">Jena<span class="_ _11"> </span></span>&#35835;&#25105;&#20204;&#29992;<span class="_ _30"> </span><span class="ff3">Protege<span class="_ _2"> </span></span>&#21019;&#24314;&#30340;<span class="_ _2e"> </span><span class="ff3">OWL</span></div><div class="t m3 x6 h4 y13 ff2 fs1 fc0 sc0 ls0 ws0">&#26412;<span class="_ _32"></span>&#20307;<span class="_ _32"></span>&#21602;<span class="_ _32"></span>&#65292;</div><div class="t m0 x2 h4 y14 ff2 fs1 fc0 sc0 ls0 ws0">&#20551;&#35774;&#20320;&#26377;&#19968;&#20010;<span class="_ _33"> </span><span class="ff3">OWL<span class="_ _2f"> </span></span>&#26412;&#20307;&#25991;&#20214;&#65288;<span class="_ _34"> </span><span class="ff3">.owl<span class="_ _35"> </span></span>&#65289;&#65292;&#37324;&#38754;&#23450;&#20041;&#20102;&#21160;&#29289;&#31867;</div><div class="t m0 x2 h4 y15 ff2 fs1 fc0 sc0 ls0 ws0">&#65288;<span class="_ _36"> </span><span class="ff3 fc1">http://www.zoo.com/ont/Animal<span class="_ _37"> </span></span>&#65292;&#27880;&#24847;&#36825;&#24182;&#19981;&#26159;&#19968;&#20010;&#23454;&#38469;&#23384;&#22312;&#30340;<span class="_ _31"> </span><span class="ff3">URL</span></div><div class="t m2 x7 h4 y15 ff2 fs1 fc0 sc0 ls0 ws0">&#65292;</div><div class="t m0 x2 h4 y16 ff2 fs1 fc0 sc0 ls0 ws0">&#19981;&#35201;&#35797;&#22270;&#21435;&#35775;&#38382;&#23427;&#65289;&#65292;&#24182;&#19988;&#23427;&#26377;&#19968;&#20123;&#23454;&#20363;&#65292;&#29616;&#22312;&#30475;&#22914;&#19979;&#20195;&#30721;&#65306;</div><div class="t m0 x8 h5 y17 ff3 fs2 fc0 sc0 ls0 ws0">OntModel<span class="_ _38"> </span>m<span class="_ _39"> </span>=<span class="_ _3a"> </span>ModelF<span class="_ _d"></span>ac<span class="_ _d"></span>tory<span class="_ _13"></span>.createOntologyModel<span class="_ _d"></span>();</div><div class="t m0 x8 h5 y18 ff3 fs2 fc0 sc0 ls0 ws0">File<span class="_ _3b"> </span>myFile<span class="_ _3c"> </span>=<span class="_ _3a"> </span>...;</div><div class="t m0 x8 h5 y19 ff3 fs2 fc0 sc0 ls0 ws0">m.read(<span class="_ _3d"> </span><span class="fc2">new<span class="_ _3e"> </span></span>FileInputStream(myFi<span class="_ _d"></span>le),<span class="_ _3f"> </span>"");</div><div class="t m0 x9 h5 y1a ff3 fs2 fc0 sc0 ls0 ws0">Re<span class="_ _d"></span>sIterator<span class="_ _40"> </span>iter<span class="_ _41"> </span>=<span class="_ _3a"> </span>m.listSubjectsWithProperty(RDF<span class="_ _3"> </span>.type,<span class="_ _42"> </span>m.getRe<span class="_ _d"></span>source("http://</div><div class="t m0 x2 h5 y1b ff3 fs2 fc0 sc0 ls0 ws0">www.z<span class="_ _d"></span>oo.com<span class="_ _d"></span>/ont/Animal"));</div><div class="t m0 x8 h5 y1c ff3 fs2 fc2 sc0 ls0 ws0">while<span class="_ _43"> </span><span class="fc0">(iter<span class="_ _1c"> </span>.hasNe<span class="_ _d"></span>xt())<span class="_ _44"> </span>{</span></div><div class="t m0 xa h5 y1d ff3 fs2 fc0 sc0 ls0 ws0">Re<span class="_ _d"></span>source<span class="_ _45"> </span>animal<span class="_ _46"> </span>=<span class="_ _3a"> </span>(Re<span class="_ _d"></span>source)<span class="_ _47"> </span>iter<span class="_ _1c"> </span>.nex<span class="_ _d"></span>t();</div><div class="t m0 xa h5 y1e ff3 fs2 fc0 sc0 ls0 ws0">System.out.pri<span class="_ _d"></span>ntln(animal.getLocalName());</div><div class="t m0 x8 h5 y1f ff3 fs2 fc0 sc0 ls0 ws0">}</div><div class="t m0 x2 h4 y20 ff2 fs1 fc0 sc0 ls0 ws0">&#21644;&#25805;&#20316;<span class="_ _2e"> </span><span class="ff3">RDF(S)</span></div><div class="t m1 xb h4 y20 ff2 fs1 fc0 sc0 ls0 ws0">&#19981;<span class="_ _2a"></span>&#21516;<span class="_ _2a"></span>&#65292;</div><div class="t m0 xc h4 y20 ff3 fs1 fc0 sc0 ls0 ws0">com.hp.hpl.jena.ontology.OntModel<span class="_ _48"> </span><span class="ff2">&#26159;&#19987;&#38376;&#22788;&#29702;&#26412;<span class="_ _10"> </span>&#20307;</span></div><div class="t m0 x2 h4 y21 ff2 fs1 fc0 sc0 ls0 ws0">&#65288;<span class="_ _36"> </span><span class="ff3">Ontology<span class="_ _49"> </span></span>&#65289;&#30340;&#65292;<span class="_ _d"></span>&#23427;&#26159;<span class="_ _4a"> </span><span class="ff3">com.hp.hpl.jena.rdf.model.Model<span class="_ _4b"> </span></span>&#30340;&#23376;&#25509;&#21475;&#65292;&#20855;<span class="_ _10"> </span>&#26377;</div><div class="t m0 x2 h4 y22 ff3 fs1 fc0 sc0 ls0 ws0">Model<span class="_ _4c"> </span><span class="ff2">&#30340;&#20840;&#37096;&#21151;&#33021;&#65292;&#21516;&#26102;&#36824;&#26377;&#19968;&#20123;<span class="_ _4d"> </span></span>Model<span class="_ _4c"> </span><span class="ff2">&#27809;&#26377;&#30340;&#21151;&#33021;&#65292;&#20363;&#22914;<span class="_ _1"> </span></span>listClasses()<span class="_ _4e"> </span><span class="ff2">&#12289;</span></div><div class="t m0 x2 h4 y23 ff3 fs1 fc0 sc0 ls0 ws0">listObjectProperties()<span class="_ _4f"> </span><span class="ff2">&#65292;&#22240;&#20026;&#21482;&#26377;&#22312;&#26412;&#20307;&#37324;&#25165;&#26377;<span class="_ _50"> </span></span>&#8220;<span class="_ _51"> </span><span class="ff2">&#31867;<span class="_ _36"> </span></span>&#8221;<span class="_ _51"> </span><span class="ff2">&#21644;<span class="_ _36"> </span></span>&#8220;<span class="_ _51"> </span><span class="ff2">&#23646;&#24615;<span class="_ _52"> </span></span>&#8221;<span class="_ _51"> </span><span class="ff2">&#30340;&#27010;&#24565;&#12290;</span></div><a class="l" rel='nofollow' onclick='return false;'><div class="d m4"></div></a></div><div class="pi" data-data='{"ctm":[1.611830,0.000000,0.000000,1.611830,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐