- R 69.6%
- Python 30.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| data | ||
| deprecated | ||
| docs | ||
| graph | ||
| mapping-tables | ||
| ontology | ||
| scripts | ||
| varia | ||
| .gitignore | ||
| README.md | ||
Note
This GitHub repository is used as a proof-of-concept. It does not contain any official information from the Federal Office for Agriculture.
🧐 Visual ontology exploration
You can use the browser tool WebVOWL order to visually explore the ontologies. The following links will open the current drafts for ontologies:
- A plant protection ontology for Swiss agriculture.
- Plant protection ontology with instance count. (Might take a little longer to load.)
🌐 Demonstration sites
- What is an ontology and how can it help us? An internal presentation to give some motivation to work on this project, first held on 12 December 2024.
- Clustering the many SRPPP obligations. A brief documentation of how the clustering of the Swiss registry of plant protection products (SRPPP) was performed using A.I.
- A crop table with alternative names: Alternative names are important for good user experiences in complex systems, because different people use differnt names for the same thing.
📂 Repository structure
This repository is structured as follows:
/ontologycontains turtle files of specific OWL ontologies./datacontains turtle files with the actual data (following the aforementioned ontologies)./graphcontains the entire graph, i.e. the merged ontologies, shapes and data files. This is the content uploaded to LINDAS./scriptscontains various scripts to write the data to graphs./mapping-tablescontains various tables to map instances of classes to existing objects./docscontains a bunch of example html documents that are served as GitHub pages./variavarious files./deprecateddeprecated files.
🆙 How to upload the turtle files to LINDAS
In order to upload a graph (as a turtle .ttl file) to the linked data service LINDAS, use the following cURL command:
curl \
--user lindas-foag:mySuperStrongPassword \
-X POST \
-H "Content-Type: text/turtle" \
--data-binary @graph/plant-protection.ttl \
"https://stardog-test.cluster.ldbar.ch/lindas?graph=https://lindas.admin.ch/foag/ontologies"
Replace mySuperStrongPassword with the actual password. Of course, graph/plant-protection.ttl could be set to another turtle file and https://lindas.admin.ch/foag/ontologies to another target graph.
If data that was already uploaded was changed, clear the existing graph before posting. (Otherwise, stardog creates duplicate nodes for the changes.) To clear the graph, run:
curl \
--user lindas-foag:mySuperStrongPassword \
-X DELETE \
"https://stardog-test.cluster.ldbar.ch/lindas?graph=https://lindas.admin.ch/foag/ontologies"