| 1 | <?xml version="1.0"?> |
|---|
| 2 | <rdf:RDF |
|---|
| 3 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|---|
| 4 | xmlns:dc="http://purl.org/dc/elements/1.1/" |
|---|
| 5 | xmlns:dcterms="http://purl.org/dc/terms/" |
|---|
| 6 | xmlns:foaf="http://xmlns.com/foaf/0.1/" |
|---|
| 7 | xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/" |
|---|
| 8 | xmlns:chefmoz="http://chefmoz.org/rdf/elements/1.0/" |
|---|
| 9 | xmlns:wn="http://xmlns.com/wordnet/1.6/" |
|---|
| 10 | xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" |
|---|
| 11 | xmlns:os="http://downlode.org/Code/RDF/Ordnance_Survey/schema/1#" |
|---|
| 12 | xmlns:owl="http://www.w3.org/2002/07/owl#" |
|---|
| 13 | xmlns="http://www.w3.org/2000/10/swap/pim/contact#" |
|---|
| 14 | > |
|---|
| 15 | |
|---|
| 16 | <rdf:Description rdf:about=""> |
|---|
| 17 | <dc:title>[% site_name %]: [% node_name %]</dc:title> |
|---|
| 18 | <dc:date>[% timestamp %]</dc:date> |
|---|
| 19 | <dcterms:modified>[% timestamp %]</dcterms:modified> |
|---|
| 20 | |
|---|
| 21 | [% FOREACH contributor = contributors.values %] |
|---|
| 22 | <dc:contributor> |
|---|
| 23 | <foaf:Person rdf:ID="[% contributor.user_id %]"> |
|---|
| 24 | <foaf:nick>[% contributor.username %]</foaf:nick> |
|---|
| 25 | </foaf:Person> |
|---|
| 26 | </dc:contributor> |
|---|
| 27 | [% END %] |
|---|
| 28 | |
|---|
| 29 | <dc:source rdf:resource="[% node_uri %]" /> |
|---|
| 30 | <wiki:version>[% version %]</wiki:version> |
|---|
| 31 | <foaf:topic rdf:resource="#obj" /> |
|---|
| 32 | </rdf:Description> |
|---|
| 33 | |
|---|
| 34 | <[% obj_type %] rdf:ID="obj" dc:title="[% node_name %]"> |
|---|
| 35 | |
|---|
| 36 | [% IF summary %] |
|---|
| 37 | <dc:description>[% summary %]</dc:description> |
|---|
| 38 | [% END %] |
|---|
| 39 | |
|---|
| 40 | [% IF categories %] |
|---|
| 41 | <!-- categories --> |
|---|
| 42 | |
|---|
| 43 | [% FOREACH category = categories %] |
|---|
| 44 | <dc:subject>[% category.name %]</dc:subject> |
|---|
| 45 | [% END %] |
|---|
| 46 | [% END %] |
|---|
| 47 | |
|---|
| 48 | [% IF is_geospatial %] |
|---|
| 49 | <!-- address and geospatial data --> |
|---|
| 50 | |
|---|
| 51 | [% IF address %] |
|---|
| 52 | <address>[% address %]</address> |
|---|
| 53 | [% END %] |
|---|
| 54 | [% IF city %] |
|---|
| 55 | <city>[% city %]</city> |
|---|
| 56 | [% END %] |
|---|
| 57 | [% IF postcode %] |
|---|
| 58 | <postalCode>[% postcode %]</postalCode> |
|---|
| 59 | [% END %] |
|---|
| 60 | [% IF country %] |
|---|
| 61 | <country>[% country %]</country> |
|---|
| 62 | [% END %] |
|---|
| 63 | |
|---|
| 64 | [% FOREACH locale = locales %] |
|---|
| 65 | <foaf:based_near> |
|---|
| 66 | <wn:Neighborhood rdf:ID="[% locale.id %]"> |
|---|
| 67 | <dc:title>[% locale.name %]</dc:title> |
|---|
| 68 | </wn:Neighborhood> |
|---|
| 69 | </foaf:based_near> |
|---|
| 70 | [% END %] |
|---|
| 71 | |
|---|
| 72 | [% IF wgs84_lat AND wgs84_long %] |
|---|
| 73 | <geo:lat>[% wgs84_lat %]</geo:lat> |
|---|
| 74 | <geo:long>[% wgs84_long %]</geo:long> |
|---|
| 75 | [% END %] |
|---|
| 76 | |
|---|
| 77 | [% IF os_x AND os_y %] |
|---|
| 78 | <os:x>[% os_x %]</os:x> |
|---|
| 79 | <os:y>[% os_y %]</os:y> |
|---|
| 80 | [% END %] |
|---|
| 81 | |
|---|
| 82 | [% END %] |
|---|
| 83 | |
|---|
| 84 | [% IF phone OR fax OR website OR opening_hours_text %] |
|---|
| 85 | <!-- contact information --> |
|---|
| 86 | [% IF phone %] |
|---|
| 87 | <phone>[% phone %]</phone> |
|---|
| 88 | [% END %] |
|---|
| 89 | [% IF fax %] |
|---|
| 90 | <fax>[% fax %]</fax> |
|---|
| 91 | [% END %] |
|---|
| 92 | [% IF website %] |
|---|
| 93 | <foaf:homepage rdf:resource="[% website %]" /> |
|---|
| 94 | [% END %] |
|---|
| 95 | [% IF opening_hours_text %] |
|---|
| 96 | <chefmoz:Hours>[% opening_hours_text %]</chefmoz:Hours> |
|---|
| 97 | [% END %] |
|---|
| 98 | [% END %] |
|---|
| 99 | |
|---|
| 100 | [% IF redirect %] |
|---|
| 101 | <owl:sameAs rdf:resource="[% redirect %]" /> |
|---|
| 102 | [% END %] |
|---|
| 103 | |
|---|
| 104 | </[% obj_type %]> |
|---|
| 105 | </rdf:RDF> |
|---|