Read-only mirror of https://github.com/blw-ofag-ufag/system-map — Bundesamt für Landwirtschaft. Issues & pull requests at the source. Catalog: https://www.opensource.admin.ch/en/softwares/ry0iqc https://www.opensource.admin.ch/en/softwares/ry0iqc
  • Turtle 97%
  • SPARQL 1.5%
  • Python 1.3%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
MichiSchuepbach c933af134c
Merge pull request #192 from blw-ofag-ufag/tvd-subgraph
Add TVD subgraph based oAdd TVD subgraph based on Identitas system diagram

Refs B3-589, open questions remain in #193n Identitas system diagram
2026-11-11 15:04:44 +01:00
.github/workflows Update user/endpoint 2026-09-21 17:51:55 +02:00
docs Add open graph protocol (OGP) metadata 2026-07-16 13:54:20 +02:00
rdf Address review: remove isolated nodes from the subgraph, update remaining Fleko references 2026-11-05 14:05:26 +01:00
src Automatically write FOAG subgraph 2026-09-21 17:49:28 +02:00
tests Changes in testing pipelin 2026-03-16 13:57:00 +01:00
.gitattributes Create .gitattribute file 2026-01-09 15:04:33 +01:00
.gitignore Changes in RDF writing pipeline 2026-03-13 09:58:44 +01:00
publiccode.yml Run publiccode.yml through BK generator 2026-03-28 09:37:41 +01:00
README.md Update user/endpoint 2026-09-21 17:51:55 +02:00
requirements.txt Set up cleaner testing pipeline 2026-03-12 16:58:16 +01:00
upload.bash Automatically write FOAG subgraph 2026-09-21 17:49:28 +02:00

Combine Datasets Combine Datasets Python 3.12+ GitHub last commit GitHub issues

🧭 A system map for the Federal Office for Agriculture

This repository is set up to gather and visualize information about IT systems, the data those contain and their operating organizations in the Swiss agri-food sector. You can visually explore this work on the following pages:

If instead you are interested in the actual data, you can have a look at the following folders:

  • Ontology files contains information about how the data is structured. You can visualize it using WebVOWL.1
  • Data files contains information about the organizations, systems and information units themselves.

🔎 Subgraphs

Subgraphs of the system map allow inspecting one part of the overall system without being disturbed by the multitude of connected nodes around it. Have a look at the subgraphs for

If you want a always up-to-date list of all subgraphs and their size, you can query the system map accordingly.

⚙️ Examples of SPARQL queries from LINDAS

The DigiAgriFoodCH System Map graph on LINDAS can be queried to return various tables as data products from one source. Here are some examples:

You may find more examples in this directory

🔄 Run the data processing pipeline

To run the data processing and upload to LINDAS, follow these steps:

  1. Add variables to .env
USER=lindas-foag-system-map
PASSWORD=********
GRAPH=https://lindas.admin.ch/foag/crops
ENDPOINT=https://stardog.cluster.ldbar.ch/lindas
  1. Start a virtual environment and install libraries:
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
pip install -r requirements.txt
  1. Execute upload.bash
bash upload.bash
  1. Run all tests
pytest

You can find the rest of the technical documentation on the Wiki of this repository. There, the ontology, the data processing pipeline and the visualization tool are explained in much more detail.


  1. Note that because WebVOWL expects rdfs:label and rdfs:comment and doesn't recognize the similar schema.org properties, we bind a separately written file here. ↩︎