Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lblod/poc-decision-source-harvester
Proof of concept that harvests local decision using linked traversal
https://github.com/lblod/poc-decision-source-harvester
Last synced: 22 days ago
JSON representation
Proof of concept that harvests local decision using linked traversal
- Host: GitHub
- URL: https://github.com/lblod/poc-decision-source-harvester
- Owner: lblod
- Created: 2023-05-31T11:33:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-16T08:32:36.000Z (8 months ago)
- Last Synced: 2024-05-17T02:51:59.785Z (7 months ago)
- Language: TypeScript
- Size: 181 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poc-decision-source-harvester
Proof of concept that harvests local decision using linked traversal# Install
We use the NPM package `http-server` to run the harvester application:
```
npm install
npm install --global http-server
```
## Hot reloading
To run with hot reloading. Install the following:
```
npm install --save-dev webpack-dev-server
```# Build
```
npm run build
```Now, you need to rebuild the app each time you want to test a specific `interestedMunicipality`.
# Proxy
To increase the performance, we created an HTTP proxy that sets the Cache-Control header to immutable for every publication. Run following commands in a separate terminal to setup the proxy on localhost:8080:
```
cd proxy
npm install
node server.js
```# Run
```
http-server --cors
```Go to `http://127.0.0.1:8081/dist/` and check out the console where you should see the harvesting progress
## Hot-reloading
Hot-reloading with webpack-dev-server is implemented. You can run using the following:
```
npm run start:dev
```# Link traversal client
The browser-build version of Comunica link traversal must be added as Javascript file in the index.html.
If you want to adapt to another Comunica config, build an engine with your config + webpack to a browser js:
https://github.com/brechtvdv/comunica-feature-link-traversal/commit/c42d57e6d9328de962de66f28413660454319efe