This repository contains one way to translate CSV-liked data into Knowledge Graph.
-
Manual scripting with owlready2 (OWL format)
This is used to provide the demo.
Instantiating ontology class instances using owlready2 based on the CSV data. Then save the knowledge graph using dict, following the owlready2 syntax. This provides a high flexibility and efficiency, without requiring the developer to be proficient with owlready2. owlready2 is used for validation of fields and namespaces.
run conda env create -f PyPipeline.yml
- update config file ``example-translation/src/config.yml`
- update global variables in
example-translation/src/main.py
- run
conda activate PyPipeline
- run
python example-translation/src/main.py