Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a cron job to refresh vocabularies #4

Closed
menzowindhouwer opened this issue Jul 30, 2024 · 0 comments · Fixed by #6
Closed

adding a cron job to refresh vocabularies #4

menzowindhouwer opened this issue Jul 30, 2024 · 0 comments · Fixed by #6
Assignees

Comments

@menzowindhouwer
Copy link
Contributor

Adding a crontab and a job to run entrypoint.py (see https://code.huc.knaw.nl/tsd/docker-backup for adding a cronjob)

entrypoint.py inspects the refresh setting of each vocab yml. If the time since last mofification has passed the vocab needs to be refreshed.

The last modification can be stored in the GraphDB:

<named Graph URI> <http://purl.org/dc/terms/modified> "<epoch>" 

this property can be updates using SPARQL UPDATE or you can have many where the maximum one is the most current.

@jarno-knaw jarno-knaw self-assigned this Jul 30, 2024
@jarno-knaw jarno-knaw linked a pull request Aug 1, 2024 that will close this issue
menzowindhouwer added a commit that referenced this issue Sep 9, 2024
…resh-vocabularies

Feature/#4 adding a cron job to refresh vocabularies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants