Skip to content

Statistics

Benjamin Schnabel edited this page Oct 19, 2022 · 3 revisions

The the website the current statistics are being displayed. This is generated by a script. The scripts creates hardcoded partial layout(statistics.html), which is then loaded by hugo.

#Running

Run the script with python statistics.py. Make sure you use a cronjob to update the statistics regularly.

Libraries needed:

  • os
  • json
  • SPARQLWrapper

Troubleshoot

Make sure SPARQL and the SPARQL-Endpoint is running (https://data.judaicalink.org/sparql/query).

Check the console output.

Idfthe counter does not count up there is an issue with the akhi Javascript library.

Is the folder correct? ./layouts/partials/. Is the partial included in Hugo?

Is the output folder correct and writable?

Clone this wiki locally