Skip to content

BLV-OSAV-USAV/PSMV-RDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

211 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSMV-RDF

Note

This repository is under active development. Features, documentation, and structure will change frequently.

Plant Protection Products (PSMV) as Linked Data

A Python module for converting Swiss plant protection product data from CSV format to RDF and publishing it to the LINDAS Linked Data Service.

Reproduce the data integration pipeline

  1. Add variables to .env

    USER=lindas-fsvo-psm
    PASSWORD=********
    GRAPH=https://lindas.admin.ch/foag/psm
    ENDPOINT=https://stardog.cluster.ldbar.ch/lindas
  2. Create and activate the conda environment.

    conda env create -f environment.yml
    conda activate psmv-rdf
  3. Install the package in editable mode

    pip install -e .
  4. Start the data integration pipeline

    python -m service.pipeline

Project Structure

psmv-rdf/
├── .github/
├── data/           # any non-RDF data files
│   ├── raw/        # input CSV files
│   ├── mapping/    # yaml mapping files
│   └── processed/  # intermediately generated CSV files
├── services/
│   └── pipeline.py       
├── src/
│    ├── sparql     # SPARQL inference rules
│    └── python/    # Python scripts for specific tasks
├── rdf/
│   ├── ontology/   # OWL ontology documentation
│   ├── shapes/     # SHACL shapes, also used as data model documentation
│   ├── data/       # the actual RDF data, split by classes
│   ├── example/    # example turtle files used for reference
│   └── processed/  # any automatically written/derived/merged turtle files
├── tests/
├── docs/           # project documentation
├── .gitignore
├── README.md
└── environment.yml

Ontology documentation

All ontology documentation files are written to rdf/ontology. You may inspect a visual representation of the ontology used here: https://service.tib.eu/webvowl/#iri=https://github.com/BLV-OSAV-USAV/PSMV-RDF/refs/heads/main/rdf/ontology/core.ttl

Data model

Are more restricted data model is written in SHACL and can be inspected here.

Dependencies

Project dependencies are listed in pyproject.toml.

Acknowledgments

About

This is a pipeline for converting the Swiss plant protection product registry into RDF-linked data.

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors

Languages