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/>

######################################################
###                      PRODCOM Data              ###
######################################################

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

tupletable create ufrd:PRODCOM_DATA                          \
    dataSourceName  "PRODCOM_DATA"                           \
    "columns"       4                                           \
    "1"             "{ID}"                                      \
    "1.datatype"    "string"                                    \
    "2"             "{PRCCODE}"                                 \
    "2.datatype"    "string"                                    \
    "3"             "{PRODQNT}"                                 \
    "3.datatype"    "xsd:decimal"                               \
    "3.if-empty"    "absent"                                    \
    "4"             "{QNTUNIT}"                                 \
    "4.datatype"    "string"	                                \
    "4.if-empty"    "default"	                                \
    "4.default"     "unknown"

    # 1 ID generated for unique observations
    # 2 This is the ClassificationCode and related to 1. by `objectDefinedBy`
    # 3 MeasurementValue (of measurement of observation) - the measurement is implicit here. If blank then the value was witheld (but is not 0 necessarily)
    # 4 Unit of Measure

