Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

concurrency:
group: release-please
cancel-in-progress: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
release-type: python
package-name: psmv-rdf
6 changes: 6 additions & 0 deletions .github/workflows/upload_graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ jobs:
python-version: "3.12"
enable-caching: true

- name: Install system dependencies
run: sudo apt-get install -y libssh2-1-dev

- name: Install dependencies
run: uv sync

- name: Run pipeline script
run: uv run python service/pipeline.py

- name: Upload to LINDAS
env:
LINDAS_USER: ${{ secrets.LINDAS_USER }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ psmv-data.duckdb
shacl-documentaion-log.txt
rdf/data/**
rdf/processed/**
!rdf/processed/graph.ttl
rdf/processed/graph.ttl
!rdf/processed/shapes.ttl

# =============================================================================
Expand Down
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ psmv-rdf/
│ └── processed/ # any automatically written/derived/merged turtle files
├── tests/
├── docs/ # project documentation
├── .gitignore
└── environment.yml
├── LICENSE
└── .gitignore
```

## Documentation
Expand Down
26 changes: 13 additions & 13 deletions data/mapping/mapping_columns.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Product:
NK_PRODUCT: product_id # use this for unique product id or link to organisations
NK_PRODUCT_REF: product_ref_or_id # use this for reference to other tables
wNbr: w_number # 7420-1 is w number + lauf nummer from sales permission
NK_PI_Product: product_internal_id # parallel import ID, nur für Controlling if not nul == NK_Produkt
NK_SP_PRODUCT: service_provider_product_id # same as above just for Salespermission
NK_PRODUCT_INDICATION: product_indicator # This is what we use to link to indication, Third key - use after Update in Infofito
ID: record_id # is shown in psmv interface
NK_PRODUCT: product_id
NK_PRODUCT_REF: product_ref_or_id
wNbr: w_number
NK_PI_Product: product_internal_id
NK_SP_PRODUCT: service_provider_product_id
NK_PRODUCT_INDICATION: product_indicator
ID: record_id
CODE: product_code
TYPE: rdf:type
NAME: schema:name
Expand All @@ -14,7 +14,7 @@ Product:
exhaustionDeadline: exhaustion_deadline
soldoutDeadline: sold_out_deadline
isSalePermission: sale_permission
packageInsert: w_number_of_reference_product # pk-id from refrecne product
packageInsert: w_number_of_reference_product
terminationReason: termination_reason

Organisation:
Expand Down Expand Up @@ -117,21 +117,21 @@ ApplicationComment:

ProductCodeR:
NK_Codetable: code_id
NK_PROD_REF: product_id
NK_PROD_REF: product_ref_or_id

ProductCodeS:
NK_codetable: code_id
NK_PROD_REF: product_id
NK_PROD_REF: product_ref_or_id

ProductDangerSymbol:
NK_Codetable: code_id
NK_PROD_REF: product_id
NK_PROD_REF: product_ref_or_id

ProductSignalWords:
NK_Codetable: code_id
NK_SignalWord: signal_word_id
NK_PROD_REF: product_id
NK_PROD_REF: product_ref_or_id

ProductProductCategory:
NK_Codetable: code_id
NK_Product: product_id
NK_Product: product_ref_or_id
11 changes: 4 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ build-backend = "setuptools.build_meta"
name = "psmv-rdf"
version = "0.1.0"
description = "Pipeline for converting the Swiss plant protection product registry (PSMV) into RDF linked data."
readme = "README.md"
license = { text = "MIT" }
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
authors = [
{ name = "BLV-OSAV-USAV" }
]
Expand Down Expand Up @@ -36,11 +36,8 @@ dev = [
]

[project.scripts]
# Allows running the pipeline from the command line after install:
# $ psmv-rdf
psmv-rdf = "src.python.pipeline:main"
psmv-rdf = "service.pipeline:run_pipeline"

[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]

include = ["src*"]
Loading
Loading