[Paper Review] Restpark: Minimal RESTful API for Retrieving RDF Triples
Restpark proposes a minimal, lightweight RESTful API using HTTP GET parameters to retrieve RDF triples in JSON-LD format, enabling direct, stateless access to RDF data without requiring SPARQL endpoints or triple stores. It allows developers to query datasets using subject, predicate, and object filters, lowering the barrier for building applications on semantic web data using standard web technologies.
How do RDF datasets currently get published on the Web? They are either available as large RDF files, which need to be downloaded and processed locally, or they exist behind complex SPARQL endpoints. By providing a RESTful API that can access triple data, we allow users to query a dataset through a simple interface based on just a couple of HTTP parameters. If RDF resources were published this way we could quickly build applications that depend on these datasets, without having to download and process them locally. This is what Restpark is: a set of HTTP GET parameters that servers need to handle, and respond with JSON-LD.
Motivation & Objective
- To address the complexity and infrastructure overhead of SPARQL endpoints for publishing RDF data on the web.
- To enable developers to query RDF datasets using simple HTTP requests without requiring a full triple store or SPARQL engine.
- To reduce the entry barrier for publishing and consuming semantic web data by leveraging standard web protocols and JSON-LD.
- To support interoperability between datasets through standardized, human- and machine-readable query interfaces.
- To provide a lightweight, composable alternative to SPARQL that can be implemented on top of any storage system (e.g., MySQL, MongoDB) using common programming languages.
Proposed method
- The API uses standard HTTP GET requests with query parameters: subject, predicate, and object, each accepting URIs or literals.
- Servers handling the /restpark endpoint return matching RDF triples in JSON-LD format, ensuring machine-readability and web compatibility.
- The method relies on server-side parsing of query parameters to match RDF triples stored in any underlying data store, regardless of backend technology.
- It enables federated data access by allowing queries to be chained across datasets using shared identifiers, such as names or URIs.
- The approach supports both direct matching on literals (e.g., names) and URI-based linking via predicates like owl:sameAs for improved data integration accuracy.
- It is designed to be stateless and idempotent, aligning with REST principles and enabling caching and scalability.
Experimental results
Research questions
- RQ1Can a minimal, stateless RESTful interface be designed to retrieve RDF triples without requiring a full SPARQL endpoint?
- RQ2How can developers query RDF data using standard web protocols and common programming languages without relying on triple stores?
- RQ3To what extent can this approach improve interoperability and composability between decentralized RDF datasets?
- RQ4How does the use of literal-based matching compare to URI-based linking (e.g., via owl:sameAs) in terms of accuracy for federated queries?
- RQ5Can this method be effectively implemented on top of existing non-RDF storage systems like MySQL or MongoDB?
Key findings
- The Restpark API enables direct, stateless retrieval of RDF triples using simple HTTP GET requests with subject, predicate, and object parameters.
- It allows developers to build applications that consume RDF data without downloading large RDF files or setting up SPARQL endpoints.
- The method supports federated queries across datasets by using shared identifiers, such as actor names or URIs, to link results.
- Using owl:sameAs predicates enables more accurate cross-dataset linking than literal matching, reducing errors from name variations.
- The approach is lightweight and can be implemented on top of any storage system, including relational or document-oriented databases, using any server-side language.
- JSON-LD responses ensure machine-readability and native support for RDF data in web applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.