Skip to content

Conversation

@mirdono
Copy link
Member

@mirdono mirdono commented Dec 19, 2025

This builds on #27 to provide a public endpoint for the app's annotations with geographical information. More specifically, this extends the configuration for the resource and dispatcher services with the appropriate resource definitions and routes respectively. Furthermore, this bumps the used docker-virtuoso to a version supporting geosparql and updates its configurations to load the appropriate plugins. Finally, this adds a migration inserting some example data for demonstration and testing purposes.

How to test

This PR involves upgrading the version of the virtuoso service. For this follow the upgrade instructions in the docker-virtuoso README. Note, make sure you already started the virtuoso service before switching to this PR's branch.

Afterwards, make sure to restart the resources and dispatcher services such that they load their updated configurations. To load the example data into the app simply start the migrations service.

Notes

  • The data model is documented on gitbook

Related PRs

  • Frontend PR: #8

Related tickets

  • LBRON-920

- Bump `virtuoso` to a version support geosparql, follow the steps in the
  README[1] to update
- Removes the superfluous `+` symbols in the virtuoso's configuration. These
  caused these lines to be ignored and thus not loading the necessary plugins.

[1] https://github.com/redpencilio/docker-virtuoso?tab=readme-ov-file#upgrading
@mirdono mirdono self-assigned this Dec 19, 2025
@mirdono mirdono added the enhancement New feature or request label Dec 19, 2025
@mirdono mirdono marked this pull request as draft December 19, 2025 09:29
@mirdono mirdono force-pushed the feat/add-geo-and-annotation-to-resources branch from 10e0d55 to 2b616dd Compare January 6, 2026 15:51
@mirdono mirdono force-pushed the feat/add-geo-and-annotation-to-resources branch from 2b616dd to 0a3c160 Compare January 6, 2026 15:55
@mirdono mirdono requested review from Rahien and niels-triply January 6, 2026 17:28
@mirdono mirdono marked this pull request as ready for review January 6, 2026 17:28
@mirdono mirdono marked this pull request as draft January 7, 2026 08:29
@mirdono mirdono marked this pull request as ready for review January 7, 2026 08:30
:resource-base (s-url "http://data.lblod.info/id/memberships/"))

(define-resource location ()
(define-resource location-temp ()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this one about?

Copy link
Member Author

@mirdono mirdono Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into issues when I defined the other location resource type for dct:Location in geo.lisp. Renaming the one defined here was a quick fix at the time as it is not (yet) used in the frontend.

:resource-base (s-url "http://data.lblod.info/id/locations/geometry/")
:on-path "geometries")

;; TODO: Add: `schema:TouristAttraction', `Perceel:Perceel', and `wikidata:Q2785216'?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not for the pilot? check with business?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants