Watch
1
0
Fork
You've already forked system-map
0
mirror of https://github.com/blw-ofag-ufag/system-map.git synced 2026-08-17 12:55:13 +00:00
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 96.9%
  • Python 1.5%
  • SPARQL 1.4%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Damian Oswald b9d2581b43
Merge pull request #168 from blw-ofag-ufag/add-ogp-metadata
Add open graph protocol (OGP) metadata
2026-07-16 14:00:41 +02:00
.github/workflows Adjust GitHub action runner 2026-02-13 10:21:24 +01:00
docs Add open graph protocol (OGP) metadata 2026-07-16 13:54:20 +02:00
rdf Add some acontrol example properties 2026-03-16 16:09:07 +01:00
src Changes in RDF writing pipeline 2026-03-13 09:58:44 +01: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 Set up cleaner testing pipeline 2026-03-12 16:58:16 +01:00
requirements.txt Set up cleaner testing pipeline 2026-03-12 16:58:16 +01:00
upload.bash Changes in testing pipelin 2026-03-16 13:57:00 +01: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
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. ↩︎