## Gist
An automated system (forgejo workflows) populates the sources of a Hugo-based website from routine metadata queries. The website is structured to be able to present anything and everything about the group (activities, outputs, people, etc.) without drowning visitors in information. The focus is on the linkages between information items, to make the *why* and *how* accessible, rather than stopping at the *what* and *who*.
The aim for this effort is to have the group website be able to serve as a main show case for the work of the group -- not just be content, but also by how it is done.
## Related (superseded) documents
- [Psyinf topics](https://hedgedoc.psychoinformatics.de/85AYvUpaQK2FsR5QVXKTfg#)
- [Psyinf as metadata](https://hedgedoc.psychoinformatics.de/TfedHLp-QbOGwXChgKQIoQ#)
## (Already) existing resources
Everything about this project is public.
- [Website repo (hugo)](https://hub.psychoinformatics.de/www/www-from-model)
- [Automatically rendered website](https://www-draft.psychoinformatics.de/)
- [Metadata editor](https://pool.psychoinformatics.de/ui/)
- [Metadata api](https://pool.psychoinformatics.de/api/docs/)
- [Metadata model](https://concepts.datalad.org/s/demo-rse-group/unreleased/)
## Key component designs
- [What goes into pages](https://hedgedoc.psychoinformatics.de/QF5KLaMuSGuOR38phwJKVQ)
- [Curation app](https://hedgedoc.psychoinformatics.de/IidKmKaOT2i6rV5I-LCOBQ)
- [Git-based curation workflow](https://hedgedoc.psychoinformatics.de/f4ilLA3vR4Cbtd1MA8zl6A)
- [Presentation concept for projects](https://hedgedoc.psychoinformatics.de/ttudgPHAStupY7rQqeJMFA)
- [Front matter dict in TRR vs PsyInf](https://hedgedoc.psychoinformatics.de/5a8kyZcEQlO5uixNrJSb-Q)
- [Metadata record enrichers](https://hedgedoc.psychoinformatics.de/3cSouq0YSJ6m64_ArWpJEg)
## Reusable component candidates
- [Demos query and exporter implementations](https://hub.psychoinformatics.de/datalink/query-rse-group)
- [TRR379 publication page generator](https://hub.trr379.de/q02/pool-publication-page) (see also `person` branch for person pages)
## Resources for record submission and curation
- [Psyinf Knowledge Pool Record Submission Use Cases](https://hedgedoc.psychoinformatics.de/s/mkHm1nMFHR)
## Technical and architectural approach
### Goals
The final implementation should achieve the following:
- Read records from the metadata system (pool)
- Enrich and normalize the metadata (e.g., DOI, contributors)
- Write enhanced metadata back to the pool
- Render enhanced records into Hugo source pages
### Record types
An overview of remaining to-do items and upcoming deadlines are available in the [Group website timeline](https://hedgedoc.psychoinformatics.de/s/yPDmiFmIdh) doc.
Checkbox indicates whether the respective content is already rendered on the page in one way or another
- [x] People. Everyone who is listed as `associated_with` the main psyinf project. See https://hub.psychoinformatics.de/www/www-from-model/src/branch/main/.forgejo/workflows/update_person_pages.yaml
- [x] Projects. Every project that is (indirectly) `part_of` the main psyinf project. See https://hub.psychoinformatics.de/www/www-from-model/src/branch/main/.forgejo/workflows/update_project_pages.yaml
- Outputs (e.g., Publications, Datasets, Software)
- [ ] Publications. Needs to become every publication with at least one `attributed_to` who is/was also `associated_with` the main psyinf project.
- [ ] Datasets. Query/filter identical to publications
- [ ] Software/Instruments. Query/filter identical to publications.
- [ ] Grants. This is more of a theoretical possibility. I doubt that anyone would appreciate dedicated pages about grants. These better link to funder pages. One argument would be to have something when the funders do not. For example, the BMBF(TR) is really bad at this.
- [x] [Topics](https://hedgedoc.psychoinformatics.de/85AYvUpaQK2FsR5QVXKTfg#). Strictly seen, this would need to be any topics that are actually used for any output/project. But this is a really expensive query. It would be better to use all topics that exist and maybe have custom `--exclude`, if needed.
- [ ] [Objectives](https://hedgedoc.psychoinformatics.de/TfedHLp-QbOGwXChgKQIoQ). Query/filter setup identical to topics.
*This list is non-exhaustive.*
### Open questions
1. What fields can be updated/added through enrichment?
> There should be no limit [name=mih]
3. Should enriched data overwrite existing data automatically?
> This Q is not really applicable. All submissions, also machine-submissions, are subject to curation. [name=mih]
4. How do we store provenance for enrichment of records?
> Machine-submitted records can come in through a dedicated account. ATM neither the schema has dedicated support for, not does dumpthings provider support beyond submitter ids (which will always be the curator). [name=mih]
5. How do we handle the fact that pool data *and* enrichment sources are not fixed?
> I assume the answer is also "curation", but I am not sure I understand the question [name=mih]
> Suppose internal source and external source differ about some property (e.g. spelling of a title), and curation decides internal is better. But other properties in either source can change, so we will likely re-run enrichment -- does that sentence us to continuously resolve the same conflict?
>
> Somewhat related: should we be storing copies of information available externally (if so / when)? Enrichment probably requires us commit something to the pool (not just mix it in when building web pages). But pid-based approach means that the pool does not have to contain *copies* of all things, it can only reference. Concrete example: TRR publications require information from SPDX which is not available in the TRR Pool ("canonical" CC URLs found in Crossref records are present in SPDX as "see also"), but the generation script can do pretty well with a downloaded / cached copy of the versioned SPDX file [name=msz]
7. Which fields must have stable PIDs that map to top-level pages versus which fields can reference external IDs? (see also [Design website namespace issue](https://hub.psychoinformatics.de/www/www-from-model/issues/1))
> If I get the Q right, this is not about fields, but about record PIDs. If so, then the answer is: Everthing that shall appears with a page on the website **must** have a PID in the namespace of the website. [name=mih]
## Towards a first page-generator workflow
Let's build the pages of people somehow associated with the Psychoinformatics project
- https://hub.psychoinformatics.de/datalink/query-rse-group is the place to put (generic) tooling. Install with `uv tool install https://hub.psychoinformatics.de/datalink/query-rse-group.git --with-executables-from dump-things-pyclient`
- this is the respective query that yields the records that needs to be renderer (possibly after same enrichment):
`read-pages https://pool.psychoinformatics.de/api/public/records/p/XYZPerson | qrg filter-linked-pid --api-url https://pool.psychoinformatics.de/api public xyzrsens:projects/4b434ab4-929e-4d64-97e0-ff334c6a6ff2 associated_with`
- and here is an expanded pipe that also inlines link records of a select property:
`read-pages https://pool.psychoinformatics.de/api/public/records/p/XYZPerson | qrg filter-linked-pid --api-url https://pool.psychoinformatics.de/api public xyzrsens:projects/4b434ab4-929e-4d64-97e0-ff334c6a6ff2 associated_with | qrg inline-records --api-url https://pool.psychoinformatics.de/api -p delegated_by`
## Conceptualizing a sitemap and site content
### Proposed mapping
1. `https://www.psychoinformatics.de/`
- **Question to answer:** What are the primary *motivations* guiding the group's activities?
- **Rendered as:**
- Objectives
- Weighted by role (e.g., core value/driver vs. constraint), frequency (i.e., how many projects, outputs, etc. were motivated by this objective), and/or recency (i.e., are some objectives increasingly important now vs. at the genesis of the group? how are the group's values evolving?)
- Includes short description and summary "stats" of weighting parameters listed above
- Could also include `Instrument`s that enabled or were produced through an objective to put products of the group more front and center
- Links to: `/objectives/{objective}`
- Short description of how to use site and possible navigation routes (?) (e.g., links to `/objectives/`, `/projects/`, `/persons/`, `/topics/`, etc.)
- **Goals and non-goals:**
- Present an overview of actionable values, rather than lists of specific projects, outputs, people, etc.
2. `/objectives/{objective}`
- **Question to answer:** *How* does this objective guide group activities?
- **Rendered as:**
- Description of *why* this objective is important
- Projects
- Weighted by *how* the objective motivated the project (i.e., role) and recency and/or completion status (i.e., start and/or end date)
- Another potential place to highlight `Instrument`s as enablers or outputs
- Links to: `/projects/{project}`
- Links to co-existing `/objectives/{objective}`
- **Goals and non-goals:**
- Serve as the central lens for the website to say:
> reasons why we did what we did and how we did it [name=mih, [Psyinf as a metadata record](https://hedgedoc.psychoinformatics.de/TfedHLp-QbOGwXChgKQIoQ#Objectives)]
3. `/projects/{project}`
- **Question to answer:** *Why* was this project undertaken, *how* was it shaped and implemented, and *what* did it do?
- **Rendered as:**
- Project description
- Motivating objectives (with roles), and potentially how the objective influenced the project
- Topics as tags
- Associations (e.g., persons contributing, organizations and roles (i.e., host institutions, funders, etc.), grants)
- Inputs/Outputs (e.g., software, publications, datasets, media, events, etc.) (includes `Instrument`)
- Attributes (i.e., websites)
- Links to:
- indidvidual pages for all of the above
- related `/projects/{project}`
- **Goals and non-goals:** Essentially this works out to be the lists of we did this and this, but with the objective navigation and presentation of relevant associations, explains more about *why* and *how* we did this and this and this and...
4. Header bar
- **People:** (`/persons/`) List of lab members, weighted by current and former, with links to `/persons/{person}/` pages
- **Projects:** (`/projects/`) List of projects, weighted perhaps by relationship to objectives (i.e., core value motivations vs. political motivations) and/or time-based (e.g., start/end date, completion status)
- **Products:** (`/products/`) List of instruments, datasets, publications (?), with links to `/product/{product}` pages (?)
- Quick link to `hub.psychoinformatics.de`
5. Footer bar
- **Topics:** (`/topics/`) List of topics
- **Contact:** Static page with contact information (?) or perhaps just a link to `/persons/mih`
## Meetings
### Chat comment by adina
Regarding the website modelling efforts (I'm not sure if this has been written down before, I didn't find it in the hedgedoc, but maybe there is a different one?): I realized when migrating repositories and asking myself "where should they go to be most discoverable", "Which repo should have an accessible issue tracker" etc (and also after a meeting yesterday with corporate communication and learning how they think of websites), that one central task the website needs to fulfill is the central "entrypoint" to discover work and then guide visitors to the resource on the various hubs (we can't simply point to GitHub anymore). Papers, Software, Data would often need to have a link to one or more forgejo instances. In KISTE, I have custom annotations (e.g., "source code repository", "cites as authority", ...) but in the editor these annotations are rather hidden. On the website, I think they should become a very salient feature (like a prominent button with a link, to be very immediately findable), and I guess their flexible nature makes this a bit difficult. Maybe we should identify a few standard properties that can then get presented as buttons (in addition to structured records), if present. Does that make sense? standard properties coming to my mind are:
- Publication
- Source Code (or more generic: Sources, eg with tex sources of a paper)
- Raise an issue/Contribute with a PR
- Documentation
### 14.01.2026
- mslw: What other sources would we want to consider in addition to the pool?
- mih: Want to have something structurally ready by Friday
- GOAL: Have at least one workflow be automated to point to template, query, workflow automation, and page that is output
- mih: Chance that TRR379 moves away from Hugo and to other static site generator; Adina working on LaTeX reporting
- Everything should be independent of rendering
- jsheunis: What is delineation between `query-rse-group`, `dump-things`, and `triple-tools`?
- qrg basically turning into a `dump-things` Python client
- `qrg filter-linked-pid` is not dependent on rendering to website
- Is a command line chain with stdin and stdout
- A generic command to expand on a given attribute can turn a lean record into something more substantial
- mih: Started implementing with Jinja, but didn't look for a "best" tool for the job
- Something else could always be used for rendering
- Next steps:
- Someone needs to put down the framework to establish "one possible approach to querying"
- Templates
- What do we want to put on the website? i.e., conceptualization
- Will reveal what is missing in the records/models
- mih: @jsheunis, updates to `shacl-vue` are helpful for the entire process
- jsheunis: Where does it make sense to host a base config?
- Anywhere! You can reference the URL so repo doesn't matter so much
- mih: Maybe think about versioning
- jsheunis: Will keep working on `shacl-vue` issues, but also want to get familiar with query tools and curation steps
- Will check whether photo upload feature is set up correctly
- mslw: Identifiers are not intuitive, but goes against lean data model a bit
- j.goddard: Can start with conceptualization to know what we're testing against
- jsheunis: Filling in linkages in `shacl-vue` would also be useful
- jsheunis: Will write down what tools to do for what steps
- mslw: Publication reporting process was optimized to only fetch Person records once, and then do the looping
- jsheunis: Seems too early to optimize now; queries should be independent of other queries
- mslw: Should external references be stored in the pool, or looked up in the rendering process?
- jsheunis: We should store in the pool any data that fits in our model
- jsheunis: generalizing the query such that we don't need a separate command for each attribute would be a nice output of this effort
#### Action items
##### jsheunis
- [ ] Document upload
- [ ] Other `shacl-vue` issues
##### msłw
- [ ] use michael's querying tool and getting records out
- [ ] looking at filling templates with these records
- [ ] compare with, and use experience from, publication generation process from TRR379
##### j.goddard
- [ ] Fill in `shacl-vue` records a bit more
- [ ] Work on conceptualizing website and linkages we are looking for