From bfb3869c74e1269a1e90f642fe5cc00d487e5775 Mon Sep 17 00:00:00 2001 From: Yoji Shidara Date: Mon, 11 Mar 2024 10:46:44 +0900 Subject: [PATCH] Correct preamble description --- PLUGINS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLUGINS.md b/PLUGINS.md index c29650c..8262da9 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -154,7 +154,7 @@ Reesponse { } ``` -We can see the `ctx` has two properties: `preamble` and `query`. `preamble` is the part of the comments before the query. `query` is the parsed query object parsed by [SPARQL.js](https://www.npmjs.com/package/sparqljs). We can modify the request by modifying this object. +We can see the `ctx` has two properties: `preamble` and `query`. `preamble` contains a series of `define` statements at the beginning of the query and exists to support certain triple store specific queries. `query` is the parsed query object parsed by [SPARQL.js](https://www.npmjs.com/package/sparqljs). We can modify the request by modifying this object. `resp` has four properties: `contentType`, `headers`, `body` and `cached`. `contentType` is the content type of the response. `headers` is the HTTP headers of the response. `body` is the body of the response. `cached` indicates whether the response is returned from the cache or not. We can modify the response by returning a new modified response object from `selectPlugin` function.