[%- USE CGI -%] [% IF criterion %] [% CGI.escapeHTML(criterion.name) %] [% ELSE %] RDF index [% END %] [%- FOREACH node = nodes %] [% metadata = node.node_data.metadata %] [%- IF metadata.os_x.list.first || metadata.os_y.list.first || metadata.latitude.list.first || metadata.longitude.list.first || metadata.locale.list.first || metadata.address.list.first || metadata.postcode.list.first || metadata.map_link.list.first -%] [% nodeType = 'geo:SpatialThing' %] [%- ELSE -%] [% nodeType = 'rdf:Description' %] [%- END -%] <[% nodeType %] rdf:about="[% full_cgi_url %]?id=[% node.param %];format=rdf#obj"> [% node.name %] [% IF metadata.latitude.list.first AND metadata.longitude.list.first %] [% metadata.latitude.list.first %] [% metadata.longitude.list.first %] [% END %] [% full_cgi_url %]?[% node.param %] [% END %]