Add a workflow that registers depictions as portraits #7

Closed
jsheunis wants to merge 1 commit from depictions into main
Member

The workflow does the following:

  • Get all persons for which pages are generated (i.e. associated with the main project)
  • Get all depictions of type 'Portrait'
  • keep depictions that are 'about' any of the pids of the relevant persons
  • keep depictions that have distributions
  • keep distributions that have characterized_by with predicate==dcat:downloadUrl
  • extract the url (i.e. object)
  • register the file in the www-from-model dataset using git annex addurl

The depiction is added as 'portrait.' alongside the '_index.md' page of the
person page being generated. This is done so that 'qri render-record' and the
associated jinja template can take care, separately, of rendering a portrait
if a 'portrait.' image file is available.

The workflow does the following: - Get all persons for which pages are generated (i.e. associated with the main project) - Get all depictions of type 'Portrait' - keep depictions that are 'about' any of the pids of the relevant persons - keep depictions that have distributions - keep distributions that have characterized_by with predicate==dcat:downloadUrl - extract the url (i.e. object) - register the file in the www-from-model dataset using git annex addurl The depiction is added as 'portrait.<ext>' alongside the '_index.md' page of the person page being generated. This is done so that 'qri render-record' and the associated jinja template can take care, separately, of rendering a portrait if a 'portrait.<ext>' image file is available.
The workflow does the following:
- Get all persons for which pages are generated (i.e. associated with the main project)
- Get all depictions of type 'Portrait'
- keep depictions that are 'about' any of the pids of the relevant persons
- keep depictions that have distributions
- keep distributions that have characterized_by with predicate==dcat:downloadUrl
- extract the url (i.e. object)
- register the file in the www-from-model dataset using git annex addurl

The depiction is added as 'portrait.<ext>' alongside the '_index.md' page of the
person page being generated. This is done so that 'qri render-record' and the
associated jinja template can take care, separately, of rendering a portrait
if a 'portrait.<ext>' image file is available.
jsheunis closed this pull request 2026-03-02 14:38:47 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
www/www-from-model!7
No description provided.