Skip to content

Commit

Permalink
feat: Import dumps to SPARQL endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Jul 3, 2024
1 parent fcf0adb commit 0cd890d
Show file tree
Hide file tree
Showing 17 changed files with 1,852 additions and 154 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,24 @@ stages:
- query: "CONSTRUCT { $this a <https://schema.org/CreativeWork> } WHERE { $this a <https://schema.org/Book> }"
```
#### Stores
To query large local files, you may need to load them into a SPARQL store first. Do so by starting a SPARQL store,
for example Oxigraph:
```shell
docker run --rm -v $PWD/data:/data -p 7878:7878 oxigraph/oxigraph --location /data serve
```
Then configure the store in your pipeline:
```yaml
# config.yml
stores:
- queryUrl: "http://localhost:7878/query"
storeUrl: "http://localhost:7878/store"
```
#### Example configuration
```yaml
Expand Down
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export default {
coverageReporters: ['json-summary', 'text'],
coverageThreshold: {
global: {
lines: 68.16,
statements: 68.5,
branches: 64.36,
functions: 75,
lines: 71.15,
statements: 71.25,
branches: 66.66,
functions: 76.59,
},
},
transform: {
Expand Down
Loading

0 comments on commit 0cd890d

Please sign in to comment.