github.com/qri-io/qri@v0.10.1-0.20220104210721-c771715036cb/lib/testdata/complete/input.dataset.json (about)

     1  {
     2    "qri": "ds:0",
     3    "commit": {
     4      "qri": "cm:0",
     5      "title": "I'm a commit"
     6    },
     7    "meta": {
     8      "qri": "md:0",
     9      "title": "dataset with all submodels example"
    10    },
    11    "transform": {
    12      "qri": "tf:0",
    13      "syntax": "sql",
    14      "data": "select * from foo",
    15      "structure": {
    16        "qri": "st:0",
    17        "format": "csv",
    18        "formatConfig": {
    19          "headerRow": true
    20        },
    21        "schema": {
    22          "type": "array",
    23          "items": {
    24            "type": "array",
    25            "items": [
    26              {
    27                "title": "title",
    28                "type": "string"
    29              },
    30              {
    31                "title": "duration",
    32                "type": "integer"
    33              }
    34            ]
    35          }
    36        }
    37      },
    38      "resources": {
    39        "foo": "/not/a/real/path"
    40      }
    41    },
    42    "abstractTransform": {
    43      "qri": "tf:0",
    44      "data": "select * from a",
    45      "structure": {
    46        "qri": "st:0",
    47        "format": "csv",
    48        "formatConfig": {
    49          "headerRow": true
    50        },
    51        "schema": {
    52          "type": "array",
    53          "items": {
    54            "type": "array",
    55            "items": [
    56              {
    57                "title": "a",
    58                "type": "string"
    59              },
    60              {
    61                "title": "b",
    62                "type": "integer"
    63              }
    64            ]
    65          }
    66        }
    67      },
    68      "resources": {
    69        "a": "/fake/path/to/abstract/dataset/"
    70      }
    71    },
    72    "abstract": {
    73      "qri": "ds:0",
    74      "structure": {
    75        "qri": "st:0",
    76        "format": "csv",
    77        "formatConfig": {
    78          "headerRow": true
    79        },
    80        "schema": {
    81          "type": "array",
    82          "items": {
    83            "type": "array",
    84            "items": [
    85              {
    86                "title": "a",
    87                "type": "string"
    88              },
    89              {
    90                "title": "b",
    91                "type": "integer"
    92              }
    93            ]
    94          }
    95        }
    96      }
    97    },
    98    "structure": {
    99      "qri": "st:0",
   100      "format": "csv",
   101      "formatConfig": {
   102        "headerRow": true
   103      },
   104      "schema": {
   105        "type": "array",
   106        "items": {
   107          "type": "array",
   108          "items": [
   109            {
   110              "title": "title",
   111              "type": "string"
   112            },
   113            {
   114              "title": "duration",
   115              "type": "integer"
   116            }
   117          ]
   118        }
   119      }
   120    },
   121    "visconfig":{
   122      "format": "foo",
   123      "qri": "vc:0",
   124      "visualizations": {
   125        "type": "bar",
   126        "colors": {
   127          "bars": "#ffffff",
   128          "background": "#000000"
   129        }
   130      }
   131    }
   132  }