收稿日期: 2013-09-14
录用日期: 2015-01-15
网络出版日期: 2025-04-28
基金资助
国家科技支撑计划课题“科技知识组织体系共享服务平台建设”子课题“科技知识组织体系(STKOS)的开放查询和推理接口建设”(2011BAH10B03-5)
Research Hotspots and Progress in SPARQL Query Technology in Recent Years
汤怡洁 , 杨锐 , 刘毅 . 近年来SPARQL查询技术的研究热点及进展[J]. 知识管理论坛, 2014 , 2014(1) : 1 -6 . DOI: 10.13266/j.issn.2095-5472.2014.01.001
表1 SPARQL基本语法 |
| 序号 | 语法 | 含义 |
| 1 | BASE | 根IRI,其他以此为根的IRI可以写成相对形式 |
| 2 | PREFIX | IRI前缀的缩写 |
| 3 | SELECE、ASK、DESCRIBE、CONSTRUCT | 查询关键字 |
| 4 | ?person ?name ?age | 要查询的变量,使用?标识变量 |
| 5 | FROM | 从何处查询,可以一次查询多个RDF数据集 |
| 6 | WHERE | 过滤条件集合,等同于SQL的WHERE子句 |
| 7 | ?person foaf:name ?name | 具体的过滤条件,使用Turtle语法 |
| 8 | OPTIONAL | 可选过滤条件 |
| 9 | FILTER(REGEX(?name, “Jack”)) | 明确化的过滤条件,类似SQL中的LIKE等 |
| 10 | ORDER BY | 可指定排序,与SQL中类似 |
| 11 | LIMIT 10 | 限定返回结果记录数,类似SQL中的TOP 10 |
| 12 | OFFSET 10 | 翻页功能,掠过前10条,从11条开始返回结果 |
| [1] |
Last SPARQL 1.1.proposed recommendations published [EB/OL]. [2013-03-19]. http://www.w3.org/blog/SW/2013/01/29/missing-sparql-1-1-proposed-recommendations-published/.
|
| [2] |
Search RDF data with SPARQL[EB/OL]. [2013-03-23].http://www.ibm.com/developerworks/xml/library/j-sparql/.
|
| [3] |
SparqlEndpoints [EB/OL]. [2013-03-25].http://www.w3.org/wiki/SparqlEndpoints.
|
| [4] |
Gupta R, Malik S K. SPARQL Semantics and execution analysis in Semantic Web using various tools[C]//2011 International Conference on Communication Systems and Network Technologies. Jammu:IEEE,2011:278-282
|
| [5] |
Zviedris M, Barzdins G. ViziQuer: A tool to explore and query SPARQL endpoints[C]//European Semantic Web Conference 2011, LNCS 6644. Berlin:Springer-Verlag ,2011: 441-445.
|
| [6] |
Kashlev A, Chebotko A. SPARQL-to-SQL query translation: Bottom-Up or Top-Down?[C]//2011 IEEE International Conference on Services Computing. Washington DC:IEEE,2011 :757-758
|
| [7] |
Chebotko A, Lu Shiyong . Querying the Semantic Web: An efficient approach using relational databases [M]. Saarbrücken: LAP Lambert Academic Publishing, 2009.
|
| [8] |
吕康豪. RDF Web与SPARQL的应用 [EB/OL]. [2013-04-02].http://semwebtw.openfoundry.org/2010/Talks/0319-semweb-kennyluck/.
|
| [9] |
Hartig O. An introduction to SPARQL and queries over linked data [C]// 11th International Semantic Web Conference(ISWC 2012), LNCS 7387. Berlin:Springer-Verlag ,2012: 506–507.
|
| [10] |
J M, Ruiz D, Ruiz-Cortes A. Improving semantic web services discovery using SPARQL-based repository filtering [J]. Web Semantics: Science, Services and Agents on the World Wide Web, 2012,17(4):12–24.
|
| [11] |
N P, Coello J M A, Cardozo E. Improving dynamic Web service selection in WS-BPEL using SPARQL [C]// Systems, Man, and Cybernetics (SMC), 2011 IEEE International Conference on 2011. Anchorage:IEEE,2011 :864-871
|
| [12] |
M, Nikolov A, Motta E. Building SPARQL-Enabled applications with android devices[EB/OL].[2013-04-02].http://iswc2011.semanticweb.org/fileadmin/iswc/Papers/PostersDemos/iswc11pd_submission_89.pdf.
|
| [13] |
Storage Solutions [R/OL]. [2013-04-22]. http://www.diem.fi/files/deliverables/D5.6.3_Storage-solutions.
|
/
| 〈 |
|
〉 |