Skip to content

Commit

Permalink
Correct preamble description
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Mar 11, 2024
1 parent 6598a7b commit 1371b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PLUGINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 1371b57

Please sign in to comment.