新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   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)/描述逻辑/本体 』 → 请教:Ask,Describe,construct,select各表示怎样的查询? 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2822 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 请教:Ask,Describe,construct,select各表示怎样的查询? 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     tigerabbit 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:7
      积分:81
      门派:XML.ORG.CN
      注册:2005/3/3

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给tigerabbit发送一个短消息 把tigerabbit加入好友 查看tigerabbit的个人资料 搜索tigerabbit在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看tigerabbit的博客楼主
    发贴心情 请教:Ask,Describe,construct,select各表示怎样的查询?

    小弟在学习sparql时,遇到题目所示的四种查询,不知道它们的确切含义是怎样,网上也没有搜到相关的介绍资料,请高手指点迷津,谢谢!

       收藏   分享  
    顶(0)
      




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

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客2
    发贴心情 
    SPARQL has 4 result forms:

    SELECT – Return a table of results.
    CONSTRUCT – Return an RDF graph, based on a template in the query.
    DESCRIBE – Return an RDF graph, based on what the query processor is configured to return.
    ASK – Ask a boolean query.
    The SELECT form directly returns a table of solutions as a result set, while DESCRIBE and CONSTRUCT use the outcome of matching to build RDF graphs.

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

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客3
    发贴心情 
    SELECT
    The SELECT result form is a projection, with DISTINCT applied, of the solution set. SELECT identifies which named variables are in the result set.  This may be "*" meaning "all named variables" (blank nodes in the query act like variables for matching but are never returned).

    CONSTRUCT
    CONSTRUCT builds an RDF based on a graph template.  The graph template can have variables which are bound by a WHERE clause.  The effect is to calculate the graph fragment, given the template, for each solution from the WHERE clause, after taking into account any solution modifiers. The graph fragments, one per solution, are merged into a single RDF graph which is the result.

    Any blank nodes explicitly mentioned in the graph template are created afresh for each time the template is used for a solution.

    DESCRIBE
    The CONSTRUCT form, takes an application template for the graph results. The DESCRIBE form also creates a graph but the form of that graph is provided the query processor, not the application. For each URI found, or explicitly mentioned in the DESCRIBE clause, the query processor should provide a useful fragment of RDF, such as all the known details of a book. ARQ allows domain-specific description handlers to be written.

    ASK
    The ASK result form returns a boolean, true of the pattern matched otherwise false.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/2/18 22:34:00
     
     tigerabbit 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:7
      积分:81
      门派:XML.ORG.CN
      注册:2005/3/3

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给tigerabbit发送一个短消息 把tigerabbit加入好友 查看tigerabbit的个人资料 搜索tigerabbit在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看tigerabbit的博客4
    发贴心情 
    谢谢jpz6311whu的提示,我找到了教程中的相关章节。教程中该部分写的真简洁阿,也没有相关例子,不知道具体查询形式是怎样的,不知道W3C有没有出过更详细的用法说明?
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/2/18 22:48:00
     
     tigerabbit 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:7
      积分:81
      门派:XML.ORG.CN
      注册:2005/3/3

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给tigerabbit发送一个短消息 把tigerabbit加入好友 查看tigerabbit的个人资料 搜索tigerabbit在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看tigerabbit的博客5
    发贴心情 
    察看了一下W3C的文档,总算找到相关的说明,贴在这里,与同道中人分享
    http://www.w3.org/TR/2005/WD-rdf-sparql-query-20051123/#ask
    http://www.w3.org/TR/2005/WD-rdf-sparql-query-20051123/#construct
    http://www.w3.org/TR/2005/WD-rdf-sparql-query-20051123/#select
    http://www.w3.org/TR/2005/WD-rdf-sparql-query-20051123/#describe
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/2/18 22:59:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/7/29 17:54:11

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

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