Note
This GitHub repository is used as a proof-of-concept. It does not contain any official information from the Federal Office for Agriculture.
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.)
- 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.
- Class overview: Just an interactive table that fetches all class names and descriptions from LINDAS and counts the respective instances per class.
- 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.
This repository is structured as follows:
/ontology
contains turtle files of specific OWL ontologies./data
contains turtle files with the actual data (following the aforementioned ontologies)./graph
contains the entire graph, i.e. the merged ontologies, shapes and data files. This is the content uploaded to LINDAS./scripts
contains various scripts to write the data to graphs./mapping-tables
contains various tables to map instances of classes to existing objects./docs
contains a bunch of example html documents that are served as GitHub pages./varia
various files./deprecated
deprecated files.
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"