tagcrumbs 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. data/History.txt +5 -0
  2. data/Manifest.txt +79 -56
  3. data/README.rdoc +9 -1
  4. data/Rakefile +2 -1
  5. data/TODO.txt +0 -7
  6. data/config/website.yml +2 -0
  7. data/examples/filter_new.rb +7 -3
  8. data/examples/placemark_new_suggestions.rb +4 -2
  9. data/examples/request_authorization.rb +1 -1
  10. data/examples/tagcrumbs_find.rb +3 -3
  11. data/examples/user.rb +1 -1
  12. data/lib/console.rb +14 -0
  13. data/lib/tagcrumbs.rb +41 -14
  14. data/lib/tagcrumbs/cli.rb +1 -1
  15. data/lib/tagcrumbs/config_store.rb +3 -3
  16. data/lib/tagcrumbs/core_extensions.rb +19 -0
  17. data/lib/tagcrumbs/parsers/json_parser.rb +7 -3
  18. data/lib/tagcrumbs/proxy.rb +6 -3
  19. data/lib/tagcrumbs/requestor.rb +22 -5
  20. data/lib/tagcrumbs/resources/{array.rb → collection.rb} +8 -7
  21. data/lib/tagcrumbs/resources/models/access_token.rb +8 -0
  22. data/lib/tagcrumbs/resources/models/accessors.rb +17 -3
  23. data/lib/tagcrumbs/resources/models/activity.rb +1 -0
  24. data/lib/tagcrumbs/resources/models/application.rb +9 -0
  25. data/lib/tagcrumbs/resources/models/comment.rb +2 -0
  26. data/lib/tagcrumbs/resources/models/email_recommendation.rb +17 -0
  27. data/lib/tagcrumbs/resources/models/favorite.rb +2 -1
  28. data/lib/tagcrumbs/resources/models/filter.rb +2 -2
  29. data/lib/tagcrumbs/resources/models/flag.rb +3 -0
  30. data/lib/tagcrumbs/resources/models/model.rb +8 -7
  31. data/lib/tagcrumbs/resources/models/paragraph.rb +8 -0
  32. data/lib/tagcrumbs/resources/models/picture.rb +4 -4
  33. data/lib/tagcrumbs/resources/models/place.rb +3 -3
  34. data/lib/tagcrumbs/resources/models/placemark.rb +3 -2
  35. data/lib/tagcrumbs/resources/models/profile.rb +0 -1
  36. data/lib/tagcrumbs/resources/models/profile_link.rb +1 -1
  37. data/lib/tagcrumbs/resources/models/root.rb +3 -3
  38. data/lib/tagcrumbs/resources/models/settings.rb +2 -1
  39. data/lib/tagcrumbs/resources/models/tagcrumb.rb +4 -12
  40. data/lib/tagcrumbs/resources/models/user.rb +27 -6
  41. data/lib/tagcrumbs/resources/models/user_recommendation.rb +1 -1
  42. data/lib/tagcrumbs/resources/resource.rb +4 -4
  43. data/script/console +8 -3
  44. data/spec/fixtures_external/README.rdoc +15 -0
  45. data/spec/fixtures_external/json/access_token.json +11 -0
  46. data/spec/{fixtures → fixtures_external/json}/activity.json +32 -25
  47. data/spec/{fixtures → fixtures_external/json}/address.json +22 -25
  48. data/spec/fixtures_external/json/application.json +13 -0
  49. data/spec/{fixtures → fixtures_external/json}/city.json +2 -11
  50. data/spec/{fixtures → fixtures_external/json}/comment.json +51 -44
  51. data/spec/{fixtures → fixtures_external/json}/country.json +1 -4
  52. data/spec/fixtures_external/json/email_recommendation.json +286 -0
  53. data/spec/{fixtures → fixtures_external/json}/fanship.json +30 -30
  54. data/spec/{fixtures → fixtures_external/json}/favorite.json +45 -47
  55. data/spec/{fixtures → fixtures_external/json}/filter.json +30 -42
  56. data/spec/{fixtures → fixtures_external/json}/friendship.json +30 -30
  57. data/spec/fixtures_external/json/geoname.json +18 -0
  58. data/spec/{fixtures → fixtures_external/json}/link.json +41 -44
  59. data/spec/{fixtures → fixtures_external/json}/location.json +21 -31
  60. data/spec/fixtures_external/json/paragraph.json +12 -0
  61. data/spec/fixtures_external/json/picture.json +129 -0
  62. data/spec/fixtures_external/json/picture_upload.json +9 -0
  63. data/spec/{fixtures → fixtures_external/json}/placemark.json +136 -142
  64. data/spec/fixtures_external/json/placemarks.json +851 -0
  65. data/spec/{fixtures → fixtures_external/json}/profile.json +65 -94
  66. data/spec/fixtures_external/json/profile_link.json +123 -0
  67. data/spec/{fixtures → fixtures_external/json}/root.json +17 -21
  68. data/spec/{fixtures → fixtures_external/json}/settings.json +26 -19
  69. data/spec/{fixtures → fixtures_external/json}/state.json +2 -8
  70. data/spec/{fixtures → fixtures_external/json}/subscription.json +41 -44
  71. data/spec/fixtures_external/json/suggestions.json +302 -0
  72. data/spec/{fixtures → fixtures_external/json}/tag.json +0 -0
  73. data/spec/{fixtures → fixtures_external/json}/user.json +44 -20
  74. data/spec/{fixtures → fixtures_external/json}/user_recommendation.json +52 -55
  75. data/spec/fixtures_external/json/validation_errors.json +6 -0
  76. data/spec/fixtures_external/kml/network_link.kml +24 -0
  77. data/spec/fixtures_external/kml/tagcrumbs.kml +64 -0
  78. data/spec/fixtures_external/rdf/placemark.rdf +56 -0
  79. data/spec/fixtures_external/rss/tagcrumbs.rss +24 -0
  80. data/spec/fixtures_external/xml/access_token.xml +5 -0
  81. data/spec/fixtures_external/xml/activity.xml +62 -0
  82. data/spec/fixtures_external/xml/address.xml +51 -0
  83. data/spec/fixtures_external/xml/application.xml +5 -0
  84. data/spec/fixtures_external/xml/city.xml +27 -0
  85. data/spec/fixtures_external/xml/comment.xml +81 -0
  86. data/spec/fixtures_external/xml/country.xml +10 -0
  87. data/spec/fixtures_external/xml/email_recommendation.xml +78 -0
  88. data/spec/fixtures_external/xml/fanship.xml +49 -0
  89. data/spec/fixtures_external/xml/favorite.xml +97 -0
  90. data/spec/fixtures_external/xml/filter.xml +68 -0
  91. data/spec/fixtures_external/xml/friendship.xml +49 -0
  92. data/spec/fixtures_external/xml/geoname.xml +6 -0
  93. data/spec/fixtures_external/xml/link.xml +78 -0
  94. data/spec/fixtures_external/xml/location.xml +58 -0
  95. data/spec/fixtures_external/xml/paragraph.xml +8 -0
  96. data/spec/fixtures_external/xml/picture.xml +36 -0
  97. data/spec/fixtures_external/xml/picture_upload.xml +153 -0
  98. data/spec/fixtures_external/xml/placemark.xml +54 -0
  99. data/spec/fixtures_external/xml/placemarks.xml +336 -0
  100. data/spec/fixtures_external/xml/profile.xml +77 -0
  101. data/spec/fixtures_external/xml/profile_link.xml +34 -0
  102. data/spec/fixtures_external/xml/root.xml +12 -0
  103. data/spec/fixtures_external/xml/settings.xml +42 -0
  104. data/spec/fixtures_external/xml/state.xml +19 -0
  105. data/spec/fixtures_external/xml/subscription.xml +76 -0
  106. data/spec/fixtures_external/xml/suggestions.xml +106 -0
  107. data/spec/{fixtures → fixtures_external/xml}/tag.xml +2 -2
  108. data/spec/fixtures_external/xml/user.xml +37 -0
  109. data/spec/fixtures_external/xml/user_recommendation.xml +94 -0
  110. data/spec/fixtures_external/xml/validation_errors.xml +5 -0
  111. data/spec/spec_helper.rb +12 -2
  112. data/spec/tagcrumbs/requestor_spec.rb +2 -2
  113. data/spec/tagcrumbs/resources/array_spec.rb +38 -38
  114. data/spec/tagcrumbs/resources/models/access_token_spec.rb +16 -0
  115. data/spec/tagcrumbs/resources/models/accessors_spec.rb +2 -2
  116. data/spec/tagcrumbs/resources/models/activity_spec.rb +5 -1
  117. data/spec/tagcrumbs/resources/models/address_spec.rb +1 -1
  118. data/spec/tagcrumbs/resources/models/application_spec.rb +17 -0
  119. data/spec/tagcrumbs/resources/models/city_spec.rb +2 -5
  120. data/spec/tagcrumbs/resources/models/comment_spec.rb +8 -2
  121. data/spec/tagcrumbs/resources/models/country_spec.rb +2 -4
  122. data/spec/tagcrumbs/resources/models/email_recommendation_spec.rb +31 -0
  123. data/spec/tagcrumbs/resources/models/fanship_spec.rb +1 -1
  124. data/spec/tagcrumbs/resources/models/favorite_spec.rb +5 -1
  125. data/spec/tagcrumbs/resources/models/filter_spec.rb +3 -4
  126. data/spec/tagcrumbs/resources/models/friendship_spec.rb +1 -1
  127. data/spec/tagcrumbs/resources/models/geoname_spec.rb +1 -1
  128. data/spec/tagcrumbs/resources/models/link_spec.rb +1 -1
  129. data/spec/tagcrumbs/resources/models/location_spec.rb +1 -1
  130. data/spec/tagcrumbs/resources/models/model_spec.rb +20 -3
  131. data/spec/tagcrumbs/resources/models/paragraph_spec.rb +21 -0
  132. data/spec/tagcrumbs/resources/models/picture_spec.rb +13 -21
  133. data/spec/tagcrumbs/resources/models/place_spec.rb +3 -3
  134. data/spec/tagcrumbs/resources/models/placemark_spec.rb +11 -9
  135. data/spec/tagcrumbs/resources/models/profile_link_spec.rb +6 -12
  136. data/spec/tagcrumbs/resources/models/profile_spec.rb +5 -12
  137. data/spec/tagcrumbs/resources/models/root_spec.rb +15 -19
  138. data/spec/tagcrumbs/resources/models/settings_spec.rb +3 -1
  139. data/spec/tagcrumbs/resources/models/state_spec.rb +2 -5
  140. data/spec/tagcrumbs/resources/models/subscription_spec.rb +1 -1
  141. data/spec/tagcrumbs/resources/models/suggestions_spec.rb +7 -7
  142. data/spec/tagcrumbs/resources/models/tag_spec.rb +1 -1
  143. data/spec/tagcrumbs/resources/models/tagcrumb_spec.rb +3 -11
  144. data/spec/tagcrumbs/resources/models/user_recommendation_spec.rb +1 -1
  145. data/spec/tagcrumbs/resources/models/user_spec.rb +35 -27
  146. data/spec/tagcrumbs/resources/resource_spec.rb +3 -3
  147. data/spec/tagcrumbs_spec.rb +7 -7
  148. data/tagcrumbs.gemspec +2 -2
  149. metadata +82 -58
  150. data/examples/tagcrumbs_search.rb +0 -7
  151. data/lib/tagcrumbs/validations.rb +0 -301
  152. data/spec/fixtures/activity.xml +0 -66
  153. data/spec/fixtures/address.xml +0 -58
  154. data/spec/fixtures/city.xml +0 -34
  155. data/spec/fixtures/comment.xml +0 -87
  156. data/spec/fixtures/country.xml +0 -13
  157. data/spec/fixtures/fanship.xml +0 -54
  158. data/spec/fixtures/favorite.xml +0 -109
  159. data/spec/fixtures/filter.xml +0 -80
  160. data/spec/fixtures/friendship.xml +0 -54
  161. data/spec/fixtures/geoname.json +0 -18
  162. data/spec/fixtures/geoname.xml +0 -6
  163. data/spec/fixtures/link.xml +0 -88
  164. data/spec/fixtures/location.xml +0 -71
  165. data/spec/fixtures/picture.json +0 -154
  166. data/spec/fixtures/picture.xml +0 -49
  167. data/spec/fixtures/placemark.xml +0 -58
  168. data/spec/fixtures/placemarks.json +0 -887
  169. data/spec/fixtures/placemarks.xml +0 -348
  170. data/spec/fixtures/profile.xml +0 -100
  171. data/spec/fixtures/profile_link.json +0 -156
  172. data/spec/fixtures/profile_link.xml +0 -49
  173. data/spec/fixtures/root.xml +0 -14
  174. data/spec/fixtures/settings.xml +0 -45
  175. data/spec/fixtures/state.xml +0 -23
  176. data/spec/fixtures/subscription.xml +0 -86
  177. data/spec/fixtures/suggestions.json +0 -1877
  178. data/spec/fixtures/suggestions.xml +0 -724
  179. data/spec/fixtures/user.xml +0 -31
  180. data/spec/fixtures/user_recommendation.xml +0 -106
  181. data/spec/fixtures/validation_errors.json +0 -5
  182. data/spec/fixtures/validation_errors.xml +0 -5
  183. data/spec/tagcrumbs/validations_spec.rb +0 -27
@@ -2,7 +2,7 @@
2
2
  "filter": {
3
3
  "tagcrumbs": {
4
4
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters/filter-name/tagcrumbs.json",
5
- "@type": "array"
5
+ "@type": "Collection"
6
6
  },
7
7
  "city": {
8
8
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-berlin/cities/berlin.json",
@@ -22,9 +22,6 @@
22
22
  "$": 52.5166667
23
23
  }
24
24
  },
25
- "permalink": {
26
- "$": "berlin"
27
- },
28
25
  "name": {
29
26
  "$": "Berlin"
30
27
  },
@@ -47,16 +44,13 @@
47
44
  "$": 52.5
48
45
  }
49
46
  },
50
- "permalink": {
51
- "$": "land-berlin"
52
- },
53
47
  "name": {
54
48
  "$": "Berlin"
55
49
  },
56
50
  "@type": "State",
57
51
  "cities": {
58
52
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-berlin/cities.json",
59
- "@type": "array"
53
+ "@type": "Collection"
60
54
  },
61
55
  "country": {
62
56
  "@xlink:href": "http://www.tagcrumbs.com/places/germany.json",
@@ -76,16 +70,13 @@
76
70
  "$": 51.5
77
71
  }
78
72
  },
79
- "permalink": {
80
- "$": "germany"
81
- },
82
73
  "name": {
83
74
  "$": "Deutschland"
84
75
  },
85
76
  "@type": "Country",
86
77
  "states": {
87
78
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states.json",
88
- "@type": "array"
79
+ "@type": "Collection"
89
80
  }
90
81
  }
91
82
  }
@@ -95,29 +86,26 @@
95
86
  "@type": "timestamp",
96
87
  "$": "2008-10-03T09:38:23+02:00"
97
88
  },
98
- "permalink": {
99
- "$": "filter-name"
100
- },
101
89
  "user": {
102
90
  "tagcrumbs_fans": {
103
91
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
104
- "@type": "array"
92
+ "@type": "Collection"
105
93
  },
106
94
  "tags": {
107
95
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
108
- "@type": "array"
96
+ "@type": "Collection"
109
97
  },
110
98
  "activities": {
111
99
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
112
- "@type": "array"
100
+ "@type": "Collection"
113
101
  },
114
102
  "tagcrumbs": {
115
103
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
116
- "@type": "array"
104
+ "@type": "Collection"
117
105
  },
118
106
  "subscriptions": {
119
107
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
120
- "@type": "array"
108
+ "@type": "Collection"
121
109
  },
122
110
  "profile": {
123
111
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -129,7 +117,7 @@
129
117
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
130
118
  "places": {
131
119
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
132
- "@type": "array"
120
+ "@type": "Collection"
133
121
  },
134
122
  "picture": {
135
123
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -137,15 +125,15 @@
137
125
  },
138
126
  "comments": {
139
127
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
140
- "@type": "array"
128
+ "@type": "Collection"
141
129
  },
142
130
  "fanships": {
143
131
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
144
- "@type": "array"
132
+ "@type": "Collection"
145
133
  },
146
134
  "favorites": {
147
135
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
148
- "@type": "array"
136
+ "@type": "Collection"
149
137
  },
150
138
  "settings": {
151
139
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -157,16 +145,16 @@
157
145
  },
158
146
  "placemarks": {
159
147
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
160
- "@type": "array"
148
+ "@type": "Collection"
161
149
  },
162
150
  "@type": "User",
163
151
  "profile_links": {
164
152
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
165
- "@type": "array"
153
+ "@type": "Collection"
166
154
  },
167
155
  "links": {
168
156
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
169
- "@type": "array"
157
+ "@type": "Collection"
170
158
  },
171
159
  "suggestions": {
172
160
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -178,27 +166,27 @@
178
166
  },
179
167
  "flags": {
180
168
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
181
- "@type": "array"
169
+ "@type": "Collection"
182
170
  },
183
171
  "filters": {
184
172
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
185
- "@type": "array"
173
+ "@type": "Collection"
186
174
  },
187
175
  "tagcrumbs_friends": {
188
176
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
189
- "@type": "array"
177
+ "@type": "Collection"
190
178
  },
191
179
  "received_recommendations": {
192
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
193
- "@type": "array"
180
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
181
+ "@type": "Collection"
194
182
  },
195
183
  "recommendations": {
196
184
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
197
- "@type": "array"
185
+ "@type": "Collection"
198
186
  },
199
187
  "friendships": {
200
188
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
201
- "@type": "array"
189
+ "@type": "Collection"
202
190
  }
203
191
  },
204
192
  "middle_of_nowhere": {
@@ -227,17 +215,17 @@
227
215
  "tag_list": {
228
216
  "$": ""
229
217
  },
230
- "within": {
218
+ "range": {
231
219
  "$": null,
232
220
  "@nil": true
233
221
  },
234
222
  "since": {
235
- "@type": "timestamp",
236
- "$": "2009-05-13T12:11:00+02:00"
237
- },
238
- "until": {
239
- "@type": "timestamp",
240
- "$": "2009-05-19T11:30:00+02:00"
241
- }
223
+ "@type": "timestamp",
224
+ "$": "2009-05-13T12:11:00+02:00"
225
+ },
226
+ "until": {
227
+ "@type": "timestamp",
228
+ "$": "2009-05-19T11:30:00+02:00"
229
+ }
242
230
  }
243
231
  }
@@ -8,19 +8,19 @@
8
8
  "friend": {
9
9
  "tagcrumbs_fans": {
10
10
  "@xlink:href": "http://www.tagcrumbs.com/peter/fans/tagcrumbs.json",
11
- "@type": "array"
11
+ "@type": "Collection"
12
12
  },
13
13
  "tags": {
14
14
  "@xlink:href": "http://www.tagcrumbs.com/peter/tags.json",
15
- "@type": "array"
15
+ "@type": "Collection"
16
16
  },
17
17
  "activities": {
18
18
  "@xlink:href": "http://www.tagcrumbs.com/peter/activities.json",
19
- "@type": "array"
19
+ "@type": "Collection"
20
20
  },
21
21
  "tagcrumbs": {
22
22
  "@xlink:href": "http://www.tagcrumbs.com/peter/tagcrumbs.json",
23
- "@type": "array"
23
+ "@type": "Collection"
24
24
  },
25
25
  "profile": {
26
26
  "@xlink:href": "http://www.tagcrumbs.com/peter/profile.json",
@@ -32,7 +32,7 @@
32
32
  "@xlink:href": "http://www.tagcrumbs.com/peter.json",
33
33
  "places": {
34
34
  "@xlink:href": "http://www.tagcrumbs.com/peter/places.json",
35
- "@type": "array"
35
+ "@type": "Collection"
36
36
  },
37
37
  "picture": {
38
38
  "@xlink:href": "http://www.tagcrumbs.com/peter/profile/picture.json",
@@ -40,11 +40,11 @@
40
40
  },
41
41
  "fanships": {
42
42
  "@xlink:href": "http://www.tagcrumbs.com/peter/fans.json",
43
- "@type": "array"
43
+ "@type": "Collection"
44
44
  },
45
45
  "favorites": {
46
46
  "@xlink:href": "http://www.tagcrumbs.com/peter/favorites.json",
47
- "@type": "array"
47
+ "@type": "Collection"
48
48
  },
49
49
  "created_at": {
50
50
  "@type": "timestamp",
@@ -52,42 +52,42 @@
52
52
  },
53
53
  "placemarks": {
54
54
  "@xlink:href": "http://www.tagcrumbs.com/peter/placemarks.json",
55
- "@type": "array"
55
+ "@type": "Collection"
56
56
  },
57
57
  "@type": "User",
58
58
  "profile_links": {
59
59
  "@xlink:href": "http://www.tagcrumbs.com/peter/profile/links.json",
60
- "@type": "array"
60
+ "@type": "Collection"
61
61
  },
62
62
  "tagcrumbs_friends": {
63
63
  "@xlink:href": "http://www.tagcrumbs.com/peter/friends/tagcrumbs.json",
64
- "@type": "array"
64
+ "@type": "Collection"
65
65
  },
66
66
  "friendships": {
67
67
  "@xlink:href": "http://www.tagcrumbs.com/peter/friends.json",
68
- "@type": "array"
68
+ "@type": "Collection"
69
69
  }
70
70
  },
71
71
  "user": {
72
72
  "tagcrumbs_fans": {
73
73
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
74
- "@type": "array"
74
+ "@type": "Collection"
75
75
  },
76
76
  "tags": {
77
77
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
78
- "@type": "array"
78
+ "@type": "Collection"
79
79
  },
80
80
  "activities": {
81
81
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
82
- "@type": "array"
82
+ "@type": "Collection"
83
83
  },
84
84
  "tagcrumbs": {
85
85
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
86
- "@type": "array"
86
+ "@type": "Collection"
87
87
  },
88
88
  "subscriptions": {
89
89
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
90
- "@type": "array"
90
+ "@type": "Collection"
91
91
  },
92
92
  "profile": {
93
93
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -99,7 +99,7 @@
99
99
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
100
100
  "places": {
101
101
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
102
- "@type": "array"
102
+ "@type": "Collection"
103
103
  },
104
104
  "picture": {
105
105
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -107,15 +107,15 @@
107
107
  },
108
108
  "comments": {
109
109
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
110
- "@type": "array"
110
+ "@type": "Collection"
111
111
  },
112
112
  "fanships": {
113
113
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
114
- "@type": "array"
114
+ "@type": "Collection"
115
115
  },
116
116
  "favorites": {
117
117
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
118
- "@type": "array"
118
+ "@type": "Collection"
119
119
  },
120
120
  "settings": {
121
121
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -127,16 +127,16 @@
127
127
  },
128
128
  "placemarks": {
129
129
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
130
- "@type": "array"
130
+ "@type": "Collection"
131
131
  },
132
132
  "@type": "User",
133
133
  "profile_links": {
134
134
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
135
- "@type": "array"
135
+ "@type": "Collection"
136
136
  },
137
137
  "links": {
138
138
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
139
- "@type": "array"
139
+ "@type": "Collection"
140
140
  },
141
141
  "suggestions": {
142
142
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -148,27 +148,27 @@
148
148
  },
149
149
  "flags": {
150
150
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
151
- "@type": "array"
151
+ "@type": "Collection"
152
152
  },
153
153
  "filters": {
154
154
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
155
- "@type": "array"
155
+ "@type": "Collection"
156
156
  },
157
157
  "tagcrumbs_friends": {
158
158
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
159
- "@type": "array"
159
+ "@type": "Collection"
160
160
  },
161
161
  "received_recommendations": {
162
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
163
- "@type": "array"
162
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
163
+ "@type": "Collection"
164
164
  },
165
165
  "recommendations": {
166
166
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
167
- "@type": "array"
167
+ "@type": "Collection"
168
168
  },
169
169
  "friendships": {
170
170
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
171
- "@type": "array"
171
+ "@type": "Collection"
172
172
  }
173
173
  },
174
174
  "@type": "Friendship",
@@ -0,0 +1,18 @@
1
+ {
2
+ "geoname": {
3
+ "geonameid": {
4
+ "@type": "integer",
5
+ "$": 2921044
6
+ },
7
+ "@xlink:href": "http://www.geonames.org/2921044",
8
+ "longitude": {
9
+ "@type": "float",
10
+ "$": 10.5
11
+ },
12
+ "@type": "Geoname",
13
+ "latitude": {
14
+ "@type": "float",
15
+ "$": 51.5
16
+ }
17
+ }
18
+ }
@@ -9,7 +9,7 @@
9
9
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name.json",
10
10
  "comments": {
11
11
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/comments.json",
12
- "@type": "array"
12
+ "@type": "Collection"
13
13
  },
14
14
  "longitude": {
15
15
  "@type": "float",
@@ -19,32 +19,29 @@
19
19
  "@type": "timestamp",
20
20
  "$": "2008-11-25T15:10:35+01:00"
21
21
  },
22
- "permalink": {
23
- "$": "placemark-name"
24
- },
25
22
  "notes": {
26
23
  "$": "PLACEMARK NOTES"
27
24
  },
28
25
  "user": {
29
26
  "tagcrumbs_fans": {
30
27
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
31
- "@type": "array"
28
+ "@type": "Collection"
32
29
  },
33
30
  "tags": {
34
31
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
35
- "@type": "array"
32
+ "@type": "Collection"
36
33
  },
37
34
  "activities": {
38
35
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
39
- "@type": "array"
36
+ "@type": "Collection"
40
37
  },
41
38
  "tagcrumbs": {
42
39
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
43
- "@type": "array"
40
+ "@type": "Collection"
44
41
  },
45
42
  "subscriptions": {
46
43
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
47
- "@type": "array"
44
+ "@type": "Collection"
48
45
  },
49
46
  "profile": {
50
47
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -56,7 +53,7 @@
56
53
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
57
54
  "places": {
58
55
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
59
- "@type": "array"
56
+ "@type": "Collection"
60
57
  },
61
58
  "picture": {
62
59
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -64,15 +61,15 @@
64
61
  },
65
62
  "comments": {
66
63
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
67
- "@type": "array"
64
+ "@type": "Collection"
68
65
  },
69
66
  "fanships": {
70
67
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
71
- "@type": "array"
68
+ "@type": "Collection"
72
69
  },
73
70
  "favorites": {
74
71
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
75
- "@type": "array"
72
+ "@type": "Collection"
76
73
  },
77
74
  "settings": {
78
75
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -84,16 +81,16 @@
84
81
  },
85
82
  "placemarks": {
86
83
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
87
- "@type": "array"
84
+ "@type": "Collection"
88
85
  },
89
86
  "@type": "User",
90
87
  "profile_links": {
91
88
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
92
- "@type": "array"
89
+ "@type": "Collection"
93
90
  },
94
91
  "links": {
95
92
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
96
- "@type": "array"
93
+ "@type": "Collection"
97
94
  },
98
95
  "suggestions": {
99
96
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -105,27 +102,27 @@
105
102
  },
106
103
  "flags": {
107
104
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
108
- "@type": "array"
105
+ "@type": "Collection"
109
106
  },
110
107
  "filters": {
111
108
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
112
- "@type": "array"
109
+ "@type": "Collection"
113
110
  },
114
111
  "tagcrumbs_friends": {
115
112
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
116
- "@type": "array"
113
+ "@type": "Collection"
117
114
  },
118
115
  "received_recommendations": {
119
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
120
- "@type": "array"
116
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
117
+ "@type": "Collection"
121
118
  },
122
119
  "recommendations": {
123
120
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
124
- "@type": "array"
121
+ "@type": "Collection"
125
122
  },
126
123
  "friendships": {
127
124
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
128
- "@type": "array"
125
+ "@type": "Collection"
129
126
  }
130
127
  },
131
128
  "name": {
@@ -134,7 +131,7 @@
134
131
  "@type": "Placemark",
135
132
  "links": {
136
133
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/links.json",
137
- "@type": "array"
134
+ "@type": "Collection"
138
135
  },
139
136
  "private": {
140
137
  "@type": "boolean",
@@ -149,7 +146,7 @@
149
146
  },
150
147
  "recommendations": {
151
148
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/recommendations.json",
152
- "@type": "array"
149
+ "@type": "Collection"
153
150
  },
154
151
  "updated_at": {
155
152
  "@type": "timestamp",
@@ -170,23 +167,23 @@
170
167
  "user": {
171
168
  "tagcrumbs_fans": {
172
169
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
173
- "@type": "array"
170
+ "@type": "Collection"
174
171
  },
175
172
  "tags": {
176
173
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
177
- "@type": "array"
174
+ "@type": "Collection"
178
175
  },
179
176
  "activities": {
180
177
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
181
- "@type": "array"
178
+ "@type": "Collection"
182
179
  },
183
180
  "tagcrumbs": {
184
181
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
185
- "@type": "array"
182
+ "@type": "Collection"
186
183
  },
187
184
  "subscriptions": {
188
185
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
189
- "@type": "array"
186
+ "@type": "Collection"
190
187
  },
191
188
  "profile": {
192
189
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -198,7 +195,7 @@
198
195
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
199
196
  "places": {
200
197
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
201
- "@type": "array"
198
+ "@type": "Collection"
202
199
  },
203
200
  "picture": {
204
201
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -206,15 +203,15 @@
206
203
  },
207
204
  "comments": {
208
205
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
209
- "@type": "array"
206
+ "@type": "Collection"
210
207
  },
211
208
  "fanships": {
212
209
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
213
- "@type": "array"
210
+ "@type": "Collection"
214
211
  },
215
212
  "favorites": {
216
213
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
217
- "@type": "array"
214
+ "@type": "Collection"
218
215
  },
219
216
  "settings": {
220
217
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -226,16 +223,16 @@
226
223
  },
227
224
  "placemarks": {
228
225
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
229
- "@type": "array"
226
+ "@type": "Collection"
230
227
  },
231
228
  "@type": "User",
232
229
  "profile_links": {
233
230
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
234
- "@type": "array"
231
+ "@type": "Collection"
235
232
  },
236
233
  "links": {
237
234
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
238
- "@type": "array"
235
+ "@type": "Collection"
239
236
  },
240
237
  "suggestions": {
241
238
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -247,27 +244,27 @@
247
244
  },
248
245
  "flags": {
249
246
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
250
- "@type": "array"
247
+ "@type": "Collection"
251
248
  },
252
249
  "filters": {
253
250
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
254
- "@type": "array"
251
+ "@type": "Collection"
255
252
  },
256
253
  "tagcrumbs_friends": {
257
254
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
258
- "@type": "array"
255
+ "@type": "Collection"
259
256
  },
260
257
  "received_recommendations": {
261
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
262
- "@type": "array"
258
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
259
+ "@type": "Collection"
263
260
  },
264
261
  "recommendations": {
265
262
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
266
- "@type": "array"
263
+ "@type": "Collection"
267
264
  },
268
265
  "friendships": {
269
266
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
270
- "@type": "array"
267
+ "@type": "Collection"
271
268
  }
272
269
  },
273
270
  "url": {