新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     >>计算机科学论坛<<     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论Semantic Web(语义Web,语义网或语义万维网, Web 3.0)及相关理论,如:Ontology(本体,本体论), OWL(Web Ontology Langauge,Web本体语言), Description Logic(DL, 描述逻辑),RDFa,Ontology Engineering等。
    [返回] 计算机科学论坛W3CHINA.ORG讨论区 - Web新技术讨论『 Semantic Web(语义Web)/描述逻辑/本体 』 → 困扰了几天啊 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2140 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 困扰了几天啊 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     scarel 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:7
      积分:81
      门派:XML.ORG.CN
      注册:2007/4/18

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给scarel发送一个短消息 把scarel加入好友 查看scarel的个人资料 搜索scarel在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看scarel的博客楼主
    发贴心情 困扰了几天啊

    请问怎样用jena写出在存在的owl中添加实例及其属性的代码!比如camera.owl------jena文档里面的。
    谢谢各位大侠了

       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/19 11:41:00
     
     jpz6311whu 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      等级:研三(收到微软亚洲研究院的Offer了)(版主)
      文章:1718
      积分:10610
      门派:W3CHINA.ORG
      注册:2005/4/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客2
    发贴心情 
    public interface OntModelextends InfModel
    An enhanced view of a Jena model that is known to contain ontology data, under a given ontology vocabulary (such as OWL). This class does not by itself compute the deductive extension of the graph under the semantic rules of the language. Instead, we wrap an underlying model with this ontology interface, that presents a convenience syntax for accessing the language elements. Depending on the inference capability of the underlying model, the OntModel will appear to contain more or less triples. For example, if this class is used to wrap a plain memory or database model, only the relationships asserted by the document will be reported through this convenience API. Alternatively, if the OntModel wraps an OWL inferencing model, the inferred triples from the extension will be reported as well. For example, assume the following ontology fragment:

          :A rdf:type owl:Class .
          :B rdf:type owl:Class ; rdfs:subClassOf :A .
          :widget rdf:type :B .
    In a non-inferencing model, the rdf:type of the widget will be reported as class :B only. In a model that can process the OWL semantics, the widget's types will include :B, :A, and owl:Thing.

    Note: that OntModel is an extension to the InfModel interface. This is to support the case where an ontology model wraps an inference graph, and we want to make the special capabilities of the InfModel, for example global consistency checking, accessible to client programs. Since not all ont models use a reasoner, using these methods may result in a runtime exception, though the typical behaviour is that such calls will be silently ignored.

    createIndividual
    Individual createIndividual(java.lang.String uri,
                                Resource cls)Answer a resource that represents an Individual node in this model. If a resource with the given uri exists in the model, it will be re-used. If not, a new one is created in the updateable sub-model of the ontology model.


    Parameters:
    cls - Resource representing the ontology class to which the individual belongs
    uri - The uri for the individual, or null for an anonymous individual.
    Returns:
    An Individual resource


    createOntProperty
    OntProperty createOntProperty(java.lang.String uri)Answer a resource representing an generic property in this model. Effectively this method is an alias for ModelCon.createProperty( String ), except that the return type is OntProperty, which allow more convenient access to a property's position in the property hierarchy, domain, range, etc.


    Parameters:
    uri - The uri for the property. May not be null.
    Returns:
    An OntProperty resource.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/19 11:58:00
     
     jiexincao 帅哥哟,离线,有人找我吗?
      
      
      威望:6
      等级:计算机学士学位
      文章:394
      积分:2379
      门派:XML.ORG.CN
      注册:2005/1/27

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jiexincao发送一个短消息 把jiexincao加入好友 查看jiexincao的个人资料 搜索jiexincao在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jiexincao的博客3
    发贴心情 
    具体过程很简单,打开记事本,然后coding,然后保存
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/20 8:53:00
     
     scarel 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:7
      积分:81
      门派:XML.ORG.CN
      注册:2007/4/18

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给scarel发送一个短消息 把scarel加入好友 查看scarel的个人资料 搜索scarel在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看scarel的博客4
    发贴心情 
    三楼的意思不明白啊
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/4/20 9:47:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/10/4 14:35:56

    本主题贴数4,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    58.594ms