增强RAMOSE:一个用于在数据源上实现REST API和语义可操作输出的框架
Enhancing RAMOSE, a Framework for Implementing REST APIs and Semantic-Actionable Outputs Over Data Sources
浏览论文内容
中文总结 AI 辅助
研究针对学术基础设施通过REST API公开数据的开发难题,核心方法是利用RAMOSE框架,其新版本扩展了九个新功能,主要贡献是能跨源编排查询、连接不同结果,还被应用于相关项目,服务相关API。
中文摘要 AI 辅助
学术基础设施越来越多地通过遵循共享规范的REST API来公开其数据,如科学知识图谱 - 互操作性框架(SKG-IF)。然而,在现有数据源上实现这些规范需要大量开发工作。RAMOSE是一个开源Python框架,通过将声明性配置文件转换为基于RDF三元组存储的文档化REST API来减少工作量。本文介绍其第二个主要版本,扩展了九个新功能,包括跨多个SPARQL端点和非RDF源的查询编排、可插拔输出格式和请求参数、分页和缓存、OpenAPI导出以及写操作等。通过与九个类似工具的功能比较表明,只有RAMOSE能在一个API操作中基于任意键连接RDF和非RDF结果。它为OpenCitations REST API提供服务,并被GRAPHIA项目采用。
英文摘要
Scholarly infrastructures increasingly expose their data through REST APIs that follow shared specifications, such as the Scientific Knowledge Graphs - Interoperability Framework (SKG-IF), which defines a common data model, exchange format, and REST API for research information. Implementing such specifications over existing data sources, however, requires a development effort that many open infrastructures cannot afford. RAMOSE, the RESTful API Manager Over SPARQL Endpoints, is an open-source Python framework that reduces this effort by turning a declarative configuration file into a documented REST API over RDF triplestores. This article presents its second major version, which addresses nine new requirements. The new features include query orchestration across multiple SPARQL endpoints and non-RDF sources, with joins across their results; pluggable output formats and request parameters; pagination and caching; OpenAPI export; and write operations, with authentication for both API consumers and protected endpoints. A built-in module packages the format and filters that SKG-IF prescribes, letting a provider expose a compliant endpoint only through configuration. A functional comparison with nine similar tools, grounded in reproducible tests, shows that RAMOSE is the only one able to serve both RDF and non-RDF sources simultaneously within a single API operation, joining their results on arbitrary keys. Its first version served the OpenCitations REST APIs, which peaked at almost 38 million monthly requests between May 2025 and May 2026. The new version extends this deployment to the OpenCitations SKG-IF endpoint and is adopted by the GRAPHIA project to onboard data sources into its SKG-IF-based federation.