{
  "format": "dataset-manifest/1",
  "slug": "government-design-projects-dataset",
  "version": 1,
  "seed": "government-design-projects-dataset:1",
  "spec": {
    "format": "dataset/1",
    "slug": "government-design-projects-dataset",
    "name": "Government Design Projects Dataset",
    "tagline": "Government design projects including layouts, materials, revisions, and licenses for infrastructure development.",
    "description": "Government design teams create intricate blueprints for infrastructure projects, navigating a complex landscape of regulations and stakeholder needs. Each project unfolds in stages, involving detailed layouts that visualize elements like polylines, circles, and other geometric shapes crucial for effective implementation. Teams collaborate to select appropriate materials for construction, factoring in durability, cost, and compliance with standards. Licenses play a pivotal role in this process, ensuring that every design adheres to necessary governmental regulations before it can proceed further.\n\nThe tables within this dataset are interrelated, forming a comprehensive framework that mirrors the project lifecycle. A row in the 'projects' table represents an individual infrastructure initiative, which connects to multiple entries in the 'layouts' table, each describing the evolving visual representation of the project. Meanwhile, the 'materials' table lists the various resources needed, categorized by type and specifications, while the 'revisions' table tracks the iterative changes made to the layouts during the design phase. Lastly, licenses are recorded to certify the compliance of each project with legal requirements, linking back to the corresponding projects table.\n\nWith this dataset, developers can explore a wealth of questions concerning project management and compliance. This includes analyzing the frequency and nature of revisions, assessing material usage trends, and ensuring that design layouts meet regulatory constraints. Practising on this synthetic data provides a realistic simulation of the challenges faced in government infrastructure projects, allowing for the development of analytical skills and an understanding of complex relational data.",
    "domain": "government",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "government",
      "design projects",
      "infrastructure",
      "layouts",
      "materials",
      "revisions",
      "licenses",
      "polylines",
      "circles",
      "viewport"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "projects": {
        "description": "This table represents the overarching design projects, each uniquely identified and linked to multiple layouts and revisions.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each project."
          },
          "name": {
            "kind": "words",
            "min": 3,
            "max": 10,
            "description": "The name of the design project."
          },
          "start_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The start date of the project.",
            "trend": "growing"
          },
          "end_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "nullable": true,
            "description": "The end date of the project, null if ongoing.",
            "trend": "growing"
          },
          "status": {
            "kind": "enum",
            "values": [
              "draft",
              "in_progress",
              "finalized"
            ],
            "description": "Current status of the project."
          }
        }
      },
      "layouts": {
        "description": "This table details the various layouts associated with each project, highlighting the design elements utilized.",
        "rows": {
          "per": "projects",
          "via": "project_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each layout."
          },
          "project_id": {
            "kind": "fk",
            "ref": "projects.id",
            "description": "Reference to the related project."
          },
          "layout_type": {
            "kind": "enum",
            "values": [
              "2D",
              "3D"
            ],
            "description": "The type of layout."
          },
          "viewport_count": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "Number of viewports in the layout."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Timestamp when the layout was created.",
            "dayProfile": "business"
          }
        }
      },
      "materials": {
        "description": "This table lists the materials used in each layout, providing insight into construction components.",
        "rows": {
          "per": "layouts",
          "via": "layout_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each material."
          },
          "layout_id": {
            "kind": "fk",
            "ref": "layouts.id",
            "description": "Reference to the related layout."
          },
          "material_name": {
            "kind": "words",
            "min": 2,
            "max": 5,
            "description": "Name of the construction material."
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 1000,
            "description": "Quantity of the material used."
          }
        }
      },
      "revisions": {
        "description": "This table tracks the revisions made to each layout, capturing the changes over time.",
        "rows": {
          "per": "layouts",
          "via": "layout_id",
          "min": 1,
          "max": 4,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each revision."
          },
          "layout_id": {
            "kind": "fk",
            "ref": "layouts.id",
            "description": "Reference to the related layout."
          },
          "revision_number": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "The revision number, indicating the iteration."
          },
          "changes": {
            "kind": "sentence",
            "max": 255,
            "description": "Description of changes made in this revision."
          },
          "revision_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the revision was made.",
            "dayProfile": "business"
          }
        }
      },
      "licenses": {
        "description": "This table details the licenses required for each project, ensuring compliance with regulations.",
        "rows": {
          "per": "projects",
          "via": "project_id",
          "min": 1,
          "max": 2,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each license."
          },
          "project_id": {
            "kind": "fk",
            "ref": "projects.id",
            "description": "Reference to the related project."
          },
          "license_type": {
            "kind": "enum",
            "values": [
              "design",
              "construction"
            ],
            "description": "Type of license required."
          },
          "issue_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the license was issued.",
            "trend": "seasonal"
          },
          "expiration_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "nullable": true,
            "description": "Expiration date of the license, null if perpetual.",
            "trend": "seasonal"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "high-cardinality",
      "nullable"
    ],
    "analysisQuestions": [
      "How many revisions does a typical layout undergo before final approval?",
      "What materials are most commonly used in finalized projects?",
      "What is the average duration from project start to finalization?",
      "Which types of licenses are most frequently issued for projects?"
    ],
    "suggestedQueries": [
      {
        "title": "Retrieve all projects and their statuses",
        "sql": "SELECT id, name, status FROM projects;",
        "dialect": "postgres"
      },
      {
        "title": "Count layouts by project",
        "sql": "SELECT project_id, COUNT(*) AS layout_count FROM layouts GROUP BY project_id;",
        "dialect": "postgres"
      },
      {
        "title": "Get material usage for each layout",
        "sql": "SELECT l.id AS layout_id, m.material_name, m.quantity FROM layouts l JOIN materials m ON l.id = m.layout_id;",
        "dialect": "postgres"
      },
      {
        "title": "Find revisions for a specific layout",
        "sql": "SELECT r.revision_number, r.changes FROM revisions r WHERE r.layout_id = $1;",
        "dialect": "postgres"
      },
      {
        "title": "List all licenses with expiration dates",
        "sql": "SELECT p.name, l.license_type, l.expiration_date FROM licenses l JOIN projects p ON l.project_id = p.id WHERE l.expiration_date IS NOT NULL;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Educational Use in Architecture Courses",
        "body": "Students in architecture courses can utilize this dataset to understand the complexities of government design projects. By analyzing the revisions and materials used, they can learn how designs evolve and the importance of regulatory compliance through licenses."
      },
      {
        "title": "Data Analysis for Policy Makers",
        "body": "Policy makers can leverage this dataset to analyze trends in government infrastructure projects. By examining the frequency of revisions and materials used, they can make informed decisions regarding funding, resource allocation, and regulatory improvements."
      },
      {
        "title": "ETL Pipeline Development",
        "body": "Data engineers can use this dataset as a basis for building ETL pipelines that process government project data. The interconnected tables allow for testing data transformations and ensuring data integrity throughout the workflow."
      }
    ]
  },
  "counts": {
    "projects": 200,
    "layouts": 438,
    "licenses": 258,
    "materials": 724,
    "revisions": 845
  },
  "stats": {
    "projects": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 200
        },
        "start_date": {
          "nulls": 0,
          "distinct": 184,
          "min": "2020-01-11",
          "max": "2023-12-24"
        },
        "end_date": {
          "nulls": 17,
          "distinct": 175,
          "min": "2020-02-07",
          "max": "2023-12-25"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "draft",
          "max": "in_progress"
        }
      }
    },
    "layouts": {
      "rows": 438,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 438,
          "min": 1,
          "max": 438
        },
        "project_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "layout_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "2D",
          "max": "3D"
        },
        "viewport_count": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "created_at": {
          "nulls": 0,
          "distinct": 438,
          "min": "2020-01-02 15:42:56",
          "max": "2023-12-31 19:32:38"
        }
      }
    },
    "materials": {
      "rows": 724,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 724,
          "min": 1,
          "max": 724
        },
        "layout_id": {
          "nulls": 0,
          "distinct": 438,
          "min": 1,
          "max": 438
        },
        "material_name": {
          "nulls": 0,
          "distinct": 719
        },
        "quantity": {
          "nulls": 0,
          "distinct": 514,
          "min": 2,
          "max": 999
        }
      }
    },
    "revisions": {
      "rows": 845,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 845,
          "min": 1,
          "max": 845
        },
        "layout_id": {
          "nulls": 0,
          "distinct": 438,
          "min": 1,
          "max": 438
        },
        "revision_number": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "changes": {
          "nulls": 0,
          "distinct": 837
        },
        "revision_date": {
          "nulls": 0,
          "distinct": 845,
          "min": "2020-01-01 13:05:42",
          "max": "2023-12-31 15:01:32"
        }
      }
    },
    "licenses": {
      "rows": 258,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 258,
          "min": 1,
          "max": 258
        },
        "project_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "license_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "construction",
          "max": "design"
        },
        "issue_date": {
          "nulls": 0,
          "distinct": 234,
          "min": "2020-01-05",
          "max": "2023-12-31"
        },
        "expiration_date": {
          "nulls": 28,
          "distinct": 208,
          "min": "2020-01-06",
          "max": "2023-12-31"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/projects.csv",
      "format": "csv",
      "table": "projects",
      "key": "datasets/government-design-projects-dataset/v1/csv/projects.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/csv/projects.csv",
      "bytes": 15825,
      "sha256": "2c87c60bf6d463338c1a42e06ca9f03bf2a64024dfa9e9c1af272ee4e4932270",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/layouts.csv",
      "format": "csv",
      "table": "layouts",
      "key": "datasets/government-design-projects-dataset/v1/csv/layouts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/csv/layouts.csv",
      "bytes": 14637,
      "sha256": "3a9c55ecff37712a91cd5cc9a25ccbd2fb951340ebbb4eaeecd89b9186ddbe5f",
      "rows": 438,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/licenses.csv",
      "format": "csv",
      "table": "licenses",
      "key": "datasets/government-design-projects-dataset/v1/csv/licenses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/csv/licenses.csv",
      "bytes": 10103,
      "sha256": "7e31268c297193a1a42e03dc7e76c9463fbbf089a4fa811537c4db15a32c2008",
      "rows": 258,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/materials.csv",
      "format": "csv",
      "table": "materials",
      "key": "datasets/government-design-projects-dataset/v1/csv/materials.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/csv/materials.csv",
      "bytes": 25859,
      "sha256": "72b648956d1c1739645039b395599de3fca4518d7c2245bc1793d630ff6798a6",
      "rows": 724,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/revisions.csv",
      "format": "csv",
      "table": "revisions",
      "key": "datasets/government-design-projects-dataset/v1/csv/revisions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/csv/revisions.csv",
      "bytes": 73490,
      "sha256": "301c262c5cc26bc8d279c2e0f104f9015eac9d30194460c6fcc52614d2fb83d4",
      "rows": 845,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "government-design-projects-dataset.json",
      "format": "json",
      "table": null,
      "key": "datasets/government-design-projects-dataset/v1/government-design-projects-dataset.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/government-design-projects-dataset.json",
      "bytes": 405281,
      "sha256": "bb0f3a60faa351f8ad7af56792660686aca76bb93a875884eb580e9375167c3d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/government-design-projects-dataset/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/sql/postgres.sql",
      "bytes": 176898,
      "sha256": "a8ad19279d8bb1fbafd4a04730bd564c66ac2f4965eb64e55a228d08703e863e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/government-design-projects-dataset/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/sql/mysql.sql",
      "bytes": 176335,
      "sha256": "fd07500b8fde0f7dbcc53dd5d998b4168586ce4b758309d835acdc9fef1434da",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/government-design-projects-dataset/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/sql/mssql.sql",
      "bytes": 181477,
      "sha256": "bfe12c001669710d50f60942309e9660e4f3d5937acd47470a6296497f81b978",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/government-design-projects-dataset/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/sql/sqlite.sql",
      "bytes": 176162,
      "sha256": "7e3cbc58bb4bad908580e65a97826d7bef96eb2198d3f91c3947a1508bcbbcb5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/government-design-projects-dataset/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/prisma/seed.ts",
      "bytes": 337549,
      "sha256": "4c01db63829d7f00e2cc7aa334eb91d6931fab899968b81155103b177bcb363f",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/government-design-projects-dataset/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/government-design-projects-dataset/v1/django/fixtures.json",
      "bytes": 509001,
      "sha256": "f36a733b7f726218bfa8945d9c213ab399914eff3d24dd052eb9b2265ffc31a2",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767627815,
  "updatedAt": 1788767627815
}
