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|@json|fromjson),"lang":"es"}],"hasAdditionalType":[.category.value,"TouristAttractionSite"],"hasDescription":[{"object":({"shortDescription":[{"value":(.shortDescription.value|@json|fromjson),"lang":"es"}]}+if(.description.value?!=null and .description.value!="")then{"longDescription":[{"value":(.description.value|@json|fromjson),"lang":"es"}]}else{}end)}],"hasLocation":[{"object":{"autonomousCommunity":"Comunidad de Madrid","country":"España","municipality":"Las Rozas de Madrid","postalCode":"28290","province":"Madrid","streetAddress":(first(.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(any(.refSeeAlso.value[]?;has("telephone") or has("infoUrl")))then{"hasContactPoint":[{"object":(({}+(if any(.refSeeAlso.value[]?;has("telephone"))then{"telephone":(first(.refSeeAlso.value[]|select(has("telephone"))|.telephone))}else{}end)+(if any(.refSeeAlso.value[]?;has("infoUrl"))then{"url":(first(.refSeeAlso.value[]|select(has("infoUrl"))|.infoUrl))}else{}end))) }]}else{}end
null