mirror of
https://github.com/borbann-platform/data-mapping-model.git
synced 2025-12-18 13:14:05 +01:00
25 lines
156 KiB
JSON
25 lines
156 KiB
JSON
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://myrealtyapi.com/property/listing/XYZ789\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://myrealtyapi.com/property/listing/XYZ789\n\nRaw Property Data Snippet:\n{\"listingId\": \"XYZ789\", \"status\": \"Active\", \"price\": 350000.00, \"currency\": \"USD\", \"address\": {\"street\": \"123 Oak Ave\", \"city\": \"Springfield\", \"state\": \"IL\", \"zip\": \"62704\"}, \"details\": {\"beds\": 3, \"baths\": 2.5, \"sqft\": 1850, \"type\": \"Single Family\", \"yearBuilt\": 1998}, \"publicDescription\": \"Beautiful 3 bed, 2.5 bath home in a quiet neighborhood. Updated kitchen, large backyard. Close to parks and schools.\", \"listingDate\": \"2024-03-15T10:00:00Z\", \"agentInfo\": {\"agentName\": \"Jane Doe\", \"brokerage\": \"Premier Properties\", \"phone\": \"555-123-4567\"}, \"photos\": [\"https://myrealtyapi.com/img/XYZ789_1.jpg\", \"https://myrealtyapi.com/img/XYZ789_2.jpg\"]}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://myrealtyapi.com/property/listing/XYZ789\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"123 Oak Ave\", \"city\": \"Springfield\", \"state_province\": \"IL\", \"postal_code\": \"62704\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 3, \"bathrooms\": 2.5, \"area_sqft\": 1850.0, \"lot_size_sqft\": null, \"year_built\": 1998, \"property_type\": \"Single Family\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 350000.0, \"currency\": \"USD\", \"listing_status\": \"Active\", \"listing_type\": null, \"listed_date\": \"2024-03-15T10:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"XYZ789\"}, \"agent\": {\"name\": \"Jane Doe\", \"phone\": \"555-123-4567\", \"email\": null, \"brokerage_name\": \"Premier Properties\"}, \"description\": \"Beautiful 3 bed, 2.5 bath home in a quiet neighborhood. Updated kitchen, large backyard. Close to parks and schools.\", \"image_urls\": [\"https://myrealtyapi.com/img/XYZ789_1.jpg\", \"https://myrealtyapi.com/img/XYZ789_2.jpg\"], \"raw_source_data\": {\"listingId\": \"XYZ789\", \"status\": \"Active\", \"price\": 350000.00, \"currency\": \"USD\", \"address\": {\"street\": \"123 Oak Ave\", \"city\": \"Springfield\", \"state\": \"IL\", \"zip\": \"62704\"}, \"details\": {\"beds\": 3, \"baths\": 2.5, \"sqft\": 1850, \"type\": \"Single Family\", \"yearBuilt\": 1998}, \"publicDescription\": \"Beautiful 3 bed, 2.5 bath home in a quiet neighborhood. Updated kitchen, large backyard. Close to parks and schools.\", \"listingDate\": \"2024-03-15T10:00:00Z\", \"agentInfo\": {\"agentName\": \"Jane Doe\", \"brokerage\": \"Premier Properties\", \"phone\": \"555-123-4567\"}, \"photos\": [\"https://myrealtyapi.com/img/XYZ789_1.jpg\", \"https://myrealtyapi.com/img/XYZ789_2.jpg\"]}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: listings_q1_2024.csv-row-102\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: listings_q1_2024.csv-row-102\n\nRaw Property Data Snippet:\n{\"Street Address\": \"456 Elm St\", \"City\": \"Anytown\", \"State\": \"NY\", \"Zip\": \"12345\", \"Bedrooms\": \"4\", \"Bathrooms\": \"3.5\", \"Sq Ft\": \"2500\", \"Sale Price\": \"$450,000\", \"Property Type\": \"House\", \"Date Listed\": \"01/20/2024\", \"Agent Email\": \"john.doe@example.com\", \"Notes\": \"Spacious family home with finished basement.\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"listings_q1_2024.csv-row-102\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"456 Elm St\", \"city\": \"Anytown\", \"state_province\": \"NY\", \"postal_code\": \"12345\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 4, \"bathrooms\": 3.5, \"area_sqft\": 2500.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"House\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 450000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": null, \"listed_date\": \"2024-01-20T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": null}, \"agent\": {\"name\": null, \"phone\": null, \"email\": \"john.doe@example.com\", \"brokerage_name\": null}, \"description\": \"Spacious family home with finished basement.\", \"image_urls\": null, \"raw_source_data\": {\"Street Address\": \"456 Elm St\", \"City\": \"Anytown\", \"State\": \"NY\", \"Zip\": \"12345\", \"Bedrooms\": \"4\", \"Bathrooms\": \"3.5\", \"Sq Ft\": \"2500\", \"Sale Price\": \"$450,000\", \"Property Type\": \"House\", \"Date Listed\": \"01/20/2024\", \"Agent Email\": \"john.doe@example.com\", \"Notes\": \"Spacious family home with finished basement.\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.zillow.com/homedetails/property-id-12345\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.zillow.com/homedetails/property-id-12345\n\nRaw Property Data Snippet:\n{\"address\": \"789 Pine Lane, Seattle, WA 98101\", \"bedrooms\": \"3 bd\", \"bathrooms\": \"2 ba\", \"sqft\": \"1,500 sqft\", \"price\": \"$650,000\", \"propertyType\": \"Townhouse\", \"description\": \"Charming townhouse in the heart of Seattle. Walkable to shops and restaurants.\", \"lastSoldDate\": \"2022-07-01\", \"zpid\": \"12345\", \"photos\": [\"https://photos.zillowstatic.com/fp/photo1.jpg\"]}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.zillow.com/homedetails/property-id-12345\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"789 Pine Lane\", \"city\": \"Seattle\", \"state_province\": \"WA\", \"postal_code\": \"98101\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 3, \"bathrooms\": 2.0, \"area_sqft\": 1500.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Townhouse\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 650000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": null, \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://www.zillow.com/homedetails/property-id-12345\", \"mls_id\": \"12345\"}, \"agent\": null, \"description\": \"Charming townhouse in the heart of Seattle. Walkable to shops and restaurants.\", \"image_urls\": [\"https://photos.zillowstatic.com/fp/photo1.jpg\"], \"raw_source_data\": {\"address\": \"789 Pine Lane, Seattle, WA 98101\", \"bedrooms\": \"3 bd\", \"bathrooms\": \"2 ba\", \"sqft\": \"1,500 sqft\", \"price\": \"$650,000\", \"propertyType\": \"Townhouse\", \"description\": \"Charming townhouse in the heart of Seattle. Walkable to shops and restaurants.\", \"lastSoldDate\": \"2022-07-01\", \"zpid\": \"12345\", \"photos\": [\"https://photos.zillowstatic.com/fp/photo1.jpg\"]}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://realtorapi.example.com/v1/property/98765\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://realtorapi.example.com/v1/property/98765\n\nRaw Property Data Snippet:\n{\"propertyId\": 98765, \"street\": \"101 Beach Blvd\", \"city\": \"Miami\", \"state\": \"FL\", \"zipCode\": \"33101\", \"beds\": 1, \"baths\": 1.0, \"squareFeet\": 750, \"listPrice\": 450000, \"listingDate\": \"2024-03-20\", \"propertyDesc\": \"Oceanfront condo with stunning views.\", \"propertyPhotos\": [\"https://cdn.realtorapi.example.com/photo1.jpg\"], \"agentContact\": {\"name\": \"Bob Johnson\", \"email\": \"bob.johnson@example.com\"}}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://realtorapi.example.com/v1/property/98765\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"101 Beach Blvd\", \"city\": \"Miami\", \"state_province\": \"FL\", \"postal_code\": \"33101\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 1, \"bathrooms\": 1.0, \"area_sqft\": 750.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": null, \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 450000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": null, \"listed_date\": \"2024-03-20T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"98765\"}, \"agent\": {\"name\": \"Bob Johnson\", \"phone\": null, \"email\": \"bob.johnson@example.com\", \"brokerage_name\": null}, \"description\": \"Oceanfront condo with stunning views.\", \"image_urls\": [\"https://cdn.realtorapi.example.com/photo1.jpg\"], \"raw_source_data\": {\"propertyId\": 98765, \"street\": \"101 Beach Blvd\", \"city\": \"Miami\", \"state\": \"FL\", \"zipCode\": \"33101\", \"beds\": 1, \"baths\": 1.0, \"squareFeet\": 750, \"listPrice\": 450000, \"listingDate\": \"2024-03-20\", \"propertyDesc\": \"Oceanfront condo with stunning views.\", \"propertyPhotos\": [\"https://cdn.realtorapi.example.com/photo1.jpg\"], \"agentContact\": {\"name\": \"Bob Johnson\", \"email\": \"bob.johnson@example.com\"}}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: apartments_nyc.json-record-7\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: apartments_nyc.json-record-7\n\nRaw Property Data Snippet:\n{\"id\": \"apt-nyc-007\", \"addr\": \"Unit 4B, 200 Main St\", \"borough\": \"Manhattan\", \"zip\": \"10001\", \"beds_count\": 2, \"baths_count\": 1, \"rent\": 3500, \"avail_date\": \"2024-05-01\", \"details\": \"Spacious 2 bedroom apartment with updated kitchen in great location.\", \"contact_phone\": \"212-555-1212\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"apartments_nyc.json-record-7\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"Unit 4B, 200 Main St\", \"city\": \"New York\", \"state_province\": \"NY\", \"postal_code\": \"10001\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 2, \"bathrooms\": 1.0, \"area_sqft\": null, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Apartment\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 3500.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Rental\", \"listed_date\": \"2024-05-01T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"apt-nyc-007\"}, \"agent\": {\"name\": null, \"phone\": \"212-555-1212\", \"email\": null, \"brokerage_name\": null}, \"description\": \"Spacious 2 bedroom apartment with updated kitchen in great location.\", \"image_urls\": null, \"raw_source_data\": {\"id\": \"apt-nyc-007\", \"addr\": \"Unit 4B, 200 Main St\", \"borough\": \"Manhattan\", \"zip\": \"10001\", \"beds_count\": 2, \"baths_count\": 1, \"rent\": 3500, \"avail_date\": \"2024-05-01\", \"details\": \"Spacious 2 bedroom apartment with updated kitchen in great location.\", \"contact_phone\": \"212-555-1212\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.redfin.com/CA/Los-Angeles/address-11111/home/9876543\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.redfin.com/CA/Los-Angeles/address-11111/home/9876543\n\nRaw Property Data Snippet:\n{\"streetLine\": \"111 Main St\", \"city\": \"Los Angeles\", \"state\": \"CA\", \"zip\": \"90001\", \"beds\": 4, \"baths\": \"2.5\", \"sqFt\": 2200, \"lotSqFt\": 7500, \"yearBuilt\": 1965, \"price\": 950000, \"listingAgent\": {\"name\": \"Agent A\", \"office\": \"Redfin\"}, \"descriptionText\": \"Beautiful single-family home with large yard.\", \"listingURL\": \"https://www.redfin.com/CA/Los-Angeles/address-11111/home/9876543\", \"photos\": [\"https://ssl.cdn.redfin.com/photo/abc.jpg\"]}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.redfin.com/CA/Los-Angeles/address-11111/home/9876543\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"111 Main St\", \"city\": \"Los Angeles\", \"state_province\": \"CA\", \"postal_code\": \"90001\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 4, \"bathrooms\": 2.5, \"area_sqft\": 2200.0, \"lot_size_sqft\": 7500.0, \"year_built\": 1965, \"property_type\": \"Single Family\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 950000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": null, \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://www.redfin.com/CA/Los-Angeles/address-11111/home/9876543\", \"mls_id\": null}, \"agent\": {\"name\": \"Agent A\", \"phone\": null, \"email\": null, \"brokerage_name\": \"Redfin\"}, \"description\": \"Beautiful single-family home with large yard.\", \"image_urls\": [\"https://ssl.cdn.redfin.com/photo/abc.jpg\"], \"raw_source_data\": {\"streetLine\": \"111 Main St\", \"city\": \"Los Angeles\", \"state\": \"CA\", \"zip\": \"90001\", \"beds\": 4, \"baths\": \"2.5\", \"sqFt\": 2200, \"lotSqFt\": 7500, \"yearBuilt\": 1965, \"price\": 950000, \"listingAgent\": {\"name\": \"Agent A\", \"office\": \"Redfin\"}, \"descriptionText\": \"Beautiful single-family home with large yard.\", \"listingURL\": \"https://www.redfin.com/CA/Los-Angeles/address-11111/home/9876543\", \"photos\": [\"https://ssl.cdn.redfin.com/photo/abc.jpg\"]}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://api.example.com/commercial/unit/C-15\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://api.example.com/commercial/unit/C-15\n\nRaw Property Data Snippet:\n{\"unit_id\": \"C-15\", \"building_address\": \"500 Commerce Way\", \"building_city\": \"Dallas\", \"building_state\": \"TX\", \"building_zip\": \"75201\", \"unit_size_sqft\": 1200, \"lease_rate_psf_yr\": 25.00, \"lease_type\": \"NNN\", \"available_from\": \"2024-06-01\", \"contact_person\": \"Agent B\", \"contact_office\": \"Commercial Realty\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://api.example.com/commercial/unit/C-15\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"500 Commerce Way\", \"city\": \"Dallas\", \"state_province\": \"TX\", \"postal_code\": \"75201\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": null, \"bathrooms\": null, \"area_sqft\": 1200.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Commercial\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": null, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Commercial Lease\", \"listed_date\": \"2024-06-01T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"C-15\"}, \"agent\": {\"name\": \"Agent B\", \"phone\": null, \"email\": null, \"brokerage_name\": \"Commercial Realty\"}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"unit_id\": \"C-15\", \"building_address\": \"500 Commerce Way\", \"building_city\": \"Dallas\", \"building_state\": \"TX\", \"building_zip\": \"75201\", \"unit_size_sqft\": 1200, \"lease_rate_psf_yr\": 25.00, \"lease_type\": \"NNN\", \"available_from\": \"2024-06-01\", \"contact_person\": \"Agent B\", \"contact_office\": \"Commercial Realty\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: vacancies.xlsx-row-25\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: vacancies.xlsx-row-25\n\nRaw Property Data Snippet:\n{\"Property Address\": \"Unit 3A, 700 Bay St\", \"City\": \"Toronto\", \"Province\": \"ON\", \"Postal Code\": \"M5G 1Z6\", \"Beds\": 1, \"Baths\": 1, \"Area (sqft)\": 650, \"Monthly Rent\": 2200, \"Building Type\": \"Apartment\", \"Contact Person\": \"C. Smith\", \"Contact Number\": \"416-555-7890\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"vacancies.xlsx-row-25\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"Unit 3A, 700 Bay St\", \"city\": \"Toronto\", \"state_province\": \"ON\", \"postal_code\": \"M5G 1Z6\", \"country\": \"Canada\"}, \"features\": {\"bedrooms\": 1, \"bathrooms\": 1.0, \"area_sqft\": 650.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Apartment\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 2200.0, \"currency\": \"CAD\", \"listing_status\": null, \"listing_type\": \"Rental\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": null}, \"agent\": {\"name\": \"C. Smith\", \"phone\": \"416-555-7890\", \"email\": null, \"brokerage_name\": null}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"Property Address\": \"Unit 3A, 700 Bay St\", \"City\": \"Toronto\", \"Province\": \"ON\", \"Postal Code\": \"M5G 1Z6\", \"Beds\": 1, \"Baths\": 1, \"Area (sqft)\": 650, \"Monthly Rent\": 2200, \"Building Type\": \"Apartment\", \"Contact Person\": \"C. Smith\", \"Contact Number\": \"416-555-7890\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.propertyfinder.ae/en/buy/villa-dubai-palm-jumeirah-emerald-palace-gardens-villa-123456\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.propertyfinder.ae/en/buy/villa-dubai-palm-jumeirah-emerald-palace-gardens-villa-123456\n\nRaw Property Data Snippet:\n{\"prop_id\": \"123456\", \"location_text\": \"Palm Jumeirah, Dubai\", \"bedrooms_count\": 5, \"bathrooms_count\": 6, \"area_sqm\": 800, \"price_aed\": 35000000, \"property_type_en\": \"Villa\", \"description_en\": \"Ultra-luxury villa with private beach access.\", \"agent_name\": \"Luxury Homes Real Estate\", \"contact_phone\": \"+971 4 XXX XXXX\", \"images\": [\"https://img.propertyfinder.ae/photo/xyz.jpg\"]}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.propertyfinder.ae/en/buy/villa-dubai-palm-jumeirah-emerald-palace-gardens-villa-123456\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"Palm Jumeirah\", \"city\": \"Dubai\", \"state_province\": null, \"postal_code\": null, \"country\": \"UAE\"}, \"features\": {\"bedrooms\": 5, \"bathrooms\": 6.0, \"area_sqft\": 8611.13, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Villa\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 35000000.0, \"currency\": \"AED\", \"listing_status\": null, \"listing_type\": null, \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://www.propertyfinder.ae/en/buy/villa-dubai-palm-jumeirah-emerald-palace-gardens-villa-123456\", \"mls_id\": \"123456\"}, \"agent\": {\"name\": \"Luxury Homes Real Estate\", \"phone\": \"+971 4 XXX XXXX\", \"email\": null, \"brokerage_name\": \"Luxury Homes Real Estate\"}, \"description\": \"Ultra-luxury villa with private beach access.\", \"image_urls\": [\"https://img.propertyfinder.ae/photo/xyz.jpg\"], \"raw_source_data\": {\"prop_id\": \"123456\", \"location_text\": \"Palm Jumeirah, Dubai\", \"bedrooms_count\": 5, \"bathrooms_count\": 6, \"area_sqm\": 800, \"price_aed\": 35000000, \"property_type_en\": \"Villa\", \"description_en\": \"Ultra-luxury villa with private beach access.\", \"agent_name\": \"Luxury Homes Real Estate\", \"contact_phone\": \"+971 4 XXX XXXX\", \"images\": [\"https://img.propertyfinder.ae/photo/xyz.jpg\"]}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://buildernewsapi.com/project/new-condos-phase2\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://buildernewsapi.com/project/new-condos-phase2\n\nRaw Property Data Snippet:\n{\"project_name\": \"Maplewood Condos - Phase 2\", \"type\": \"Condominium (New Construction)\", \"location\": {\"address\": \"88 Maplewood Ave\", \"city\": \"Vancouver\", \"province\": \"BC\", \"postal_code\": \"V6T 1Z4\", \"country\": \"Canada\"}, \"units_available\": [{\"unit_type\": \"1 Bed\", \"sqft\": 600, \"price_cad\": 550000}, {\"unit_type\": \"2 Bed\", \"sqft\": 850, \"price_cad\": 750000}], \"completion_date\": \"2025-Fall\", \"developer\": \"Green Homes Inc.\", \"contact_email\": \"sales@greenhomes.ca\", \"marketing_images\": [\"https://buildernewsapi.com/img/maplewood_rendering.jpg\"]}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://buildernewsapi.com/project/new-condos-phase2\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"88 Maplewood Ave\", \"city\": \"Vancouver\", \"state_province\": \"BC\", \"postal_code\": \"V6T 1Z4\", \"country\": \"Canada\"}, \"features\": null, \"listing\": {\"price\": null, \"currency\": null, \"listing_status\": \"Development\", \"listing_type\": \"New Construction\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://buildernewsapi.com/project/new-condos-phase2\", \"mls_id\": null}, \"agent\": {\"name\": \"Green Homes Inc. Sales\", \"phone\": null, \"email\": \"sales@greenhomes.ca\", \"brokerage_name\": \"Green Homes Inc.\"}, \"description\": \"Maplewood Condos - Phase 2. New construction condominium units available. Unit types include 1 bed (600 sqft) starting at $550,000 CAD and 2 bed (850 sqft) starting at $750,000 CAD. Estimated completion Fall 2025.\", \"image_urls\": [\"https://buildernewsapi.com/img/maplewood_rendering.jpg\"], \"raw_source_data\": {\"project_name\": \"Maplewood Condos - Phase 2\", \"type\": \"Condominium (New Construction)\", \"location\": {\"address\": \"88 Maplewood Ave\", \"city\": \"Vancouver\", \"province\": \"BC\", \"postal_code\": \"V6T 1Z4\", \"country\": \"Canada\"}, \"units_available\": [{\"unit_type\": \"1 Bed\", \"sqft\": 600, \"price_cad\": 550000}, {\"unit_type\": \"2 Bed\", \"sqft\": 850, \"price_cad\": 750000}], \"completion_date\": \"2025-Fall\", \"developer\": \"Green Homes Inc.\", \"contact_email\": \"sales@greenhomes.ca\", \"marketing_images\": [\"https://buildernewsapi.com/img/maplewood_rendering.jpg\"]}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: raw_data_feed_20240325.xml-record-412\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}, \"xml_data\": true}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: raw_data_feed_20240325.xml-record-412\n\nRaw Property Data Snippet:\n{\"Property\": {\"ID\": \"MLS112233\", \"Address\": \"321 River Rd, Austin, TX 78701\", \"Bedrooms\": \"3\", \"Bathrooms\": \"2\", \"SqFt\": \"1950\", \"ListPrice\": \"525000\", \"Status\": \"Sale\", \"ListingAgent\": {\"Name\": \"Cathy Jones\", \"Brokerage\": \"Austin Realty\"}, \"Description\": \"Riverside property with great views.\", \"PhotoURLs\": [\"http://images.example.com/mls112233_photo1.jpg\"]}}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"raw_data_feed_20240325.xml-record-412\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"321 River Rd\", \"city\": \"Austin\", \"state_province\": \"TX\", \"postal_code\": \"78701\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 3, \"bathrooms\": 2.0, \"area_sqft\": 1950.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": null, \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 525000.0, \"currency\": \"USD\", \"listing_status\": \"Sale\", \"listing_type\": null, \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"MLS112233\"}, \"agent\": {\"name\": \"Cathy Jones\", \"phone\": null, \"email\": null, \"brokerage_name\": \"Austin Realty\"}, \"description\": \"Riverside property with great views.\", \"image_urls\": [\"http://images.example.com/mls112233_photo1.jpg\"], \"raw_source_data\": {\"Property\": {\"ID\": \"MLS112233\", \"Address\": \"321 River Rd, Austin, TX 78701\", \"Bedrooms\": \"3\", \"Bathrooms\": \"2\", \"SqFt\": \"1950\", \"ListPrice\": \"525000\", \"Status\": \"Sale\", \"ListingAgent\": {\"Name\": \"Cathy Jones\", \"Brokerage\": \"Austin Realty\"}, \"Description\": \"Riverside property with great views.\", \"PhotoURLs\": [\"http://images.example.com/mls112233_photo1.jpg\"]}}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.apartments.com/some-listing-page/pqrstuv/\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.apartments.com/some-listing-page/pqrstuv/\n\nRaw Property Data Snippet:\n{\"building_name\": \"The Residences at Downtown\", \"street_address\": \"10 Peachtree St NW\", \"city\": \"Atlanta\", \"state\": \"GA\", \"zip_code\": \"30303\", \"unit_details\": [{\"beds\": 1, \"baths\": 1, \"rent_monthly\": 1800, \"sq_ft\": 700}, {\"beds\": 2, \"baths\": 2, \"rent_monthly\": 2500, \"sq_ft\": 1100}], \"amenities\": [\"Pool\", \"Gym\", \"Pet Friendly\"], \"contact_phone\": \"404-555-9876\", \"url\": \"https://www.apartments.com/some-listing-page/pqrstuv/\", \"last_updated\": \"2024-03-24\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.apartments.com/some-listing-page/pqrstuv/\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"10 Peachtree St NW\", \"city\": \"Atlanta\", \"state_province\": \"GA\", \"postal_code\": \"30303\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": null, \"bathrooms\": null, \"area_sqft\": null, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Apartment Complex\", \"has_pool\": true, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": null, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Rental\", \"listed_date\": null, \"last_updated_date\": \"2024-03-24T00:00:00Z\", \"listing_url\": \"https://www.apartments.com/some-listing-page/pqrstuv/\", \"mls_id\": null}, \"agent\": {\"name\": null, \"phone\": \"404-555-9876\", \"email\": null, \"brokerage_name\": \"The Residences at Downtown\"}, \"description\": \"The Residences at Downtown. Units available include 1 bed (700 sqft) for $1800/month and 2 bed (1100 sqft) for $2500/month. Amenities include Pool, Gym, Pet Friendly.\", \"image_urls\": null, \"raw_source_data\": {\"building_name\": \"The Residences at Downtown\", \"street_address\": \"10 Peachtree St NW\", \"city\": \"Atlanta\", \"state\": \"GA\", \"zip_code\": \"30303\", \"unit_details\": [{\"beds\": 1, \"baths\": 1, \"rent_monthly\": 1800, \"sq_ft\": 700}, {\"beds\": 2, \"baths\": 2, \"rent_monthly\": 2500, \"sq_ft\": 1100}], \"amenities\": [\"Pool\", \"Gym\", \"Pet Friendly\"], \"contact_phone\": \"404-555-9876\", \"url\": \"https://www.apartments.com/some-listing-page/pqrstuv/\", \"last_updated\": \"2024-03-24\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://idxfeed.example.net/property/ID-999\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://idxfeed.example.net/property/ID-999\n\nRaw Property Data Snippet:\n{\"MLS\": \"ID-999\", \"StreetNumber\": \"876\", \"StreetName\": \"Oakwood\", \"StreetSuffix\": \"Lane\", \"City\": \"Phoenix\", \"State\": \"AZ\", \"PostalCode\": \"85001\", \"PropertyType\": \"RES\", \"Bedrooms\": 5, \"Bathrooms\": 3, \"LivingArea\": 2800, \"LotSize\": 10500, \"YearBuilt\": 2005, \"ListingPrice\": 780000, \"ListingDate\": \"2024-03-01\", \"AgentFirstName\": \"David\", \"AgentLastName\": \"Clark\", \"OfficeName\": \"Desert Homes\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://idxfeed.example.net/property/ID-999\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"876 Oakwood Lane\", \"city\": \"Phoenix\", \"state_province\": \"AZ\", \"postal_code\": \"85001\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 5, \"bathrooms\": 3.0, \"area_sqft\": 2800.0, \"lot_size_sqft\": 10500.0, \"year_built\": 2005, \"property_type\": \"Residential\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 780000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": \"2024-03-01T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"ID-999\"}, \"agent\": {\"name\": \"David Clark\", \"phone\": null, \"email\": null, \"brokerage_name\": \"Desert Homes\"}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"MLS\": \"ID-999\", \"StreetNumber\": \"876\", \"StreetName\": \"Oakwood\", \"StreetSuffix\": \"Lane\", \"City\": \"Phoenix\", \"State\": \"AZ\", \"PostalCode\": \"85001\", \"PropertyType\": \"RES\", \"Bedrooms\": 5, \"Bathrooms\": 3, \"LivingArea\": 2800, \"LotSize\": 10500, \"YearBuilt\": 2005, \"ListingPrice\": 780000, \"ListingDate\": \"2024-03-01\", \"AgentFirstName\": \"David\", \"AgentLastName\": \"Clark\", \"OfficeName\": \"Desert Homes\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: commercial_properties.csv-row-50\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: commercial_properties.csv-row-50\n\nRaw Property Data Snippet:\n{\"Street Address\": \"123 Industrial Way\", \"City\": \"Houston\", \"State\": \"TX\", \"Zip Code\": \"77001\", \"Building Size (sqft)\": \"15000\", \"Lot Size (Acres)\": \"2.5\", \"Sale Price\": \"$3,000,000\", \"Property Type\": \"Industrial\", \"Agent Name\": \"Eve Adams\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"commercial_properties.csv-row-50\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"123 Industrial Way\", \"city\": \"Houston\", \"state_province\": \"TX\", \"postal_code\": \"77001\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": null, \"bathrooms\": null, \"area_sqft\": 15000.0, \"lot_size_sqft\": 108900.0, \"year_built\": null, \"property_type\": \"Industrial\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 3000000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": null}, \"agent\": {\"name\": \"Eve Adams\", \"phone\": null, \"email\": null, \"brokerage_name\": null}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"Street Address\": \"123 Industrial Way\", \"City\": \"Houston\", \"State\": \"TX\", \"Zip Code\": \"77001\", \"Building Size (sqft)\": \"15000\", \"Lot Size (Acres)\": \"2.5\", \"Sale Price\": \"$3,000,000\", \"Property Type\": \"Industrial\", \"Agent Name\": \"Eve Adams\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.loopnet.com/Listing/Another-Commercial-Prop/654321/\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.loopnet.com/Listing/Another-Commercial-Prop/654321/\n\nRaw Property Data Snippet:\n{\"listing_id\": \"654321\", \"property_address\": \"4 Privet Drive\", \"property_city\": \"Little Whinging\", \"property_state\": \"Surrey\", \"property_country\": \"UK\", \"building_size_sqft\": 4000, \"property_type\": \"Office\", \"listing_price\": \"£1,200,000\", \"contact_agent_name\": \"Mr. Dursley\", \"website\": \"https://www.loopnet.com/Listing/Another-Commercial-Prop/654321/\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.loopnet.com/Listing/Another-Commercial-Prop/654321/\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"4 Privet Drive\", \"city\": \"Little Whinging\", \"state_province\": \"Surrey\", \"postal_code\": null, \"country\": \"UK\"}, \"features\": {\"bedrooms\": null, \"bathrooms\": null, \"area_sqft\": 4000.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Office\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 1200000.0, \"currency\": \"GBP\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://www.loopnet.com/Listing/Another-Commercial-Prop/654321/\", \"mls_id\": \"654321\"}, \"agent\": {\"name\": \"Mr. Dursley\", \"phone\": null, \"email\": null, \"brokerage_name\": null}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"listing_id\": \"654321\", \"property_address\": \"4 Privet Drive\", \"property_city\": \"Little Whinging\", \"property_state\": \"Surrey\", \"property_country\": \"UK\", \"building_size_sqft\": 4000, \"property_type\": \"Office\", \"listing_price\": \"£1,200,000\", \"contact_agent_name\": \"Mr. Dursley\", \"website\": \"https://www.loopnet.com/Listing/Another-Commercial-Prop/654321/\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: land_parcels_export.json-record-15\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not null, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: land_parcels_export.json-record-15\n\nRaw Property Data Snippet:\n{\"parcel_id\": \"LAND456\", \"location\": {\"street\": \"Vacant Land on Hwy 101\", \"city\": \"Coastal Town\", \"state\": \"OR\", \"zip\": \"97365\"}, \"acres\": 5.2, \"zoning\": \"Agricultural\", \"asking_price\": 150000, \"listing_contact\": {\"name\": \"Agent F\", \"phone\": \"503-555-9999\"}}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"land_parcels_export.json-record-15\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"Vacant Land on Hwy 101\", \"city\": \"Coastal Town\", \"state_province\": \"OR\", \"postal_code\": \"97365\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": null, \"bathrooms\": null, \"area_sqft\": null, \"lot_size_sqft\": 226932.0, \"year_built\": null, \"property_type\": \"Land\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 150000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"LAND456\"}, \"agent\": {\"name\": \"Agent F\", \"phone\": \"503-555-9999\", \"email\": null, \"brokerage_name\": null}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"parcel_id\": \"LAND456\", \"location\": {\"street\": \"Vacant Land on Hwy 101\", \"city\": \"Coastal Town\", \"state\": \"OR\", \"zip\": \"97365\"}, \"acres\": 5.2, \"zoning\": \"Agricultural\", \"asking_price\": 150000, \"listing_contact\": {\"name\": \"Agent F\", \"phone\": \"503-555-9999\"}}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://buildersapi.example.org/properties/project-gamma-unit-701\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://buildersapi.example.org/properties/project-gamma-unit-701\n\nRaw Property Data Snippet:\n{\"prop_identifier\": \"project-gamma-unit-701\", \"project_name\": \"The Pinnacle Towers\", \"unit_number\": \"701\", \"building_address\": \"1 Central Ave\", \"building_city\": \"Chicago\", \"building_state\": \"IL\", \"building_zip\": \"60601\", \"beds\": \"2\", \"baths\": \"2.5\", \"area_sqft\": 1300, \"purchase_price\": 680000, \"status\": \"Under Contract\", \"sales_agent\": {\"first_name\": \"Gemma\", \"last_name\": \"Stone\"}}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://buildersapi.example.org/properties/project-gamma-unit-701\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"1 Central Ave\", \"city\": \"Chicago\", \"state_province\": \"IL\", \"postal_code\": \"60601\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 2, \"bathrooms\": 2.5, \"area_sqft\": 1300.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Condominium (New Construction)\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 680000.0, \"currency\": \"USD\", \"listing_status\": \"Under Contract\", \"listing_type\": null, \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"project-gamma-unit-701\"}, \"agent\": {\"name\": \"Gemma Stone\", \"phone\": null, \"email\": null, \"brokerage_name\": null}, \"description\": \"Unit 701 in The Pinnacle Towers.\", \"image_urls\": null, \"raw_source_data\": {\"prop_identifier\": \"project-gamma-unit-701\", \"project_name\": \"The Pinnacle Towers\", \"unit_number\": \"701\", \"building_address\": \"1 Central Ave\", \"building_city\": \"Chicago\", \"building_state\": \"IL\", \"building_zip\": \"60601\", \"beds\": \"2\", \"baths\": \"2.5\", \"area_sqft\": 1300, \"purchase_price\": 680000, \"status\": \"Under Contract\", \"sales_agent\": {\"first_name\": \"Gemma\", \"last_name\": \"Stone\"}}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.remax.ca/on/toronto/condo-for-sale/mls-11223344/\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.remax.ca/on/toronto/condo-for-sale/mls-11223344/\n\nRaw Property Data Snippet:\n{\"MLS#\": \"11223344\", \"Address\": \"1 Yonge St, Toronto, ON M5E 1W7\", \"Bedrooms\": \"1 + 1\", \"Bathrooms\": \"1\", \"Sqft\": \"600-699\", \"ListingPrice\": \"720,000 CAD\", \"PropertyType\": \"Condo Apt\", \"ListingAgent\": \"Remax Agent\", \"AgentPhone\": \"416-555-1111\", \"Description\": \"Downtown living at its finest.\", \"PhotoLinks\": [\"https://cdn.remax.ca/photo_xyz.jpg\"]}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.remax.ca/on/toronto/condo-for-sale/mls-11223344/\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"1 Yonge St\", \"city\": \"Toronto\", \"state_province\": \"ON\", \"postal_code\": \"M5E 1W7\", \"country\": \"Canada\"}, \"features\": {\"bedrooms\": 2, \"bathrooms\": 1.0, \"area_sqft\": 650.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Condo\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 720000.0, \"currency\": \"CAD\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://www.remax.ca/on/toronto/condo-for-sale/mls-11223344/\", \"mls_id\": \"11223344\"}, \"agent\": {\"name\": \"Remax Agent\", \"phone\": \"416-555-1111\", \"email\": null, \"brokerage_name\": \"Remax\"}, \"description\": \"Downtown living at its finest.\", \"image_urls\": [\"https://cdn.remax.ca/photo_xyz.jpg\"], \"raw_source_data\": {\"MLS#\": \"11223344\", \"Address\": \"1 Yonge St, Toronto, ON M5E 1W7\", \"Bedrooms\": \"1 + 1\", \"Bathrooms\": \"1\", \"Sqft\": \"600-699\", \"ListingPrice\": \"720,000 CAD\", \"PropertyType\": \"Condo Apt\", \"ListingAgent\": \"Remax Agent\", \"AgentPhone\": \"416-555-1111\", \"Description\": \"Downtown living at its finest.\", \"PhotoLinks\": [\"https://cdn.remax.ca/photo_xyz.jpg\"]}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: rentals_feed_may_2024.json-record-5\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: rentals_feed_may_2024.json-record-5\n\nRaw Property Data Snippet:\n{\"rental_id\": \"RENT-XYZ123\", \"address\": {\"street\": \"99 Elm Street\", \"city\": \"Boston\", \"state\": \"MA\", \"zip\": \"02108\"}, \"bedrooms\": 0, \"bathrooms\": 1, \"sqft\": 450, \"monthly_rent\": 2000, \"lease_start_date\": \"2024-06-01\", \"property_type\": \"Studio Apartment\", \"contact\": {\"email\": \"rentals@bostonapts.com\"}, \"description\": \"Cozy studio in Beacon Hill. Heat and hot water included.\", \"images\": [\"file:///local/path/to/img1.jpg\", \"file:///local/path/to/img2.jpg\"]}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"rentals_feed_may_2024.json-record-5\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"99 Elm Street\", \"city\": \"Boston\", \"state_province\": \"MA\", \"postal_code\": \"02108\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 0, \"bathrooms\": 1.0, \"area_sqft\": 450.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Studio Apartment\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 2000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Rental\", \"listed_date\": \"2024-06-01T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"RENT-XYZ123\"}, \"agent\": {\"name\": null, \"phone\": null, \"email\": \"rentals@bostonapts.com\", \"brokerage_name\": null}, \"description\": \"Cozy studio in Beacon Hill. Heat and hot water included.\", \"image_urls\": null, \"raw_source_data\": {\"rental_id\": \"RENT-XYZ123\", \"address\": {\"street\": \"99 Elm Street\", \"city\": \"Boston\", \"state\": \"MA\", \"zip\": \"02108\"}, \"bedrooms\": 0, \"bathrooms\": 1, \"sqft\": 450, \"monthly_rent\": 2000, \"lease_start_date\": \"2024-06-01\", \"property_type\": \"Studio Apartment\", \"contact\": {\"email\": \"rentals@bostonapts.com\"}, \"description\": \"Cozy studio in Beacon Hill. Heat and hot water included.\", \"images\": [\"file:///local/path/to/img1.jpg\", \"file:///local/path/to/img2.jpg\"]}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://api.rentalsource.co/property/unit-5b-building-7\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://api.rentalsource.co/property/unit-5b-building-7\n\nRaw Property Data Snippet:\n{\"unit_code\": \"UNIT-5B-B7\", \"building_address\": \"400 Garden Lane\", \"building_city\": \"Portland\", \"building_state\": \"OR\", \"building_zip\": \"97201\", \"type\": \"Apartment\", \"bedrooms\": 1, \"bathrooms\": 1, \"size_sqft\": 680, \"monthly_rent\": 1650, \"date_available\": \"2024-05-15\", \"contact\": {\"email\": \"leasing@rentalsource.co\"}}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://api.rentalsource.co/property/unit-5b-building-7\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"400 Garden Lane\", \"city\": \"Portland\", \"state_province\": \"OR\", \"postal_code\": \"97201\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 1, \"bathrooms\": 1.0, \"area_sqft\": 680.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Apartment\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 1650.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Rental\", \"listed_date\": \"2024-05-15T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"UNIT-5B-B7\"}, \"agent\": {\"name\": null, \"phone\": null, \"email\": \"leasing@rentalsource.co\", \"brokerage_name\": null}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"unit_code\": \"UNIT-5B-B7\", \"building_address\": \"400 Garden Lane\", \"building_city\": \"Portland\", \"building_state\": \"OR\", \"building_zip\": \"97201\", \"type\": \"Apartment\", \"bedrooms\": 1, \"bathrooms\": 1, \"size_sqft\": 680, \"monthly_rent\": 1650, \"date_available\": \"2024-05-15\", \"contact\": {\"email\": \"leasing@rentalsource.co\"}}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: development_land_export.json-record-5\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: development_land_export.json-record-5\n\nRaw Property Data Snippet:\n{\"site_id\": \"DEVLAND005\", \"location\": {\"street\": \"Future Parkway\", \"city\": \"Growthville\", \"state\": \"NC\", \"zip\": \"27513\"}, \"size_acres\": 10.5, \"zoning\": \"Mixed-Use Development\", \"list_price\": 1200000, \"contact\": {\"name\": \"Agent K\", \"brokerage\": \"Development Land Co.\"}}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"development_land_export.json-record-5\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"Future Parkway\", \"city\": \"Growthville\", \"state_province\": \"NC\", \"postal_code\": \"27513\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": null, \"bathrooms\": null, \"area_sqft\": null, \"lot_size_sqft\": 457380.0, \"year_built\": null, \"property_type\": \"Land (Development)\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 1200000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"DEVLAND005\"}, \"agent\": {\"name\": \"Agent K\", \"phone\": null, \"email\": null, \"brokerage_name\": \"Development Land Co.\"}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"site_id\": \"DEVLAND005\", \"location\": {\"street\": \"Future Parkway\", \"city\": \"Growthville\", \"state\": \"NC\", \"zip\": \"27513\"}, \"size_acres\": 10.5, \"zoning\": \"Mixed-Use Development\", \"list_price\": 1200000, \"contact\": {\"name\": \"Agent K\", \"brokerage\": \"Development Land Co.\"}}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.rightmove.co.uk/properties/property-87654321\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.rightmove.co.uk/properties/property-87654321\n\nRaw Property Data Snippet:\n{\"rightmove_id\": \"87654321\", \"address\": {\"street\": \"1 The Crescent\", \"town\": \"Bath\", \"county\": \"Somerset\", \"postcode\": \"BA1 2NB\"}, \"bedrooms\": \"4\", \"bathrooms\": \"3\", \"property_type\": \"Semi-Detached\", \"price\": \"£750,000\", \"agent\": {\"name\": \"Bath Estates\", \"telephone\": \"01225 789012\"}, \"key_features\": [\"Garden\", \"Parking\"], \"url\": \"https://www.rightmove.co.uk/properties/property-87654321\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.rightmove.co.uk/properties/property-87654321\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"1 The Crescent\", \"city\": \"Bath\", \"state_province\": \"Somerset\", \"postal_code\": \"BA1 2NB\", \"country\": \"UK\"}, \"features\": {\"bedrooms\": 4, \"bathrooms\": 3.0, \"area_sqft\": null, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Semi-Detached House\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 750000.0, \"currency\": \"GBP\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://www.rightmove.co.uk/properties/property-87654321\", \"mls_id\": \"87654321\"}, \"agent\": {\"name\": \"Bath Estates\", \"phone\": \"01225 789012\", \"email\": null, \"brokerage_name\": \"Bath Estates\"}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"rightmove_id\": \"87654321\", \"address\": {\"street\": \"1 The Crescent\", \"town\": \"Bath\", \"county\": \"Somerset\", \"postcode\": \"BA1 2NB\"}, \"bedrooms\": \"4\", \"bathrooms\": \"3\", \"property_type\": \"Semi-Detached\", \"price\": \"£750,000\", \"agent\": {\"name\": \"Bath Estates\", \"telephone\": \"01225 789012\"}, \"key_features\": [\"Garden\", \"Parking\"], \"url\": \"https://www.rightmove.co.uk/properties/property-87654321\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: file\n- Set 'original_source_identifier' to: industrial_properties.xlsx-row-12\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: file\nOriginal Source Identifier: industrial_properties.xlsx-row-12\n\nRaw Property Data Snippet:\n{\"Ref ID\": \"IND-XL-R12\", \"Location\": \"700 Warehouse Rd, Chicago, IL 60608\", \"Property Type\": \"Warehouse\", \"Size (sq ft)\": 25000, \"Sale Price USD\": 2800000, \"Year Built\": 1995, \"Contact Person\": \"Agent L\", \"Contact Phone\": \"312-555-2468\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"industrial_properties.xlsx-row-12\", \"original_source_type\": \"file\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"700 Warehouse Rd\", \"city\": \"Chicago\", \"state_province\": \"IL\", \"postal_code\": \"60608\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": null, \"bathrooms\": null, \"area_sqft\": 25000.0, \"lot_size_sqft\": null, \"year_built\": 1995, \"property_type\": \"Warehouse\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 2800000.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"IND-XL-R12\"}, \"agent\": {\"name\": \"Agent L\", \"phone\": \"312-555-2468\", \"email\": null, \"brokerage_name\": null}, \"description\": null, \"image_urls\": null, \"raw_source_data\": {\"Ref ID\": \"IND-XL-R12\", \"Location\": \"700 Warehouse Rd, Chicago, IL 60608\", \"Property Type\": \"Warehouse\", \"Size (sq ft)\": 25000, \"Sale Price USD\": 2800000, \"Year Built\": 1995, \"Contact Person\": \"Agent L\", \"Contact Phone\": \"312-555-2468\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: scrape\n- Set 'original_source_identifier' to: https://www.zoopla.co.uk/for-sale/details/property-in-edinburg/987654\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api\", \"file\", \"scrape\").\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: scrape\nOriginal Source Identifier: https://www.zoopla.co.uk/for-sale/details/property-in-edinburg/987654\n\nRaw Property Data Snippet:\n{\"id\": \"987654\", \"location_text\": \"EH1, Edinburgh\", \"property_type\": \"Flat\", \"beds\": \"2\", \"baths\": \"1\", \"price\": \"Offers Over £250,000\", \"agent_details\": {\"branch_name\": \"Edinburgh Properties\"}, \"description\": \"Attractive 2-bedroom flat in the heart of the city.\", \"listing_url\": \"https://www.zoopla.co.uk/for-sale/details/property-in-edinburg/987654\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://www.zoopla.co.uk/for-sale/details/property-in-edinburg/987654\", \"original_source_type\": \"scrape\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": null, \"city\": \"Edinburgh\", \"state_province\": null, \"postal_code\": \"EH1\", \"country\": \"UK\"}, \"features\": {\"bedrooms\": 2, \"bathrooms\": 1.0, \"area_sqft\": null, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Apartment\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 250000.0, \"currency\": \"GBP\", \"listing_status\": null, \"listing_type\": \"Sale\", \"listed_date\": null, \"last_updated_date\": null, \"listing_url\": \"https://www.zoopla.co.uk/for-sale/details/property-in-edinburg/987654\", \"mls_id\": \"987654\"}, \"agent\": {\"name\": null, \"phone\": null, \"email\": null, \"brokerage_name\": \"Edinburgh Properties\"}, \"description\": \"Attractive 2-bedroom flat in the heart of the city.\", \"image_urls\": null, \"raw_source_data\": {\"id\": \"987654\", \"location_text\": \"EH1, Edinburgh\", \"property_type\": \"Flat\", \"beds\": \"2\", \"baths\": \"1\", \"price\": \"Offers Over £250,000\", \"agent_details\": {\"branch_name\": \"Edinburgh Properties\"}, \"description\": \"Attractive 2-bedroom flat in the heart of the city.\", \"listing_url\": \"https://www.zoopla.co.uk/for-sale/details/property-in-edinburg/987654\"}}"}]}]}
|
|
{"contents":[{"role":"user","parts":[{"text":"You are a data mapping assistant. Your task is to map the provided 'Raw Property Data Snippet' to the 'CanonicalRecord Schema Definition'. \n\nRULES:\n- Your entire response must be ONLY the mapped JSON object string, conforming strictly to the CanonicalRecord schema.\n- Do NOT include any explanatory text before or after the JSON object.\n- Set 'original_source_type' to: api\n- Set 'original_source_identifier' to: https://apiforrent.example.com/unit/U7E8W9\n- Set 'entity_type' to 'RealEstateListing'.\n- For the 'raw_source_data' field in the output, include the exact 'Raw Property Data Snippet' you were given.\n- Perform necessary data transformations (e.g., string prices to numbers, parse dates, extract address components).\n- If information for a canonical field is not present, use `null` or omit optional fields as per the schema.\n\nCanonicalRecord Schema Definition:\n{\"title\": \"CanonicalRecord\", \"type\": \"object\", \"properties\": {\"canonical_record_id\": {\"type\": \"string\", \"description\": \"Unique identifier for this canonical record.\", \"examples\": [\"cre-SOME_UUID\"]}, \"original_source_identifier\": {\"type\": \"string\", \"description\": \"Identifier of the original source (e.g., URL, filename + row index).\"}, \"original_source_type\": {\"type\": \"string\", \"enum\": [\"api\", \"file\", \"scrape\"], \"description\": \"Type of the original source adapter ('api', 'file', 'scrape').\"}, \"entity_type\": {\"type\": \"string\", \"enum\": [\"RealEstateListing\", \"NewsArticle\", \"Other\"], \"default\": \"Other\", \"description\": \"Classification of the source entity.\"}, \"mapping_model_version\": {\"type\": [\"string\", \"null\"], \"description\": \"Version identifier of the ML model used for mapping.\"}, \"mapping_timestamp\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"Timestamp (UTC) when the mapping was performed.\"}, \"address\": {\"title\": \"Address\", \"type\": [\"object\", \"null\"], \"properties\": {\"street_address\": {\"type\": [\"string\", \"null\"]}, \"city\": {\"type\": [\"string\", \"null\"]}, \"state_province\": {\"type\": [\"string\", \"null\"]}, \"postal_code\": {\"type\": [\"string\", \"null\"]}, \"country\": {\"type\": [\"string\", \"null\"], \"default\": \"USA\"}}}, \"features\": {\"title\": \"Features\", \"type\": [\"object\", \"null\"], \"properties\": {\"bedrooms\": {\"type\": [\"integer\", \"null\"]}, \"bathrooms\": {\"type\": [\"number\", \"null\"]}, \"area_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Area in square feet.\"}, \"lot_size_sqft\": {\"type\": [\"number\", \"null\"], \"description\": \"Lot size in square feet.\"}, \"year_built\": {\"type\": [\"integer\", \"null\"]}, \"property_type\": {\"type\": [\"string\", \"null\"]}, \"has_pool\": {\"type\": [\"boolean\", \"null\"]}, \"has_garage\": {\"type\": [\"boolean\", \"null\"]}, \"stories\": {\"type\": [\"integer\", \"null\"]}}}, \"listing\": {\"title\": \"Listing Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"price\": {\"type\": [\"number\", \"null\"]}, \"currency\": {\"type\": [\"string\", \"null\", \"string\"], \"default\": \"USD\"}, \"listing_status\": {\"type\": [\"string\", \"null\"]}, \"listing_type\": {\"type\": [\"string\", \"null\"]}, \"listed_date\": {\"type\": [\"string\", \"null\", \"string\"], \"format\": \"date-time\"}, \"last_updated_date\": {\"type\": [\"string\", \"null\", \"string\"]}, \"listing_url\": {\"type\": [\"string\", \"null\", \"string\"]}, \"mls_id\": {\"type\": [\"string\", \"null\"]}}}, \"agent\": {\"title\": \"Agent Information\", \"type\": [\"object\", \"null\"], \"properties\": {\"name\": {\"type\": [\"string\", \"null\"]}, \"phone\": {\"type\": [\"string\", \"null\"]}, \"email\": {\"type\": [\"string\", \"null\"]}, \"brokerage_name\": {\"type\": [\"string\", \"null\"]}}}, \"description\": {\"type\": [\"string\", \"null\"]}, \"image_urls\": {\"type\": [\"array\", \"null\"], \"items\": {\"type\": \"string\", \"format\": \"uri\"}}, \"raw_source_data\": {\"type\": [\"object\", \"null\"], \"description\": \"Original source data record (JSON representation).\"}}, \"required\": [\"original_source_identifier\", \"original_source_type\", \"entity_type\"]}\n\nOriginal Source Type: api\nOriginal Source Identifier: https://apiforrent.example.com/unit/U7E8W9\n\nRaw Property Data Snippet:\n{\"unit_ref\": \"U7E8W9\", \"street\": \"200 Rental Ave\", \"city\": \"Seattle\", \"state\": \"WA\", \"zip\": \"98109\", \"beds\": 2, \"baths\": 1, \"area_sqft\": 950, \"rent\": 2200, \"available_on\": \"2024-05-01\", \"features\": [\"Dishwasher\", \"Hardwood Floors\"], \"contact_phone\": \"206-555-4321\"}"}]},{"role":"model","parts":[{"text":"{\"canonical_record_id\": \"cre-GENERATED-UUID\", \"original_source_identifier\": \"https://apiforrent.example.com/unit/U7E8W9\", \"original_source_type\": \"api\", \"entity_type\": \"RealEstateListing\", \"mapping_model_version\": null, \"mapping_timestamp\": null, \"address\": {\"street_address\": \"200 Rental Ave\", \"city\": \"Seattle\", \"state_province\": \"WA\", \"postal_code\": \"98109\", \"country\": \"USA\"}, \"features\": {\"bedrooms\": 2, \"bathrooms\": 1.0, \"area_sqft\": 950.0, \"lot_size_sqft\": null, \"year_built\": null, \"property_type\": \"Apartment\", \"has_pool\": null, \"has_garage\": null, \"stories\": null}, \"listing\": {\"price\": 2200.0, \"currency\": \"USD\", \"listing_status\": null, \"listing_type\": \"Rental\", \"listed_date\": \"2024-05-01T00:00:00Z\", \"last_updated_date\": null, \"listing_url\": null, \"mls_id\": \"U7E8W9\"}, \"agent\": {\"name\": null, \"phone\": \"206-555-4321\", \"email\": null, \"brokerage_name\": null}, \"description\": \"Features: Dishwasher, Hardwood Floors.\", \"image_urls\": null, \"raw_source_data\": {\"unit_ref\": \"U7E8W9\", \"street\": \"200 Rental Ave\", \"city\": \"Seattle\", \"state\": \"WA\", \"zip\": \"98109\", \"beds\": 2, \"baths\": 1, \"area_sqft\": 950, \"rent\": 2200, \"available_on\": \"2024-05-01\", \"features\": [\"Dishwasher\", \"Hardwood Floors\"], \"contact_phone\": \"206-555-4321\"}}"}]}]} |