Stored Transformation
Stored transformation detail
Inspect version history, edit inputs, and save a new version without overwriting prior records.
{ "name": .name.value, "hasAdditionalType": .category.value, "hasDescription": { "shortDescription": .shortDescription.value, "longDescription": .description.value, "keyword": .extraInfo.value }, "hasLocation": { "autonomousCommunity": "Comunidad de Madrid", "country": "España", "locality": "Las Rozas de Madrid", "postalCode": "28290", "province": "Madrid" } }
{
"hasAdditionalType": "TrailRoute",
"hasDescription": {
"keyword": "Encinar",
"longDescription": "Comenzamos",
"shortDescription": "Dificultad: baja"
},
"hasLocation": {
"autonomousCommunity": "Comunidad de Madrid",
"country": "Espa\u00f1a",
"locality": "Las Rozas de Madrid",
"postalCode": "28290",
"province": "Madrid"
},
"name": "Majalacabra"
}
Trace Details
{
"attempts": [
{
"attempt_number": 1,
"compile_ok": true,
"error_message": null,
"execution_ok": true,
"jq_expression": ".category.value",
"schema_valid": true,
"stage": "field",
"target_field": "hasAdditionalType",
"used_hints": true
},
{
"attempt_number": 1,
"compile_ok": true,
"error_message": "[{\u0027object\u0027: {\u0027autonomousCommunity\u0027: \u0027Comunidad de Madrid\u0027, \u0027country\u0027: \u0027Espa\u00f1a\u0027, \u0027municipality\u0027: \u0027Las Rozas de Madrid\u0027, \u0027postalCode\u0027: \u002728290\u0027, \u0027province\u0027: \u0027Madrid\u0027}}] is not of type \u0027object\u0027",
"execution_ok": true,
"jq_expression": "[{object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}}]",
"schema_valid": false,
"stage": "field",
"target_field": "hasLocation",
"used_hints": true
},
{
"attempt_number": 2,
"compile_ok": true,
"error_message": null,
"execution_ok": true,
"jq_expression": "{autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}",
"schema_valid": true,
"stage": "field",
"target_field": "hasLocation",
"used_hints": true
},
{
"attempt_number": 1,
"compile_ok": true,
"error_message": "[{\u0027value\u0027: \u0027Majalacabra\u0027, \u0027lang\u0027: \u0027es\u0027}] is not of type \u0027string\u0027",
"execution_ok": true,
"jq_expression": ".name.value | [{value: ., lang: \"es\"}]",
"schema_valid": false,
"stage": "field",
"target_field": "name",
"used_hints": true
},
{
"attempt_number": 2,
"compile_ok": true,
"error_message": null,
"execution_ok": true,
"jq_expression": ".name.value",
"schema_valid": true,
"stage": "field",
"target_field": "name",
"used_hints": true
},
{
"attempt_number": 1,
"compile_ok": true,
"error_message": null,
"execution_ok": true,
"jq_expression": " . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] }",
"schema_valid": true,
"stage": "field",
"target_field": "offersAdditionalTourismResourceService",
"used_hints": true
},
{
"attempt_number": 1,
"compile_ok": false,
"error_message": "jq: error: syntax error, unexpected as, expecting \u0027}\u0027 at \u003ctop-level\u003e, line 1, column 262:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^\njq: error: May need parentheses around object key expression at \u003ctop-level\u003e, line 1, column 3:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\njq: error: syntax error, unexpected \u0027}\u0027, expecting end of file at \u003ctop-level\u003e, line 1, column 762:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^\njq: 3 compile errors",
"execution_ok": false,
"jq_expression": "{ \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }",
"schema_valid": false,
"stage": "global",
"target_field": null,
"used_hints": true
},
{
"attempt_number": 2,
"compile_ok": true,
"error_message": "[{\u0027object\u0027: {\u0027shortDescription\u0027: [{\u0027value\u0027: \u0027Dificultad: baja\u0027, \u0027lang\u0027: \u0027es\u0027}], \u0027longDescription\u0027: [{\u0027value\u0027: \u0027Comenzamos\u0027, \u0027lang\u0027: \u0027es\u0027}], \u0027keyword\u0027: [{\u0027value\u0027: \u0027Encinar\u0027, \u0027lang\u0027: \u0027es\u0027}]}}] is not of type \u0027object\u0027; [{\u0027object\u0027: {\u0027autonomousCommunity\u0027: \u0027Comunidad de Madrid\u0027, \u0027country\u0027: \u0027Espa\u00f1a\u0027, \u0027municipality\u0027: \u0027Las Rozas de Madrid\u0027, \u0027postalCode\u0027: \u002728290\u0027, \u0027province\u0027: \u0027Madrid\u0027}}] is not of type \u0027object\u0027; [{\u0027value\u0027: \u0027Majalacabra\u0027, \u0027lang\u0027: \u0027es\u0027}] is not of type \u0027string\u0027",
"execution_ok": true,
"jq_expression": "{ \"name\": [ { \"value\": .name.value, \"lang\": \"es\" } ], \"hasAdditionalType\": .category.value, \"hasDescription\": [ { \"object\": { \"shortDescription\": [ { \"value\": .shortDescription.value, \"lang\": \"es\" } ], \"longDescription\": [ { \"value\": .description.value, \"lang\": \"es\" } ], \"keyword\": [ { \"value\": .extraInfo.value, \"lang\": \"es\" } ] } } ], \"hasLocation\": [ { \"object\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"municipality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } } ] }",
"schema_valid": false,
"stage": "global",
"target_field": null,
"used_hints": true
},
{
"attempt_number": 3,
"compile_ok": true,
"error_message": null,
"execution_ok": true,
"jq_expression": "{ \"name\": .name.value, \"hasAdditionalType\": .category.value, \"hasDescription\": { \"shortDescription\": .shortDescription.value, \"longDescription\": .description.value, \"keyword\": .extraInfo.value }, \"hasLocation\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"locality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } }",
"schema_valid": true,
"stage": "global",
"target_field": null,
"used_hints": true
}
],
"events": [
{
"payload": {
"field_name": "capacity",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": null,
"confidence": 0.0,
"identified": false,
"reasoning": "No source field matches target capacity"
},
"prompt_payload": {
"field_name": "capacity",
"field_schema": {
"type": "integer"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":false,\"candidate_source_path\":null,\"reasoning\":\"No source field matches target capacity\",\"confidence\":0.0}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:44:40.452344+00:00"
},
{
"payload": {
"field_name": "hasAdditionalInformation",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": null,
"confidence": 0.0,
"identified": false,
"reasoning": "No source field semantically matches the target hasAdditionalInformation"
},
"prompt_payload": {
"field_name": "hasAdditionalInformation",
"field_schema": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":false,\"candidate_source_path\":null,\"reasoning\":\"No source field semantically matches the target hasAdditionalInformation\",\"confidence\":0.0}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:44:45.234618+00:00"
},
{
"payload": {
"field_name": "hasAdditionalType",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": "category.value",
"confidence": 0.95,
"identified": true,
"reasoning": "category.value semantically matches hasAdditionalType"
},
"prompt_payload": {
"field_name": "hasAdditionalType",
"field_schema": {
"type": "string"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":true,\"candidate_source_path\":\"category.value\",\"reasoning\":\"category.value semantically matches hasAdditionalType\",\"confidence\":0.95}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:44:48.463964+00:00"
},
{
"payload": {
"field_name": "hasDescription",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": null,
"confidence": 0.2,
"identified": false,
"reasoning": "No single source path matches the object structure of hasDescription"
},
"prompt_payload": {
"field_name": "hasDescription",
"field_schema": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":false,\"candidate_source_path\":null,\"reasoning\":\"No single source path matches the object structure of hasDescription\",\"confidence\":0.2}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:45:07.145759+00:00"
},
{
"payload": {
"field_name": "hasLocation",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": "location",
"confidence": 0.75,
"identified": true,
"reasoning": "The source field \u0027location\u0027 contains geographic information that semantically matches the target \u0027hasLocation\u0027 field."
},
"prompt_payload": {
"field_name": "hasLocation",
"field_schema": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":true,\"candidate_source_path\":\"location\",\"reasoning\":\"The source field \u0027location\u0027 contains geographic information that semantically matches the target \u0027hasLocation\u0027 field.\",\"confidence\":0.75}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:45:12.360075+00:00"
},
{
"payload": {
"field_name": "name",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": "name.value",
"confidence": 0.95,
"identified": true,
"reasoning": "Source field name.value semantically matches target name"
},
"prompt_payload": {
"field_name": "name",
"field_schema": {
"type": "string"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":true,\"candidate_source_path\":\"name.value\",\"reasoning\":\"Source field name.value semantically matches target name\",\"confidence\":0.95}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:45:16.524484+00:00"
},
{
"payload": {
"field_name": "offersAdditionalTourismResourceService",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": "offersAdditionalTourismResourceService",
"confidence": 0.99,
"identified": true,
"reasoning": "Direct field name match"
},
"prompt_payload": {
"field_name": "offersAdditionalTourismResourceService",
"field_schema": {
"additionalProperties": true,
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":true,\"candidate_source_path\":\"offersAdditionalTourismResourceService\",\"reasoning\":\"Direct field name match\",\"confidence\":0.99}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:45:21.171850+00:00"
},
{
"payload": {
"field_name": "paymentMethod",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"match_result": {
"candidate_source_path": null,
"confidence": 0.0,
"identified": false,
"reasoning": "No source field matches paymentMethod"
},
"prompt_payload": {
"field_name": "paymentMethod",
"field_schema": {
"additionalProperties": true,
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"input_summary": {
"path_count": 42,
"paths": [
"alternateName",
"alternateName.metadata",
"alternateName.type",
"alternateName.value",
"category",
"category.metadata",
"category.type",
"category.value",
"dataProvider",
"dataProvider.metadata",
"dataProvider.type",
"dataProvider.value",
"description",
"description.metadata",
"description.type",
"description.value",
"extraInfo",
"extraInfo.metadata",
"extraInfo.type",
"extraInfo.value",
"id",
"location",
"location.metadata",
"location.type",
"location.value",
"location.value.coordinates",
"location.value.coordinates[0]",
"location.value.coordinates[1]",
"location.value.type",
"name",
"name.metadata",
"name.type",
"name.value",
"shortDescription",
"shortDescription.metadata",
"shortDescription.type",
"shortDescription.value",
"source",
"source.metadata",
"source.type",
"source.value",
"type"
],
"root_type": "dict"
},
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"required": false,
"task": "match"
},
"response": "{\"identified\":false,\"candidate_source_path\":null,\"reasoning\":\"No source field matches paymentMethod\",\"confidence\":0.0}",
"system_prompt": "You perform semantic field matching between a target schema field and source JSON paths. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like match, result, mapping, output, or data. Use exactly these keys: \"identified\", \"candidate_source_path\", \"reasoning\", \"confidence\". \"identified\" must be a JSON boolean. \"candidate_source_path\" must be a string path or null. \"reasoning\" must be a short string. \"confidence\" must be a JSON number between 0.0 and 1.0. If no reliable match exists, return identified=false, candidate_source_path=null, a brief reasoning string, and confidence=0.0. Example valid output: {\"identified\":true,\"candidate_source_path\":\"datetime\",\"reasoning\":\"The source field semantically matches the target date.\",\"confidence\":0.92}",
"used_hints": true
},
"stage": "semantic_match",
"timestamp": "2026-05-21T08:45:24.910369+00:00"
},
{
"payload": {
"field_name": "hasAdditionalType",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"jq_expression": ".category.value",
"prompt_payload": {
"candidate_source_path": "category.value",
"field_name": "hasAdditionalType",
"field_schema": {
"type": "string"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"source_fragment": "TrailRoute",
"source_json": {
"alternateName": {
"metadata": {},
"type": "string",
"value": "LR-01"
},
"category": {
"metadata": {},
"type": "string",
"value": "TrailRoute"
},
"dataProvider": {
"metadata": {},
"type": "string",
"value": "nec-ccoc"
},
"description": {
"metadata": {},
"type": "string",
"value": "Comenzamos"
},
"extraInfo": {
"metadata": {},
"type": "string",
"value": "Encinar"
},
"id": "trailroute_lr-01",
"location": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"name": {
"metadata": {},
"type": "string",
"value": "Majalacabra"
},
"shortDescription": {
"metadata": {},
"type": "string",
"value": "Dificultad: baja"
},
"source": {
"metadata": {},
"type": "string",
"value": "portal-randev6"
},
"type": "PointOfInterest"
},
"task": "synthesize"
},
"response": "{\"jq_expression\":\".category.value\"}",
"system_prompt": "You generate a jq expression for one target field. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"jq_expression\": string}. \"jq_expression\" must be a JSON string containing only the jq expression for the target field. Use candidate_source_path as the primary source location, verify it against source_json, and use source_fragment as the focused local value. Do not return explanations or extra keys. Example valid output: {\"jq_expression\":\".datetime\"}",
"used_hints": true
},
"stage": "jq_synthesis",
"timestamp": "2026-05-21T08:45:28.513467+00:00"
},
{
"payload": {
"field_name": "hasLocation",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"jq_expression": "[{object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}}]",
"prompt_payload": {
"candidate_source_path": "location",
"field_name": "hasLocation",
"field_schema": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"source_fragment": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"source_json": {
"alternateName": {
"metadata": {},
"type": "string",
"value": "LR-01"
},
"category": {
"metadata": {},
"type": "string",
"value": "TrailRoute"
},
"dataProvider": {
"metadata": {},
"type": "string",
"value": "nec-ccoc"
},
"description": {
"metadata": {},
"type": "string",
"value": "Comenzamos"
},
"extraInfo": {
"metadata": {},
"type": "string",
"value": "Encinar"
},
"id": "trailroute_lr-01",
"location": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"name": {
"metadata": {},
"type": "string",
"value": "Majalacabra"
},
"shortDescription": {
"metadata": {},
"type": "string",
"value": "Dificultad: baja"
},
"source": {
"metadata": {},
"type": "string",
"value": "portal-randev6"
},
"type": "PointOfInterest"
},
"task": "synthesize"
},
"response": "{\"jq_expression\":\"[{object: {autonomousCommunity: \\\"Comunidad de Madrid\\\", country: \\\"Espa\u00f1a\\\", municipality: \\\"Las Rozas de Madrid\\\", postalCode: \\\"28290\\\", province: \\\"Madrid\\\"}}]\"}",
"system_prompt": "You generate a jq expression for one target field. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"jq_expression\": string}. \"jq_expression\" must be a JSON string containing only the jq expression for the target field. Use candidate_source_path as the primary source location, verify it against source_json, and use source_fragment as the focused local value. Do not return explanations or extra keys. Example valid output: {\"jq_expression\":\".datetime\"}",
"used_hints": true
},
"stage": "jq_synthesis",
"timestamp": "2026-05-21T08:45:35.058349+00:00"
},
{
"payload": {
"field_name": "hasLocation",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"prompt_payload": {
"attempt_history": [
{
"attempt_number": 1,
"compile_ok": true,
"error_message": "[{\u0027object\u0027: {\u0027autonomousCommunity\u0027: \u0027Comunidad de Madrid\u0027, \u0027country\u0027: \u0027Espa\u00f1a\u0027, \u0027municipality\u0027: \u0027Las Rozas de Madrid\u0027, \u0027postalCode\u0027: \u002728290\u0027, \u0027province\u0027: \u0027Madrid\u0027}}] is not of type \u0027object\u0027",
"execution_ok": true,
"jq_expression": "[{object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}}]",
"schema_valid": false,
"stage": "field",
"target_field": "hasLocation",
"used_hints": true
}
],
"candidate_source_path": "location",
"error_message": "[{\u0027object\u0027: {\u0027autonomousCommunity\u0027: \u0027Comunidad de Madrid\u0027, \u0027country\u0027: \u0027Espa\u00f1a\u0027, \u0027municipality\u0027: \u0027Las Rozas de Madrid\u0027, \u0027postalCode\u0027: \u002728290\u0027, \u0027province\u0027: \u0027Madrid\u0027}}] is not of type \u0027object\u0027",
"field_name": "hasLocation",
"field_schema": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"previous_expression": "[{object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}}]",
"source_fragment": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"stage": "field",
"task": "repair"
},
"repaired_jq_expression": "{autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}",
"response": "{\"repaired_jq_expression\":\"{autonomousCommunity: \\\"Comunidad de Madrid\\\", country: \\\"Espa\u00f1a\\\", locality: \\\"Las Rozas de Madrid\\\", postalCode: \\\"28290\\\", province: \\\"Madrid\\\"}\"}",
"stage_name": "field",
"system_prompt": "You repair a jq expression after a compile, execution, or validation error. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"repaired_jq_expression\": string}. \"repaired_jq_expression\" must be a JSON string containing only the repaired jq expression. Do not return explanations or extra keys. Example valid output: {\"repaired_jq_expression\":\".payload.customer.name\"}",
"used_hints": true
},
"stage": "jq_repair",
"timestamp": "2026-05-21T08:45:43.219988+00:00"
},
{
"payload": {
"field_name": "name",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"jq_expression": ".name.value | [{value: ., lang: \"es\"}]",
"prompt_payload": {
"candidate_source_path": "name.value",
"field_name": "name",
"field_schema": {
"type": "string"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"source_fragment": "Majalacabra",
"source_json": {
"alternateName": {
"metadata": {},
"type": "string",
"value": "LR-01"
},
"category": {
"metadata": {},
"type": "string",
"value": "TrailRoute"
},
"dataProvider": {
"metadata": {},
"type": "string",
"value": "nec-ccoc"
},
"description": {
"metadata": {},
"type": "string",
"value": "Comenzamos"
},
"extraInfo": {
"metadata": {},
"type": "string",
"value": "Encinar"
},
"id": "trailroute_lr-01",
"location": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"name": {
"metadata": {},
"type": "string",
"value": "Majalacabra"
},
"shortDescription": {
"metadata": {},
"type": "string",
"value": "Dificultad: baja"
},
"source": {
"metadata": {},
"type": "string",
"value": "portal-randev6"
},
"type": "PointOfInterest"
},
"task": "synthesize"
},
"response": "{\"jq_expression\":\".name.value | [{value: ., lang: \\\"es\\\"}]\"}",
"system_prompt": "You generate a jq expression for one target field. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"jq_expression\": string}. \"jq_expression\" must be a JSON string containing only the jq expression for the target field. Use candidate_source_path as the primary source location, verify it against source_json, and use source_fragment as the focused local value. Do not return explanations or extra keys. Example valid output: {\"jq_expression\":\".datetime\"}",
"used_hints": true
},
"stage": "jq_synthesis",
"timestamp": "2026-05-21T08:45:49.886340+00:00"
},
{
"payload": {
"field_name": "name",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"prompt_payload": {
"attempt_history": [
{
"attempt_number": 1,
"compile_ok": true,
"error_message": "[{\u0027value\u0027: \u0027Majalacabra\u0027, \u0027lang\u0027: \u0027es\u0027}] is not of type \u0027string\u0027",
"execution_ok": true,
"jq_expression": ".name.value | [{value: ., lang: \"es\"}]",
"schema_valid": false,
"stage": "field",
"target_field": "name",
"used_hints": true
}
],
"candidate_source_path": "name.value",
"error_message": "[{\u0027value\u0027: \u0027Majalacabra\u0027, \u0027lang\u0027: \u0027es\u0027}] is not of type \u0027string\u0027",
"field_name": "name",
"field_schema": {
"type": "string"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"previous_expression": ".name.value | [{value: ., lang: \"es\"}]",
"source_fragment": "Majalacabra",
"stage": "field",
"task": "repair"
},
"repaired_jq_expression": ".name.value",
"response": "{\"repaired_jq_expression\":\".name.value\"}",
"stage_name": "field",
"system_prompt": "You repair a jq expression after a compile, execution, or validation error. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"repaired_jq_expression\": string}. \"repaired_jq_expression\" must be a JSON string containing only the repaired jq expression. Do not return explanations or extra keys. Example valid output: {\"repaired_jq_expression\":\".payload.customer.name\"}",
"used_hints": true
},
"stage": "jq_repair",
"timestamp": "2026-05-21T08:45:55.139249+00:00"
},
{
"payload": {
"field_name": "offersAdditionalTourismResourceService",
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"jq_expression": " . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] }",
"prompt_payload": {
"candidate_source_path": "offersAdditionalTourismResourceService",
"field_name": "offersAdditionalTourismResourceService",
"field_schema": {
"additionalProperties": true,
"type": "object"
},
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"source_fragment": {
"alternateName": {
"metadata": {},
"type": "string",
"value": "LR-01"
},
"category": {
"metadata": {},
"type": "string",
"value": "TrailRoute"
},
"dataProvider": {
"metadata": {},
"type": "string",
"value": "nec-ccoc"
},
"description": {
"metadata": {},
"type": "string",
"value": "Comenzamos"
},
"extraInfo": {
"metadata": {},
"type": "string",
"value": "Encinar"
},
"id": "trailroute_lr-01",
"location": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"name": {
"metadata": {},
"type": "string",
"value": "Majalacabra"
},
"shortDescription": {
"metadata": {},
"type": "string",
"value": "Dificultad: baja"
},
"source": {
"metadata": {},
"type": "string",
"value": "portal-randev6"
},
"type": "PointOfInterest"
},
"source_json": {
"alternateName": {
"metadata": {},
"type": "string",
"value": "LR-01"
},
"category": {
"metadata": {},
"type": "string",
"value": "TrailRoute"
},
"dataProvider": {
"metadata": {},
"type": "string",
"value": "nec-ccoc"
},
"description": {
"metadata": {},
"type": "string",
"value": "Comenzamos"
},
"extraInfo": {
"metadata": {},
"type": "string",
"value": "Encinar"
},
"id": "trailroute_lr-01",
"location": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"name": {
"metadata": {},
"type": "string",
"value": "Majalacabra"
},
"shortDescription": {
"metadata": {},
"type": "string",
"value": "Dificultad: baja"
},
"source": {
"metadata": {},
"type": "string",
"value": "portal-randev6"
},
"type": "PointOfInterest"
},
"task": "synthesize"
},
"response": "{\"jq_expression\":\" . as $src | { name: [ {value: $src.name.value, lang: \\\"es\\\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \\\"es\\\"} ], longDescription: [ {value: $src.description.value, lang: \\\"es\\\"} ], keyword: [ {value: $src.extraInfo.value, lang: \\\"es\\\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \\\"Comunidad de Madrid\\\", country: \\\"Espa\u00f1a\\\", municipality: \\\"Las Rozas de Madrid\\\", postalCode: \\\"28290\\\", province: \\\"Madrid\\\"}} ] }\"}",
"system_prompt": "You generate a jq expression for one target field. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"jq_expression\": string}. \"jq_expression\" must be a JSON string containing only the jq expression for the target field. Use candidate_source_path as the primary source location, verify it against source_json, and use source_fragment as the focused local value. Do not return explanations or extra keys. Example valid output: {\"jq_expression\":\".datetime\"}",
"used_hints": true
},
"stage": "jq_synthesis",
"timestamp": "2026-05-21T08:46:11.211237+00:00"
},
{
"payload": {
"field_name": null,
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"prompt_payload": {
"attempt_history": [
{
"attempt_number": 1,
"compile_ok": false,
"error_message": "jq: error: syntax error, unexpected as, expecting \u0027}\u0027 at \u003ctop-level\u003e, line 1, column 262:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^\njq: error: May need parentheses around object key expression at \u003ctop-level\u003e, line 1, column 3:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\njq: error: syntax error, unexpected \u0027}\u0027, expecting end of file at \u003ctop-level\u003e, line 1, column 762:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^\njq: 3 compile errors",
"execution_ok": false,
"jq_expression": "{ \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }",
"schema_valid": false,
"stage": "global",
"target_field": null,
"used_hints": true
}
],
"candidate_source_path": null,
"error_message": "jq: error: syntax error, unexpected as, expecting \u0027}\u0027 at \u003ctop-level\u003e, line 1, column 262:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^\njq: error: May need parentheses around object key expression at \u003ctop-level\u003e, line 1, column 3:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\njq: error: syntax error, unexpected \u0027}\u0027, expecting end of file at \u003ctop-level\u003e, line 1, column 762:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^\njq: 3 compile errors",
"field_name": null,
"field_schema": null,
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"previous_expression": "{ \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }",
"source_fragment": {
"alternateName": {
"metadata": {},
"type": "string",
"value": "LR-01"
},
"category": {
"metadata": {},
"type": "string",
"value": "TrailRoute"
},
"dataProvider": {
"metadata": {},
"type": "string",
"value": "nec-ccoc"
},
"description": {
"metadata": {},
"type": "string",
"value": "Comenzamos"
},
"extraInfo": {
"metadata": {},
"type": "string",
"value": "Encinar"
},
"id": "trailroute_lr-01",
"location": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"name": {
"metadata": {},
"type": "string",
"value": "Majalacabra"
},
"shortDescription": {
"metadata": {},
"type": "string",
"value": "Dificultad: baja"
},
"source": {
"metadata": {},
"type": "string",
"value": "portal-randev6"
},
"type": "PointOfInterest"
},
"stage": "global",
"task": "repair"
},
"repaired_jq_expression": "{ \"name\": [ { \"value\": .name.value, \"lang\": \"es\" } ], \"hasAdditionalType\": .category.value, \"hasDescription\": [ { \"object\": { \"shortDescription\": [ { \"value\": .shortDescription.value, \"lang\": \"es\" } ], \"longDescription\": [ { \"value\": .description.value, \"lang\": \"es\" } ], \"keyword\": [ { \"value\": .extraInfo.value, \"lang\": \"es\" } ] } } ], \"hasLocation\": [ { \"object\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"municipality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } } ] }",
"response": "{\"repaired_jq_expression\":\"{ \\\"name\\\": [ { \\\"value\\\": .name.value, \\\"lang\\\": \\\"es\\\" } ], \\\"hasAdditionalType\\\": .category.value, \\\"hasDescription\\\": [ { \\\"object\\\": { \\\"shortDescription\\\": [ { \\\"value\\\": .shortDescription.value, \\\"lang\\\": \\\"es\\\" } ], \\\"longDescription\\\": [ { \\\"value\\\": .description.value, \\\"lang\\\": \\\"es\\\" } ], \\\"keyword\\\": [ { \\\"value\\\": .extraInfo.value, \\\"lang\\\": \\\"es\\\" } ] } } ], \\\"hasLocation\\\": [ { \\\"object\\\": { \\\"autonomousCommunity\\\": \\\"Comunidad de Madrid\\\", \\\"country\\\": \\\"Espa\u00f1a\\\", \\\"municipality\\\": \\\"Las Rozas de Madrid\\\", \\\"postalCode\\\": \\\"28290\\\", \\\"province\\\": \\\"Madrid\\\" } } ] }\"}",
"stage_name": "global",
"system_prompt": "You repair a jq expression after a compile, execution, or validation error. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"repaired_jq_expression\": string}. \"repaired_jq_expression\" must be a JSON string containing only the repaired jq expression. Do not return explanations or extra keys. Example valid output: {\"repaired_jq_expression\":\".payload.customer.name\"}",
"used_hints": true
},
"stage": "jq_repair",
"timestamp": "2026-05-21T08:46:34.051203+00:00"
},
{
"payload": {
"field_name": null,
"hint_hash": "0952c6720fcb0867cc012a48fbf27e0e670de44721980f5b3e20a7efaba2a081",
"prompt_payload": {
"attempt_history": [
{
"attempt_number": 1,
"compile_ok": false,
"error_message": "jq: error: syntax error, unexpected as, expecting \u0027}\u0027 at \u003ctop-level\u003e, line 1, column 262:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^\njq: error: May need parentheses around object key expression at \u003ctop-level\u003e, line 1, column 3:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\njq: error: syntax error, unexpected \u0027}\u0027, expecting end of file at \u003ctop-level\u003e, line 1, column 762:\n { \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }\n ^\njq: 3 compile errors",
"execution_ok": false,
"jq_expression": "{ \"hasAdditionalType\": .category.value, \"hasLocation\": {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}, \"name\": .name.value, \"offersAdditionalTourismResourceService\": . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] } }",
"schema_valid": false,
"stage": "global",
"target_field": null,
"used_hints": true
},
{
"attempt_number": 2,
"compile_ok": true,
"error_message": "[{\u0027object\u0027: {\u0027shortDescription\u0027: [{\u0027value\u0027: \u0027Dificultad: baja\u0027, \u0027lang\u0027: \u0027es\u0027}], \u0027longDescription\u0027: [{\u0027value\u0027: \u0027Comenzamos\u0027, \u0027lang\u0027: \u0027es\u0027}], \u0027keyword\u0027: [{\u0027value\u0027: \u0027Encinar\u0027, \u0027lang\u0027: \u0027es\u0027}]}}] is not of type \u0027object\u0027; [{\u0027object\u0027: {\u0027autonomousCommunity\u0027: \u0027Comunidad de Madrid\u0027, \u0027country\u0027: \u0027Espa\u00f1a\u0027, \u0027municipality\u0027: \u0027Las Rozas de Madrid\u0027, \u0027postalCode\u0027: \u002728290\u0027, \u0027province\u0027: \u0027Madrid\u0027}}] is not of type \u0027object\u0027; [{\u0027value\u0027: \u0027Majalacabra\u0027, \u0027lang\u0027: \u0027es\u0027}] is not of type \u0027string\u0027",
"execution_ok": true,
"jq_expression": "{ \"name\": [ { \"value\": .name.value, \"lang\": \"es\" } ], \"hasAdditionalType\": .category.value, \"hasDescription\": [ { \"object\": { \"shortDescription\": [ { \"value\": .shortDescription.value, \"lang\": \"es\" } ], \"longDescription\": [ { \"value\": .description.value, \"lang\": \"es\" } ], \"keyword\": [ { \"value\": .extraInfo.value, \"lang\": \"es\" } ] } } ], \"hasLocation\": [ { \"object\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"municipality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } } ] }",
"schema_valid": false,
"stage": "global",
"target_field": null,
"used_hints": true
}
],
"candidate_source_path": null,
"error_message": "[{\u0027object\u0027: {\u0027shortDescription\u0027: [{\u0027value\u0027: \u0027Dificultad: baja\u0027, \u0027lang\u0027: \u0027es\u0027}], \u0027longDescription\u0027: [{\u0027value\u0027: \u0027Comenzamos\u0027, \u0027lang\u0027: \u0027es\u0027}], \u0027keyword\u0027: [{\u0027value\u0027: \u0027Encinar\u0027, \u0027lang\u0027: \u0027es\u0027}]}}] is not of type \u0027object\u0027; [{\u0027object\u0027: {\u0027autonomousCommunity\u0027: \u0027Comunidad de Madrid\u0027, \u0027country\u0027: \u0027Espa\u00f1a\u0027, \u0027municipality\u0027: \u0027Las Rozas de Madrid\u0027, \u0027postalCode\u0027: \u002728290\u0027, \u0027province\u0027: \u0027Madrid\u0027}}] is not of type \u0027object\u0027; [{\u0027value\u0027: \u0027Majalacabra\u0027, \u0027lang\u0027: \u0027es\u0027}] is not of type \u0027string\u0027",
"field_name": null,
"field_schema": null,
"hints": "Map source fields to target as follows:\r\n\r\nUse name.value wrapped as [{ value: \u003cname.value\u003e, lang: \"es\" }] as name\r\nUse category.value as hasAdditionalType (string)\r\nUse shortDescription.value wrapped as [{ value: \u003cshortDescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.shortDescription\r\nUse description.value wrapped as [{ value: \u003cdescription.value\u003e, lang: \"es\" }] as hasDescription[0].object.longDescription\r\nUse extraInfo.value wrapped as [{ value: \u003cextraInfo.value\u003e, lang: \"es\" }] as hasDescription[0].object.keyword\r\nHardcode hasLocation as [{ object: { autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\" } }]\r\nDo NOT include lat or long fields anywhere, they are not valid in the target schema.\r\nDo NOT wrap the result in input or object, output the fields directly at the top level.",
"output_schema": {
"$id": "https://ontologia.segittur.es/turismo/schema/Trail.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"description": "Road, path or path that is characterized by being very small and narrow and that is generally found in rural areas",
"properties": {
"capacity": {
"type": "integer"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasAdditionalType": {
"type": "string"
},
"hasDescription": {
"additionalProperties": true,
"description": "Provides concise, summarized information about a specific item, such as a product, service, or entity. This block usually contains key details and highlights that describe the main features, functions, benefits or highlights of the item in question.",
"properties": {
"keyword": {
"type": "string"
},
"longDescription": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"description": "Physical space, with or without an administrative or analytical delimitation, in which a visitor can spend the night.",
"properties": {
"destinationType": {
"additionalProperties": true,
"type": "object"
},
"hasAcknowledgement": {
"additionalProperties": true,
"description": "Achievements or distinctions awarded to people, companies or products for meeting certain standards or specific criteria. These recognitions may include certifications, ratings, awards, or other types of honors that recognize quality, outstanding performance, compliance, or excellence in a particular field.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Acknowledgement",
"type": "object"
},
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasContactPoint": {
"additionalProperties": true,
"description": "Data necessary to establish communication with a person or entity. This information allows other individuals or companies to directly and effectively contact the person or entity in question.",
"properties": {
"app": {
"type": "string"
},
"email": {
"type": "string"
},
"instantMessagingService": {
"type": "string"
},
"telephone": {
"type": "string"
},
"url": {
"type": "string"
}
},
"title": "Contact point",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"hasOpeningHours": {
"additionalProperties": true,
"description": "Period of time during which a business, establishment or service is available to serve customers or carry out commercial activities.",
"properties": {
"closesAt": {
"type": "string"
},
"dayOfTheWeek": {
"additionalProperties": true,
"properties": {},
"title": "Day of the week",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"open24Hours": {
"type": "boolean"
},
"opensAt": {
"type": "string"
},
"temporaryClosure": {
"type": "boolean"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Opening Hours",
"type": "object"
},
"hasRulesAndTips": {
"additionalProperties": true,
"description": "Set of principles, standards and recommendations established by a tourist destination with the aim of guaranteeing a safe, respectful and satisfactory experience for both tourists and the local community and the environment.",
"properties": {
"adversity": {
"additionalProperties": true,
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
},
"validFrom": {
"type": "string"
},
"validTo": {
"type": "string"
}
},
"title": "Rules and Tips",
"type": "object"
},
"hasSocialMediaProfile": {
"additionalProperties": true,
"description": "Individual or company accounts created on digital platforms designed for social interaction. They allow people and organizations to share information, publish content, interact with other users and build an online presence.",
"properties": {
"socialMediaPlatform": {
"additionalProperties": true,
"type": "object"
},
"socialMediaUser": {
"type": "string"
}
},
"title": "Social media profile",
"type": "object"
},
"name": {
"type": "string"
},
"offers": {
"additionalProperties": true,
"type": "object"
},
"offersTourismDestinationService": {
"additionalProperties": true,
"type": "object"
},
"relatedTo": {
"additionalProperties": true,
"description": "Concepto general que agrupa los servicios tur\u00edsticos, recursos tur\u00edsticos, destinos tur\u00edsticos y organizaciones tur\u00edsticas",
"properties": {
"hasAdditionalInformation": {
"additionalProperties": true,
"description": "Additional details, data or explanations that complement or expand the main information provided. It is extra information that can provide clarification, context, or specific details on a given topic.",
"properties": {
"accessTip": {
"type": "string"
},
"conditions": {
"type": "string"
},
"curiosities": {
"type": "string"
},
"frequentlyAskedQuestion": {
"additionalProperties": true,
"description": "This class allows representing frequently asked questions and their corresponding answers",
"properties": {
"answer": {
"type": "string"
},
"question": {
"type": "string"
}
},
"title": "Frequently Asked Question",
"type": "object"
},
"remarks": {
"type": "string"
}
},
"title": "Additional information",
"type": "object"
},
"hasDescription": {
"additionalProperties": true,
"type": "object"
},
"hasMultimedia": {
"additionalProperties": true,
"description": "Visual or interactive content used to capture the user\u0027s attention, convey information in a more visual and attractive way, and provide an interactive experience.",
"properties": {
"audio": {
"type": "string"
},
"logo": {
"type": "string"
},
"mainImage": {
"type": "string"
},
"secondaryImage": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"video": {
"type": "string"
}
},
"title": "Multimedia",
"type": "object"
},
"name": {
"type": "string"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism Entity",
"type": "object"
},
"relatedTourismDestination": {
"additionalProperties": true,
"type": "object"
},
"touristType": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Tourism destination",
"type": "object"
},
"shortDescription": {
"type": "string"
}
},
"title": "Description",
"type": "object"
},
"hasLocation": {
"additionalProperties": true,
"description": "Provides information about the physical location of a business, establishment or organization.",
"properties": {
"autonomousCommunity": {
"type": "string"
},
"country": {
"type": "string"
},
"county": {
"type": "string"
},
"locality": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"province": {
"type": "string"
},
"streetAddress": {
"type": "string"
}
},
"title": "Location",
"type": "object"
},
"name": {
"type": "string"
},
"offersAdditionalTourismResourceService": {
"additionalProperties": true,
"type": "object"
},
"paymentMethod": {
"additionalProperties": true,
"type": "object"
}
},
"title": "Trail",
"type": "object"
},
"previous_expression": "{ \"name\": [ { \"value\": .name.value, \"lang\": \"es\" } ], \"hasAdditionalType\": .category.value, \"hasDescription\": [ { \"object\": { \"shortDescription\": [ { \"value\": .shortDescription.value, \"lang\": \"es\" } ], \"longDescription\": [ { \"value\": .description.value, \"lang\": \"es\" } ], \"keyword\": [ { \"value\": .extraInfo.value, \"lang\": \"es\" } ] } } ], \"hasLocation\": [ { \"object\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"municipality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } } ] }",
"source_fragment": {
"alternateName": {
"metadata": {},
"type": "string",
"value": "LR-01"
},
"category": {
"metadata": {},
"type": "string",
"value": "TrailRoute"
},
"dataProvider": {
"metadata": {},
"type": "string",
"value": "nec-ccoc"
},
"description": {
"metadata": {},
"type": "string",
"value": "Comenzamos"
},
"extraInfo": {
"metadata": {},
"type": "string",
"value": "Encinar"
},
"id": "trailroute_lr-01",
"location": {
"metadata": {},
"type": "geo:json",
"value": {
"coordinates": [
-3.8565638,
40.4845294
],
"type": "Point"
}
},
"name": {
"metadata": {},
"type": "string",
"value": "Majalacabra"
},
"shortDescription": {
"metadata": {},
"type": "string",
"value": "Dificultad: baja"
},
"source": {
"metadata": {},
"type": "string",
"value": "portal-randev6"
},
"type": "PointOfInterest"
},
"stage": "global",
"task": "repair"
},
"repaired_jq_expression": "{ \"name\": .name.value, \"hasAdditionalType\": .category.value, \"hasDescription\": { \"shortDescription\": .shortDescription.value, \"longDescription\": .description.value, \"keyword\": .extraInfo.value }, \"hasLocation\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"locality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } }",
"response": "{\"repaired_jq_expression\":\"{ \\\"name\\\": .name.value, \\\"hasAdditionalType\\\": .category.value, \\\"hasDescription\\\": { \\\"shortDescription\\\": .shortDescription.value, \\\"longDescription\\\": .description.value, \\\"keyword\\\": .extraInfo.value }, \\\"hasLocation\\\": { \\\"autonomousCommunity\\\": \\\"Comunidad de Madrid\\\", \\\"country\\\": \\\"Espa\u00f1a\\\", \\\"locality\\\": \\\"Las Rozas de Madrid\\\", \\\"postalCode\\\": \\\"28290\\\", \\\"province\\\": \\\"Madrid\\\" } }\"}",
"stage_name": "global",
"system_prompt": "You repair a jq expression after a compile, execution, or validation error. Return exactly one flat JSON object and nothing else. Do not wrap the result in markdown. Do not nest the result under keys like result, output, data, or expression. Use exactly this output schema: {\"repaired_jq_expression\": string}. \"repaired_jq_expression\" must be a JSON string containing only the repaired jq expression. Do not return explanations or extra keys. Example valid output: {\"repaired_jq_expression\":\".payload.customer.name\"}",
"used_hints": true
},
"stage": "jq_repair",
"timestamp": "2026-05-21T08:46:47.744920+00:00"
},
{
"payload": {
"field_expressions": {
"hasAdditionalType": ".category.value",
"hasLocation": "{autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", locality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}",
"name": ".name.value",
"offersAdditionalTourismResourceService": " . as $src | { name: [ {value: $src.name.value, lang: \"es\"} ], hasAdditionalType: $src.category.value, hasDescription: [ {object: {shortDescription: [ {value: $src.shortDescription.value, lang: \"es\"} ], longDescription: [ {value: $src.description.value, lang: \"es\"} ], keyword: [ {value: $src.extraInfo.value, lang: \"es\"} ] } } ], hasLocation: [ {object: {autonomousCommunity: \"Comunidad de Madrid\", country: \"Espa\u00f1a\", municipality: \"Las Rozas de Madrid\", postalCode: \"28290\", province: \"Madrid\"}} ] }"
},
"jq_filter": "{ \"name\": .name.value, \"hasAdditionalType\": .category.value, \"hasDescription\": { \"shortDescription\": .shortDescription.value, \"longDescription\": .description.value, \"keyword\": .extraInfo.value }, \"hasLocation\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"locality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } }",
"validation_passed": true
},
"stage": "generation_complete",
"timestamp": "2026-05-21T08:46:47.748107+00:00"
},
{
"payload": {
"jq_filter": "{ \"name\": .name.value, \"hasAdditionalType\": .category.value, \"hasDescription\": { \"shortDescription\": .shortDescription.value, \"longDescription\": .description.value, \"keyword\": .extraInfo.value }, \"hasLocation\": { \"autonomousCommunity\": \"Comunidad de Madrid\", \"country\": \"Espa\u00f1a\", \"locality\": \"Las Rozas de Madrid\", \"postalCode\": \"28290\", \"province\": \"Madrid\" } }",
"output_json": {
"hasAdditionalType": "TrailRoute",
"hasDescription": {
"keyword": "Encinar",
"longDescription": "Comenzamos",
"shortDescription": "Dificultad: baja"
},
"hasLocation": {
"autonomousCommunity": "Comunidad de Madrid",
"country": "Espa\u00f1a",
"locality": "Las Rozas de Madrid",
"postalCode": "28290",
"province": "Madrid"
},
"name": "Majalacabra"
},
"schema_valid": true,
"validation_errors": []
},
"stage": "transform_complete",
"timestamp": "2026-05-21T08:46:47.751083+00:00"
}
],
"run_id": "0cbc7c40-001d-4510-8abe-30882669d9fb"
}