{
  "format": "dataset-manifest/1",
  "slug": "urban-resource-management-log",
  "version": 2,
  "seed": "urban-resource-management-log:1",
  "spec": {
    "format": "dataset/1",
    "slug": "urban-resource-management-log",
    "name": "Urban Resource Management Log",
    "tagline": "Logs of urban resources including vehicles, water sources, energy production, and waste management in a city simulation.",
    "description": "City planners manage essential resources in urban environments, balancing infrastructure and resident needs. This dataset captures various events that influence urban life, including utility usage, pollution measurements, and incidents related to waste management. The data reflects how decisions concerning vehicles, energy production, and water sources affect the daily lives of residents and businesses. Events logged in this dataset provide insights into frequent utility usage and the occasional infrastructure failures, allowing users to analyze the relationship between resource management and urban dynamics. By leveraging this synthetic dataset, developers can practice data analytics and build ETL pipelines, simulating real-world urban management scenarios and challenges.",
    "domain": "telecom",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "urban management",
      "resource tracking",
      "event logging",
      "city simulation",
      "telecom data"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "urban_resources": {
        "description": "Each row represents an event related to urban resource management, capturing metrics like utility usage, pollution levels, and infrastructure status. The table links various aspects of urban life, allowing for comprehensive analyses of resource impact.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each event."
          },
          "event_type": {
            "kind": "enum",
            "values": [
              "utility_usage",
              "pollution_measurement",
              "infrastructure_failure",
              "hospital_capacity"
            ],
            "description": "Type of event being logged.",
            "weights": [
              6,
              2,
              1,
              1
            ]
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the event occurred.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "resolved"
              ]
            },
            "dayProfile": "business"
          },
          "location": {
            "kind": "city",
            "description": "Geographical location of the event, specifying the affected urban area.",
            "nullable": true
          },
          "value": {
            "kind": "decimal",
            "min": 0,
            "max": 10000,
            "scale": 2,
            "description": "Measured value associated with the event, such as pollution level or utility usage.",
            "nullable": true,
            "when": {
              "column": "event_type",
              "in": [
                "utility_usage",
                "pollution_measurement"
              ]
            },
            "distribution": "normal"
          },
          "status": {
            "kind": "enum",
            "values": [
              "active",
              "resolved",
              "pending"
            ],
            "description": "Current status of the event, indicating if it is ongoing, resolved, or awaiting action.",
            "nullable": true,
            "when": {
              "column": "event_type",
              "in": [
                "utility_usage",
                "pollution_measurement"
              ]
            },
            "weights": [
              7,
              2,
              1
            ]
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "timestamped",
      "categorical",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What patterns emerge in utility usage during peak hours?",
      "How does pollution correlate with hospital capacity in urban areas?",
      "Which locations experience the highest frequency of infrastructure failures?",
      "What is the average response time to resource-related incidents across the city?"
    ],
    "suggestedQueries": [
      {
        "title": "Fetch all pollution measurement events",
        "sql": "SELECT * FROM urban_resources WHERE event_type = 'pollution_measurement';",
        "dialect": "postgres"
      },
      {
        "title": "Count events by type",
        "sql": "SELECT event_type, COUNT(*) AS event_count FROM urban_resources GROUP BY event_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average utility usage by location",
        "sql": "SELECT location, AVG(value) AS average_usage FROM urban_resources WHERE event_type = 'utility_usage' GROUP BY location;",
        "dialect": "postgres"
      },
      {
        "title": "Recent infrastructure failures",
        "sql": "SELECT * FROM urban_resources WHERE event_type = 'infrastructure_failure' ORDER BY timestamp DESC LIMIT 10;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Urban Planning Analysis",
        "body": "Urban planners can utilize this dataset to analyze the impact of resource management decisions on city life. By examining pollution levels and utility usage, they can identify areas needing infrastructure improvements and develop strategies for sustainable urban growth."
      },
      {
        "title": "ETL Pipeline Development",
        "body": "Data engineers can use the urban resource management log as a foundational dataset for building ETL pipelines. By extracting, transforming, and loading this data, they can create analytics dashboards that visualize urban resource trends over time."
      },
      {
        "title": "Incident Response Optimization",
        "body": "Emergency response teams can analyze the dataset to optimize their incident response strategies. By examining the frequency and impact of infrastructure failures, they can improve their resource allocation and response times during critical events."
      }
    ]
  },
  "counts": {
    "urban_resources": 500
  },
  "stats": {
    "urban_resources": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "event_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "hospital_capacity",
          "max": "utility_usage"
        },
        "timestamp": {
          "nulls": 408,
          "distinct": 92,
          "min": "2022-01-01 17:51:01",
          "max": "2023-12-20 15:55:08"
        },
        "location": {
          "nulls": 52,
          "distinct": 63,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "value": {
          "nulls": 80,
          "distinct": 420,
          "min": 1490,
          "max": 9247.72
        },
        "status": {
          "nulls": 80,
          "distinct": 3,
          "min": "active",
          "max": "resolved"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/urban_resources.csv",
      "format": "csv",
      "table": "urban_resources",
      "key": "datasets/urban-resource-management-log/v2/csv/urban_resources.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/csv/urban_resources.csv",
      "bytes": 23305,
      "sha256": "509863f9175f14f927d454b3212649b94328b37cf31b8d6b05b22ac1f37dab9a",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "urban-resource-management-log.json",
      "format": "json",
      "table": null,
      "key": "datasets/urban-resource-management-log/v2/urban-resource-management-log.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/urban-resource-management-log.json",
      "bytes": 87129,
      "sha256": "49701f4edc6fd14d8c11bc967f9ce7033258d08c945a13a7b8bc9d35c3c5d9ca",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/urban-resource-management-log/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/sql/postgres.sql",
      "bytes": 35129,
      "sha256": "3dc0f466e007d26ba49d95efb60f6a7746c7bcd9f5d33cd871140eff024d827f",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/urban-resource-management-log/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/sql/mysql.sql",
      "bytes": 35015,
      "sha256": "fd84d974700a71ce78a2bbe1b6432700ffc0658aa53aa3795b91a9715be32b2a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/urban-resource-management-log/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/sql/mssql.sql",
      "bytes": 36554,
      "sha256": "85f898bfff8d17b6bac697ef7a5d547ddf1aaeaf17f7d18329db9e325bfefada",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/urban-resource-management-log/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/sql/sqlite.sql",
      "bytes": 34974,
      "sha256": "2d8766b171467090cb263b9c37685f23c9aabb1449c9f8ee3d0005c1ab21f846",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/urban-resource-management-log/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/prisma/seed.ts",
      "bytes": 67774,
      "sha256": "afb29971d2c215e6bdda25f57fb107bbbb0de857fe24d62914ad062e2014a78c",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/urban-resource-management-log/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/urban-resource-management-log/v2/django/fixtures.json",
      "bytes": 113093,
      "sha256": "957651af09097b117c76e1787ced49894968940228a5940590c06628add8c2d4",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768375748,
  "updatedAt": 1788786633639
}
