{
  "format": "dataset-manifest/1",
  "slug": "augmented-reality-home-safety-inspection",
  "version": 2,
  "seed": "augmented-reality-home-safety-inspection:1",
  "spec": {
    "format": "dataset/1",
    "slug": "augmented-reality-home-safety-inspection",
    "name": "Home Safety Insights",
    "tagline": "Inspections, properties, and action plans related to residential safety hazards from government projects.",
    "description": "Government agencies conduct inspections of residential properties to ensure public safety by identifying potential hazards. This dataset models various aspects of these inspections, including user behaviors, photos of hazards, and safety checklists. By analyzing this data over time, stakeholders can identify trends, such as the thoroughness of inspections and the prevalence of specific hazards like gas leaks, particularly in older properties. Additionally, detailed action plans are documented, showcasing the equipment used to mitigate identified risks. This synthetic dataset allows for practice in data analysis, enabling users to explore correlations between inspection results, hazard types, and follow-up actions taken. Users can leverage this dataset to create visualizations and reports that inform policy decisions and improve safety protocols.",
    "domain": "government",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "home safety",
      "inspections",
      "hazards",
      "government",
      "public safety",
      "data analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "inspections": {
        "description": "This table records each home safety inspection conducted, linking to the inspector and the property inspected. Each row represents a unique inspection instance with details on the inspector's findings and the property characteristics.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each inspection."
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.id",
            "description": "Reference to the property being inspected."
          },
          "inspector_id": {
            "kind": "fk",
            "ref": "inspectors.id",
            "description": "Reference to the inspector conducting the inspection."
          },
          "inspection_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the inspection took place.",
            "trend": "seasonal"
          },
          "overall_rating": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Overall rating of the inspection from 1 to 5.",
            "nullable": true,
            "distribution": "high"
          },
          "hazards_found": {
            "kind": "int",
            "min": 0,
            "max": 10,
            "description": "Number of hazards identified during the inspection.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "properties": {
        "description": "This table contains details about the residential properties undergoing inspection, including type, age, and location. Each row represents a unique property linked to multiple inspections.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each property."
          },
          "address": {
            "kind": "words",
            "max": 100,
            "description": "Full address of the property.",
            "nullable": true
          },
          "property_type": {
            "kind": "enum",
            "values": [
              "single-family",
              "multi-family",
              "condo",
              "townhouse"
            ],
            "description": "Type of the residential property."
          },
          "year_built": {
            "kind": "int",
            "min": 1900,
            "max": 2023,
            "description": "Year the property was built.",
            "nullable": true
          },
          "location": {
            "kind": "city",
            "description": "City where the property is located.",
            "nullable": true
          }
        }
      },
      "inspectors": {
        "description": "This table lists the inspectors who conduct the home safety inspections, providing their contact details and qualifications. Each inspector can perform multiple inspections.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each inspector."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the inspector."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address for contacting the inspector."
          },
          "qualification": {
            "kind": "words",
            "description": "Qualifications held by the inspector.",
            "pool": [
              "certified",
              "licensed",
              "trained",
              "professional",
              "expert",
              "inspector",
              "engineer",
              "auditor",
              "consultant",
              "specialist",
              "technician",
              "surveyor",
              "assessor",
              "analyst",
              "manager",
              "director",
              "facilitator",
              "coordinator",
              "administrator",
              "educator"
            ],
            "min": 1,
            "max": 3
          }
        }
      },
      "photos": {
        "description": "This table captures photos taken during inspections, linked to specific hazards identified. Each row documents a unique photo with details about the hazard it represents.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each photo."
          },
          "inspection_id": {
            "kind": "fk",
            "ref": "inspections.id",
            "description": "Reference to the inspection during which the photo was taken."
          },
          "hazard_description": {
            "kind": "sentence",
            "description": "Description of the hazard depicted in the photo.",
            "nullable": true
          },
          "uploaded_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Timestamp when the photo was uploaded.",
            "nullable": true,
            "dayProfile": "waking"
          }
        }
      },
      "checklists": {
        "description": "This table contains checklists used during inspections, detailing safety standards and items to be reviewed. Each checklist links to a specific inspection.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each checklist."
          },
          "inspection_id": {
            "kind": "fk",
            "ref": "inspections.id",
            "description": "Reference to the associated inspection."
          },
          "item": {
            "kind": "words",
            "description": "Checklist item to be reviewed during inspection.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "completed",
                "pending"
              ]
            },
            "pool": [
              "smoke",
              "detector",
              "fire",
              "extinguisher",
              "exit",
              "signage",
              "carbon",
              "monoxide",
              "alarm",
              "sprinkler",
              "emergency",
              "lighting",
              "first",
              "aid",
              "kit",
              "hazard",
              "assessment",
              "safety",
              "plan",
              "inspection",
              "report"
            ],
            "min": 1,
            "max": 3
          },
          "status": {
            "kind": "enum",
            "values": [
              "completed",
              "pending",
              "not applicable"
            ],
            "description": "Status of the checklist item."
          }
        }
      },
      "action_plans": {
        "description": "This table outlines the action plans created based on inspection findings, detailing equipment types and follow-up actions. Each plan is linked to a specific inspection.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each action plan."
          },
          "inspection_id": {
            "kind": "fk",
            "ref": "inspections.id",
            "description": "Reference to the related inspection."
          },
          "equipment_used": {
            "kind": "words",
            "description": "Equipment utilized to address the identified hazards.",
            "nullable": true,
            "pool": [
              "ladder",
              "helmet",
              "gloves",
              "mask",
              "goggles",
              "safety",
              "harness",
              "toolkit",
              "fire",
              "blanket",
              "first",
              "aid",
              "equipment",
              "detector",
              "sprayer",
              "pump",
              "scaffold",
              "drill",
              "saw",
              "monitor",
              "camera",
              "scanner"
            ],
            "min": 1,
            "max": 3
          },
          "action_taken": {
            "kind": "words",
            "description": "Description of the action taken following the inspection.",
            "nullable": true
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "What types of hazards are most commonly reported during inspections?",
      "How do inspection ratings vary by property type?",
      "What trends can be observed in inspections over different years?",
      "How often are action plans created for identified hazards, and what actions are most common?",
      "Is there a correlation between the age of properties and the number of hazards reported?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Inspections and Properties",
        "sql": "SELECT inspections.*, properties.address FROM inspections JOIN properties ON inspections.property_id = properties.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Hazards by Property Type",
        "sql": "SELECT properties.property_type, COUNT(inspections.hazards_found) AS total_hazards FROM inspections JOIN properties ON inspections.property_id = properties.id GROUP BY properties.property_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Inspection Ratings Over Time",
        "sql": "SELECT DATE_TRUNC('year', inspection_date) AS year, AVG(overall_rating) AS avg_rating FROM inspections GROUP BY year ORDER BY year;",
        "dialect": "postgres"
      },
      {
        "title": "Action Plans for Specific Hazards",
        "sql": "SELECT action_plans.action_taken, COUNT(action_plans.id) AS action_count FROM action_plans JOIN inspections ON action_plans.inspection_id = inspections.id WHERE inspections.hazards_found > 0 GROUP BY action_plans.action_taken;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Data Analysis for Safety Improvements",
        "body": "Public safety analysts can utilize this dataset to study the effectiveness of home safety inspections and identify recurring hazards. By analyzing trends over time, they can recommend policy changes or improvements in inspection protocols to enhance safety in residential areas."
      },
      {
        "title": "Visualizing Home Inspection Trends",
        "body": "Data visualization specialists can create interactive dashboards using this dataset to present inspection results to stakeholders. By showcasing trends in hazards and inspection ratings, they can help drive awareness and informed decision-making regarding public safety initiatives."
      },
      {
        "title": "Training for Inspectors",
        "body": "Training coordinators can use this dataset to develop training programs for new inspectors. By reviewing past inspections and common hazards, they can prepare inspectors with the knowledge and skills needed to conduct thorough safety evaluations."
      }
    ]
  },
  "counts": {
    "inspectors": 50,
    "properties": 100,
    "inspections": 200,
    "action_plans": 200,
    "checklists": 200,
    "photos": 300
  },
  "stats": {
    "inspections": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "property_id": {
          "nulls": 0,
          "distinct": 84,
          "min": 1,
          "max": 100
        },
        "inspector_id": {
          "nulls": 0,
          "distinct": 48,
          "min": 1,
          "max": 50
        },
        "inspection_date": {
          "nulls": 0,
          "distinct": 183,
          "min": "2020-01-06",
          "max": "2023-12-31"
        },
        "overall_rating": {
          "nulls": 11,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "hazards_found": {
          "nulls": 12,
          "distinct": 11,
          "min": 0,
          "max": 10
        }
      }
    },
    "properties": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "address": {
          "nulls": 11,
          "distinct": 89
        },
        "property_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "condo",
          "max": "townhouse"
        },
        "year_built": {
          "nulls": 12,
          "distinct": 56,
          "min": 1902,
          "max": 2022
        },
        "location": {
          "nulls": 12,
          "distinct": 51,
          "min": "Amsterdam",
          "max": "Warsaw"
        }
      }
    },
    "inspectors": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "full_name": {
          "nulls": 0,
          "distinct": 50,
          "min": "Amir Kowalski",
          "max": "Zara Wang"
        },
        "email": {
          "nulls": 0,
          "distinct": 50
        },
        "qualification": {
          "nulls": 0,
          "distinct": 44
        }
      }
    },
    "photos": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "inspection_id": {
          "nulls": 0,
          "distinct": 153,
          "min": 1,
          "max": 200
        },
        "hazard_description": {
          "nulls": 20,
          "distinct": 278
        },
        "uploaded_at": {
          "nulls": 29,
          "distinct": 271,
          "min": "2020-01-04 03:43:50",
          "max": "2023-12-31 10:44:40"
        }
      }
    },
    "checklists": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "inspection_id": {
          "nulls": 0,
          "distinct": 119,
          "min": 2,
          "max": 197
        },
        "item": {
          "nulls": 56,
          "distinct": 108
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "completed",
          "max": "pending"
        }
      }
    },
    "action_plans": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "inspection_id": {
          "nulls": 0,
          "distinct": 127,
          "min": 1,
          "max": 200
        },
        "equipment_used": {
          "nulls": 13,
          "distinct": 148
        },
        "action_taken": {
          "nulls": 24,
          "distinct": 176
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/inspectors.csv",
      "format": "csv",
      "table": "inspectors",
      "key": "datasets/augmented-reality-home-safety-inspection/v2/csv/inspectors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/csv/inspectors.csv",
      "bytes": 3005,
      "sha256": "8462608ac81597dee847392e07f4df1ecc7bfabc7bfb9f4d1b80fcc7bc4d50c7",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/properties.csv",
      "format": "csv",
      "table": "properties",
      "key": "datasets/augmented-reality-home-safety-inspection/v2/csv/properties.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/csv/properties.csv",
      "bytes": 34344,
      "sha256": "61312f33e3f96023d01e6d488c78700b83c639c20e311c8191d6a7800a4c5d49",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspections.csv",
      "format": "csv",
      "table": "inspections",
      "key": "datasets/augmented-reality-home-safety-inspection/v2/csv/inspections.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/csv/inspections.csv",
      "bytes": 5083,
      "sha256": "b473d31949027441f346e63a638edffd32e7479989f6d0596cc1bcd15b6763ff",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/action_plans.csv",
      "format": "csv",
      "table": "action_plans",
      "key": "datasets/augmented-reality-home-safety-inspection/v2/csv/action_plans.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/csv/action_plans.csv",
      "bytes": 9076,
      "sha256": "30d6950ff43952f40da05ff86fc7edb43eef96e150648d84a9bad1033811fad0",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/checklists.csv",
      "format": "csv",
      "table": "checklists",
      "key": "datasets/augmented-reality-home-safety-inspection/v2/csv/checklists.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/csv/checklists.csv",
      "bytes": 5883,
      "sha256": "8d217400a1685daa01576e5f4d04901ee26fd9be8c1cf4d75edfe172b19494a4",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/photos.csv",
      "format": "csv",
      "table": "photos",
      "key": "datasets/augmented-reality-home-safety-inspection/v2/csv/photos.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/csv/photos.csv",
      "bytes": 23508,
      "sha256": "8bf7bdf10c5c8d105d0cd085dcdb0b1a5c2cbca9487ee5b54e07b521b1814661",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "augmented-reality-home-safety-inspection.json",
      "format": "json",
      "table": null,
      "key": "datasets/augmented-reality-home-safety-inspection/v2/augmented-reality-home-safety-inspection.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/augmented-reality-home-safety-inspection.json",
      "bytes": 193698,
      "sha256": "736cb1758d1f52b6a92ba1139bf9754a86c0bc05038b61cea1c930b85ab354c6",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/augmented-reality-home-safety-inspection/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/sql/postgres.sql",
      "bytes": 98505,
      "sha256": "027201020b5e223c65afd9ad698f9a035a153d7248359c8aa4adfbcafc6bdb2a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/augmented-reality-home-safety-inspection/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/sql/mysql.sql",
      "bytes": 97811,
      "sha256": "619ebf4abc9eef16afb7c25da97e1ee435d76300e335835c25767feeca1c2ec5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/augmented-reality-home-safety-inspection/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/sql/mssql.sql",
      "bytes": 100104,
      "sha256": "0838361a20cb2e6477809fdc8d22a9da40e3cd9ad31eb757193dca9a45a6b37e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/augmented-reality-home-safety-inspection/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/sql/sqlite.sql",
      "bytes": 97540,
      "sha256": "65e28c23469391f2e5cb0adbae304b589c4539c09c050c1717bd5ce887a036dd",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/augmented-reality-home-safety-inspection/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/prisma/seed.ts",
      "bytes": 164280,
      "sha256": "0c19dd765fd9a92ae491033950b97491b53231def354386a26399a0bd31ca65c",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/augmented-reality-home-safety-inspection/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/augmented-reality-home-safety-inspection/v2/django/fixtures.json",
      "bytes": 237938,
      "sha256": "ecb0b0fa18c2167ff537523e29d3c3a3c30e584f88f13b57bc5a2d0699452fdd",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768509300,
  "updatedAt": 1788777582335
}
