Skip to content
Snippets Groups Projects
test-dataset-creation-pipeline.ipynb 2.43 KiB
Newer Older
{
 "cells": [
  {
   "attachments": {},
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Pipeline to create a small test dataset\n",
    "Goal: Check if changes to transformations scripts or to the ontologies apply correctly in the data."
   ]
  },
  {
   "cell_type": "code",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "      Column  ArmItemID ArmCode  ItemNr  ... CreMulti  CreTint  CreOrnIDR  TGmember\n",
      "0     3931.0     4052.0     BEL     1.0  ...      NaN      NaN        2.0     False\n",
      "1     3931-1     4052.0     BEL     1.0  ...      NaN      NaN        2.0     False\n",
      "2     3932.0     4053.0     BEL     2.0  ...      NaN      NaN        NaN     False\n",
      "3     3933.0     4054.0     BEL     3.0  ...      NaN      NaN        NaN     False\n",
      "4     3933-1     4054.0     BEL     3.0  ...      NaN      NaN        NaN     False\n",
      "..       ...        ...     ...     ...  ...      ...      ...        ...       ...\n",
      "809  35234.0    40702.0     NLU    76.0  ...      NaN        O        2.0     False\n",
      "810  43898.0    52699.0     NLU    77.0  ...      NaN        O        4.0     False\n",
      "811  43899.0    52700.0     NLU    78.0  ...      NaN        O        4.0     False\n",
      "812  43900.0    52701.0     NLU    79.0  ...      NaN        O        4.0     False\n",
      "813  43901.0    52702.0     NLU    80.0  ...      NaN        O        4.0     False\n",
      "\n",
      "[814 rows x 46 columns]\n",
      "Created data/rdf-output/test-dataset/knowledge-graph-representation-test-dataset.ttl\n",
      "Created data/rdf-output/test-dataset/knowledge-graph-representation-test-dataset.jsonld\n"
     ]
    }
   ],
    "!python src/rdf-mappings/map-tblArmItems.py -t"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "dho_kg_integration",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.12"
  },
  "orig_nbformat": 4,
  "vscode": {
   "interpreter": {
    "hash": "86152e4984a8eeddffd673b8a40ea9a3bfe66b19f1d4e2fbcbd65936a43d9c06"
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}