Read-only mirror of https://github.com/metadata-swiss/shacl_importer_scripts — Bundesamt für Statistik. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-25 16:57:40 +02:00
csv_importer Reverted removal of sh:name for properties: it's not an issue if we have everywhere rdfs:label + sh:name at the same time, if we edit a structure in i14y only the right one will be kept 2026-06-25 16:57:40 +02:00
dsd_importer Implements I14Y-ch/planning#585 : Update conversion scripts to shacl to use new URIs and other small alignements 2026-06-25 14:47:31 +02:00
import_template Implements I14Y-ch/planning#585 : Update conversion scripts to shacl to use new URIs and other small alignements 2026-06-25 14:47:31 +02:00
postgres_importer update to postgres2SHACL, takes into account clann names and foreign keys 2025-06-18 11:24:17 +02:00
xsd_importer Implements I14Y-ch/planning#585 : Update conversion scripts to shacl to use new URIs and other small alignements 2026-06-25 14:47:31 +02:00
.gitignore update to postgres2SHACL, takes into account clann names and foreign keys 2025-06-18 11:24:17 +02:00
README.md Implements I14Y-ch/planning#585 : Update conversion scripts to shacl to use new URIs and other small alignements 2026-06-25 14:47:31 +02:00

shacl_importer_scripts

A collection of scripts for importing data structures and transforming them to SHACL (Shapes Constraint Language).

Features

  • Import data structures from various sources
  • Create SHACL shapes corresponding to those structures

Available converters:

  • CSV importer
  • DSD importer (to recover the old structures of I14Y)
    • NOTE: DSD do not exist anymore on I14Y, this script is deprecated
  • Import template to build structure from scratch
    • Excel template
    • Json template
  • Postgres importer
  • XSD importer

Requirements

  • Python 3.8+
  • rdflib
  • pyshacl

Installation

There is no installation required. Each script can be run separately to generate a SHACL file as needed from each source.

Contributing

Contributions are welcome! Please open issues or submit pull requests.