{
  "about": {
    "datasetID":"mt_mtc_1",
    "datasetName":"Sample multitable relational dataset",
    "humanSubjectsResearch": false,
    "license":"CC",
    "datasetSchemaVersion":"3.0",
    "redacted":false
  },
  "dataResources":[
    {
      "resID":"0",
      "resPath":"tables/customers.csv",
      "resType":"table",
      "resFormat":["text/csv"],
      "isCollection":false,
      "columns":[
        {
          "colIndex":0,
          "colName":"custID",
          "colType":"integer",
          "role":["index"]
        },
        {
          "colIndex":1,
          "colName":"country",
          "colType":"categorical",
          "role":["attribute"]
        },
        {
          "colIndex":2,
          "colName":"first_invoices_time",
          "colType":"dateTime",
          "role":["attribute"]
        },
        {
          "colIndex":3,
          "colName":"facebookHandle",
          "colType":"string",
          "role":["attribute", "key"]
        }
      ]
    },
    {
      "resID":"1",
      "resPath":"tables/invoices.csv",
      "resType":"table",
      "resFormat":["text/csv"],
      "isCollection":false,
      "columns":[
        {
          "colIndex":0,
          "colName":"invoiceNo",
          "colType":"integer",
          "role":["index"]
        },
        {
          "colIndex":1,
          "colName":"customerID",
          "colType":"integer",
          "role":["attribute"],
          "refersTo":{
            "resID":"0",
              "resObject":{
                "columnName":"custID"}}
        },
        {
          "colIndex":2,
          "colName":"first_item_purchases_time",
          "colType":"dateTime",
          "role":["attribute"]
        }
      ]
    },
    {
      "resID":"2",
      "resPath":"tables/items.csv",
      "resType":"table",
      "resFormat":["text/csv"],
      "isCollection":false,
      "columns":[
        {
          "colIndex":0,
          "colName":"stockCode",
          "colType":"string",
          "role":["index"]
        },
        {
          "colIndex":1,
          "colName":"first_item_purchases_time",
          "colType":"dateTime",
          "role":["attribute"]
        },
        {
          "colIndex":2,
          "colName":"Description",
          "colType":"string",
          "role":["attribute"]
        }
      ]
    },
    {
      "resID":"learningData",
      "resPath":"tables/learningData.csv",
      "resType":"table",
      "resFormat":["text/csv"],
      "isCollection":false,
      "columns":[
        {
          "colIndex":0,
          "colName":"item_purchase_ID",
          "colType":"integer",
          "role":["index"]
        },
        {
          "colIndex":1,
          "colName":"invoiceNo",
          "colType":"integer",
          "role":["attribute"],
          "refersTo":{
            "resID":"1",
            "resObject":{
              "columnIndex":0}}
        },
        {
          "colIndex":2,
          "colName":"invoiceDate",
          "colType":"dateTime",
          "role":["attribute"]
        },
        {
          "colIndex":3,
          "colName":"stockCode",
          "colType":"string",
          "role":["attribute"],
          "refersTo":{
            "resID":"2",
            "resObject":{
              "columnName":"stockCode"
            }
          }
        },
        {
          "colIndex":4,
          "colName":"unitPrice",
          "colType":"real",
          "role":["attribute"]
        },
        {
          "colIndex":5,
          "colName":"quantity",
          "colType":"integer",
          "role":["attribute"]
        },
        {
          "colIndex":6,
          "colName":"customerSatisfied",
          "colType":"categorical",
          "role":["suggestedTarget"]
        },
        {
          "colIndex":7,
          "colName":"profitMargin",
          "colType":"real",
          "role":["suggestedTarget"]
        }
      ]
    }
  ],
  "qualities":[
      {
        "qualName":"multiRelationalTables",
        "qualValue":true,
        "qualValueType":"boolean"
      },
      {
        "qualityName":"LUPI",
        "qualityValue":true,
        "qualValueType":"boolean"
      },
      {
        "qualName":"privilegedFeature",
        "qualValue":true,
        "qualValueType":"boolean",
        "restrictedTo":{
          "resID":"0",
          "resComponent":{"colName":"facebookHandle"}
        }
      },
      {
        "qualName":"approximateSize",
        "qualValue":300,
        "qualValueType":"integer",
        "qualValueUnits":"MB"
      },
      {
        "qualName":"maxSkewOfNumericAttributes",
        "qualValue":6.57,
        "qualValueType":"real",
        "restrictedTo":{
          "resID":"3"
        }
      },
      {
        "qualName":"classEntropy",
        "qualValue":3.63,
        "qualValueType":"real",
        "restrictedTo":{
          "resID":"3",
          "resComponent":{"colName":"customerSatisfied"}
        }
      },
      {
        "qualName":"numUniqueValues",
        "qualValue":3667,
        "qualValueType":"integer",
        "restrictedTo":{
          "resID":"3",
          "resComponent":{"columnIndex":1}
        }
      },
      {
        "qualName":"numMissingValues",
        "qualValue":12,
        "qualValueType":"integer",
        "restrictedTo":{
          "resID":"3",
          "resComponent":{"columnName":"customerSatisfied"}
        }
      }
    ]
}
