Stored Transformation
Stored transformation detail
Inspect version history, edit inputs, and save a new version without overwriting prior records.
{"externalId":.id,"name":[{"value":.name.value,"lang":"es"}],"hasAdditionalType":[.category.value,"TouristAttractionSite"],"hasDescription":[{"object":({"shortDescription":[{"value":.shortDescription.value,"lang":"es"}]}+if(.description.value?!=null and .description.value!="")then{"longDescription":[{"value":.description.value,"lang":"es"}]}else{}end)}],"hasLocation":[{"object":{"autonomousCommunity":"Comunidad de Madrid","country":"España","municipality":"Las Rozas de Madrid","postalCode":"28290","province":"Madrid","streetAddress":(.refSeeAlso.value[]|select(has("address"))|.address)}}],"hasMultimedia":{"object":({"mainImage":.filesAttachments.value[0]}+if(.filesAttachments.value|length)>1 then{"secondaryImage":.filesAttachments.value[1:]}else{}end)}}+if((.refSeeAlso.value[]?|has("telephone"))or(.refSeeAlso.value[]?|has("infoUrl")))then{"hasContactPoint":[{"object":({}+ (if(.refSeeAlso.value[]?|has("telephone"))then{"telephone":(.refSeeAlso.value[]|select(has("telephone"))|.telephone)}else{}end)+ (if(.refSeeAlso.value[]?|has("infoUrl"))then{"url":(.refSeeAlso.value[]|select(has("infoUrl"))|.infoUrl)}else{}end))}]}else{}end
null