Skip to content

blw-ofag-ufag/system-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

497 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Footnotes

  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.

About

A graph visualization of IT systems, their data and organizations of the Swiss agri-food sector

Topics

Resources

Stars

Watchers

Forks

Contributors