标题: | 用于链结资料上引导SPARQL的REST风格网路服务 RESTful Web Service for Conducting SPARQL on Linked Data |
作者: | 钟承恩 Chung, Cheng-En 邵家健 Zao, John K. 资讯科学与工程研究所 |
关键字: | REST风格的网路服务;语意网;链结资料;本体;SPARQL;RESTful Web Service;Semantic Web;Linked Data;Ontology;SPARQL |
公开日期: | 2014 |
摘要: | 近年来由于资料量急遽增加,如何储存这些资料并有效运用成为目前面临最大的挑战。在”Web 3.0”的世代,语意网是其中一项特征,我们希望让资料与资料之间多一层”语意”的关系来形成链结资料,让资料更容易被机器或是人运用,但如何让使用者都能容易使用并加上这一层”语意”关系即为最大的问题。 我们提出一个REST风格的网路服务,目的在于让不会SPARQL的人也可以使用链结资料并且容易发展及应用在多个平台上,如Android手机、入口网站……等。如何将REST应用程式介面转换成能够操作链结资料的语言和如何利用Ontology帮助使用者建立资料间的关系即为此篇论文重点。在此篇论文我们讨论了:(1)如何把SPARQL形式转换成REST的请求方法、(2)如何从SPARQL对应到REST的资源、(3)如何从REST应用程式介面得到的资料并转成SPARQL。此种将REST应用程式介面转成SPARQL的方法,我们分成两个方面来考虑,在查询方面,我们利用图的资料结构和图的演算法,首先读取Ontology、把Ontology转成图的资料结构,在使用图的演算法找出最短路径,并以此路径来生成SPARQL;在新增/删除/更新方面,使用REST应用程式介面来新增/删除/更新一个链结资料的Individual。 此系统已使用在我们实验室发展的BCI Ontology上,并且利用REST应用程式介面也已实作出两个应用程式CerebraApp和CerebraWeb,分别是Android应用程式和入口网站,期许这套架构能让链结资料发展更加蓬勃。 In recent years, data are growing rapidly. We are now facing the biggest challenges about how to store these data and use them effectively. In the generation of “Web 3.0”, Semantic Web is one of the features. We hope there are another “semantic” relationships between two data and use the relationships to form Linked Data in order to make the data more useful for the machine or human being. However, how to make it easy for people to build the semantic layer is the critical problem. The reason why we propose a RESTful Web Service is that because we hope the people who don’t know how to program SPARQL can also use Linked data. Then, Linked data can be used and developed easily onto any platform, like Android, Web Portal, … and so on. The point of this thesis is how to convert REST API into Linked Data language and how to use Ontology to build the relationships between two data. In the thesis, we discuss: (1) how to map SPARQL form into Request Method of REST. (2) how to map SPARQL into REST resources. (3) how to map REST API into SPARQL. We can divide the approach that maps REST API to SPARQL into two concepts. In the query form, we use the graph data structure and graph algorithm. At the beginning, we load Ontology, transform it into graph and store it into graph data structure. Using the algorithm of graph is the great method to find the shortest paths of the graph. Finally, we can use the paths to generate SPARQL. In the update form about create/delete/update, we use REST API to post/delete/put an individual of Linked Data. This system has been used in BCI Ontology which is developed by our laboratory and there are two applications using the REST API. One of the applications is developed in Android and the other one is developed in JSP to make Web portal. We hope this system architecture can make Linked Data more vigorous. |
URI: | http://140.113.39.130/cdrfb3/record/nctu/#GT070256027 http://hdl.handle.net/11536/75459 |
显示于类别: | Thesis |