论文标题
使用Ramose在SPARQL端点上创建静止的API
Creating RESTful APIs over SPARQL endpoints using RAMOSE
论文作者
论文摘要
语义Web技术广泛用于存储RDF数据,并通过SPARQL端点在Web上提供,可使用SPARQL查询语言查询。虽然语义Web专家强烈支持SPARQL端点的使用,但它阻碍了普通的Web用户,工程师和不熟悉语义Web技术的RDF数据的广泛使用,他们通常依靠Web Restful API来询问Web可避免的Web可避免Web的数据并为其创建应用程序。为了解决这个问题,我们开发了Ramose,这是Python开发的一种通用工具,可以通过SPARQL端点创建REST API。通过创建特定于源的文本配置文件,Ramose可以通过简单的Web Restful API调用来查询SPARQL端点,从而返回JSON或CSV构图数据,从而隐藏了来自普通Web用户的SPARQL和RDF的所有内在复杂性。我们提供的证据表明,在Opencitations TripLestores中使用Ramose在外部用户对此类RDF数据的查询数量中,使用Ramose API与通过SPARQL端点进行直接访问相比,使用RAMOSE对RDF数据提供了REST API访问。我们的发现表明,对于拥有替代API访问服务的RDF数据供应商的重要性,该数据可以通过语义Web Technologies和SPARQL查询语言中没有(或很少)经验的人使用。 Ramose既可以用来查询任何SPARQL端点,又可以查询任何其他Web API,因此对于希望创建API服务以访问传统TripleStore中的RDF的链接数据的服务提供商来说,它代表了一种简单的通用技术解决方案。
Semantic Web technologies are widely used for storing RDF data and making them available on the Web through SPARQL endpoints, queryable using the SPARQL query language. While the use of SPARQL endpoints is strongly supported by Semantic Web experts, it hinders broader use of RDF data by common Web users, engineers and developers unfamiliar with Semantic Web technologies, who normally rely on Web RESTful APIs for querying Web-available data and creating applications over them. To solve this problem, we have developed RAMOSE, a generic tool developed in Python to create REST APIs over SPARQL endpoints. Through the creation of source-specific textual configuration files, RAMOSE enables the querying of SPARQL endpoints via simple Web RESTful API calls that return either JSON or CSV-formatted data, thus hiding all the intrinsic complexities of SPARQL and RDF from common Web users. We provide evidence that the use of RAMOSE to provide REST API access to RDF data within OpenCitations triplestores is beneficial in terms of the number of queries made by external users to such RDF data using the RAMOSE API compared with the direct access via the SPARQL endpoint. Our findings show the importance for suppliers of RDF data of having an alternative API access service, which enables its use by those with no (or little) experience in Semantic Web technologies and the SPARQL query language. RAMOSE can be used both to query any SPARQL endpoint and to query any other Web API, and thus it represents an easy generic technical solution for service providers who wish to create an API service to access Linked Data stored as RDF in a conventional triplestore.