PREFIX ufpc:                <http://w3id.org/probs-lab/data/prodcom/>
PREFIX ufpcd:               <http://w3id.org/probs-lab/data/prodcom_data/>
PREFIX gnd:                 <https://sws.geonames.org/>
PREFIX quantitykind:        <http://qudt.org/vocab/quantitykind/>

#import probs-prodcom.ttl

######################################################
###               PRODCOM list definition          ###
######################################################

dsource register "PRODCOM_LIST"                                 \
    type    delimitedFile                                       \
    file    "$(dir.datasource)/data.csv"                        \
    header  true                                                \
    quote   '"'

tupletable create ufrd:PRODCOM_LIST                             \
    dataSourceName  "PRODCOM_LIST"                              \
    "columns"       4                                           \
    "1"             "{Code}"                                    \
    "1.datatype"    "string"                                    \
    "2"             "{Description}"                             \
    "2.datatype"    "string"                                    \
    "3"             "{Parent}"                                  \
    "3.datatype"    "string"                                    \
    "3.if-empty"    "absent"                                    \
    "4"             "{Level}"                                   \
    "4.datatype"    "string"

# 1 This is the classification code, with dots removed in advance
# 2 This is the classification description
# 3 This is the parent code for the classification code, with dots removed in advance
# 4 This is the level of the classification code in the hierarchy
