新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   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)/描述逻辑/本体 』 → 在Jena 模型中如何取得反转属性? 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2676 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 在Jena 模型中如何取得反转属性? 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     topyn 帅哥哟,离线,有人找我吗?
      
      
      等级:大二(研究C++)
      文章:25
      积分:202
      门派:XML.ORG.CN
      注册:2006/7/4

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给topyn发送一个短消息 把topyn加入好友 查看topyn的个人资料 搜索topyn在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看topyn的博客楼主
    发贴心情 在Jena 模型中如何取得反转属性?

    程序载入本体模型后,如何取得某个属性的反转属性?(inverse of)?

    谢谢!


       收藏   分享  
    顶(0)
      




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

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客2
    发贴心情 
    getInverseOf
    OntProperty getInverseOf()Answer a property of which this property is the inverse, if known, or null if there is no such property. If there is more than one such property, an arbitrary selection is made.

    Note that this method is slightly different to getInverse(). See the Javadoc on getInverse() for a detailed explanation.


    Returns:
    A property which this property is the inverse of, or null.
    Throws:
    OntProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.

    --------------------------------------------------------------------------------

    listInverseOf
    ExtendedIterator listInverseOf()Answer an iterator over all of the properties that this property is declared to be the inverse of. Each element of the iterator will be an OntProperty.


    Returns:
    An iterator over the properties inverse to this property.
    Throws:
    OntProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.

    --------------------------------------------------------------------------------

    isInverseOf
    boolean isInverseOf(Property prop)Answer true if this property is the inverse of the given property.


    Parameters:
    prop - A property to test for
    Returns:
    True if the this property is the inverse of the the given property.
    Throws:
    OntProfileException - If the Profile.INVERSE_OF() property is not supported in the current language profile.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/11/8 22:47:00
     
     topyn 帅哥哟,离线,有人找我吗?
      
      
      等级:大二(研究C++)
      文章:25
      积分:202
      门派:XML.ORG.CN
      注册:2006/7/4

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给topyn发送一个短消息 把topyn加入好友 查看topyn的个人资料 搜索topyn在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看topyn的博客3
    发贴心情 
    感谢 jpz6311whu。
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/11/9 9:58:00
     
     yejing033 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:19
      积分:120
      门派:XML.ORG.CN
      注册:2007/10/31

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给yejing033发送一个短消息 把yejing033加入好友 查看yejing033的个人资料 搜索yejing033在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看yejing033的博客4
    发贴心情 
    值得看看
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/11/10 0:41:00
     
     topyn 帅哥哟,离线,有人找我吗?
      
      
      等级:大二(研究C++)
      文章:25
      积分:202
      门派:XML.ORG.CN
      注册:2006/7/4

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给topyn发送一个短消息 把topyn加入好友 查看topyn的个人资料 搜索topyn在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看topyn的博客5
    发贴心情 
    起初是用com.hp.hpl.jena.rdf.model.Mode构建本体模型的,所以始终没有找到合适的API,现在改为com.hp.hpl.jena.ontology.OntModel构建本体模型,就可以使用getInverseOf()等方法了,OntModel是Model的子接口。
    在Jena中对本体的操作使用OntModel会很方便,要么就有别的API,如Protege的。
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/11/11 23:29:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/10/7 22:43:22

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

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