Read-only mirror of https://github.com/SwissFederalArchives/lindas-ld-widget — Schweizerisches Bundesarchiv. Issues & pull requests at the source.
  • TypeScript 71.3%
  • HTML 26.1%
  • Dockerfile 2.2%
  • SCSS 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-26 12:05:00 +01:00
.github ci: re-enable auto-deploy to TEST [skip ci] 2026-03-26 12:05:00 +01:00
.vscode first commit 2022-11-25 14:01:50 +01:00
docs Add DevOps pipeline with environment-based deployments 2026-01-26 15:19:09 +01:00
nginx Fix security vulnerabilities and code quality issues 2026-01-27 10:41:45 +01:00
Removed Build prod_* images directly, remove promote workflow 2026-02-23 09:00:39 +01:00
src Merge fix/code-quality-and-security into main 2026-03-24 21:20:59 +01:00
.dockerignore docker: create image 2023-03-27 10:04:36 +02:00
.editorconfig first commit 2022-11-25 14:01:50 +01:00
.gitignore first commit 2022-11-25 14:01:50 +01:00
angular.json ng update 2024-03-12 08:45:43 +01:00
CHANGELOG.md Fix security vulnerabilities and code quality issues 2026-01-27 10:41:45 +01:00
changelog.md Change Docker build tags from test_* to prod_* for production (#20) 2026-03-02 16:18:56 +01:00
Dockerfile docker: create image 2023-03-27 10:04:36 +02:00
package-lock.json Fix security vulnerabilities and code quality issues 2026-01-27 10:41:45 +01:00
package.json Fix security vulnerabilities and code quality issues 2026-01-27 10:41:45 +01:00
README.md readme update 2024-03-12 09:01:29 +01:00
tsconfig.app.json first commit 2022-11-25 14:01:50 +01:00
tsconfig.json first commit 2022-11-25 14:01:50 +01:00
tsconfig.spec.json first commit 2022-11-25 14:01:50 +01:00

LdWidget

Introduction:

The LdWidget is a versatile tool designed to execute SPARQL queries effortlessly. It offers flexibility by allowing users to specify a SPARQL endpoint URL, a query, and an optional button label. Integration is seamless through iframe embedding, with parameters encoded as query parameters in the URL.

Usage:

To utilize the LdWidget, simply include it as an iframe in your web page. Set the src attribute of the iframe to the URL of the widget, with the parameters encoded as query parameters. It's important to note that all parameters must be URL encoded.

Configuration:

For enhanced development convenience, append /config to the URL of the widget. This triggers the display of a configuration form, simplifying the process of entering the SPARQL endpoint URL, the query, and the optional button label in a user-friendly manner. This feature eliminates the need for manual query encoding. However, it's worth mentioning that the configuration dialog is intentionally kept minimalistic and may lack aesthetic appeal.

Parameters:

  • q: The SPARQL query to execute.
  • endpoint: The URL of the SPARQL endpoint.
  • b (optional): The button label.

Here is a configuraiton dialog example url: Example Config

Where is it used?

Request for rabies titre verification

You can check whether a rabies antibody test that has been carried out by the Swiss Rabies Center is valid, provided you have the laboratory report.

https://www.ivi.admin.ch/ivi/en/home/tollwutzentrale/tollwut-widget.html

Example

Check the src/example.html file for an example of how to use the widget.