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
@@ -0,0 +1,13 @@
1
+ {
2
+ "application": {
3
+ "@xlink:href": "http://www.tagcrumbs.com/applications/3.json",
4
+ "name": {
5
+ "$": "Tagcrumbs Gem"
6
+ },
7
+ "@type": "Application",
8
+ "url": {
9
+ "$": "http://www.tagcrumbs.com"
10
+ }
11
+ }
12
+ }
13
+
@@ -17,9 +17,6 @@
17
17
  "$": 48.7666667
18
18
  }
19
19
  },
20
- "permalink": {
21
- "$": "stuttgart"
22
- },
23
20
  "name": {
24
21
  "$": "Stuttgart"
25
22
  },
@@ -42,16 +39,13 @@
42
39
  "$": 48.5
43
40
  }
44
41
  },
45
- "permalink": {
46
- "$": "land-baden-w\u00fcrttemberg"
47
- },
48
42
  "name": {
49
43
  "$": "Land Baden-W\u00fcrttemberg"
50
44
  },
51
45
  "@type": "State",
52
46
  "cities": {
53
47
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities.json",
54
- "@type": "array"
48
+ "@type": "Collection"
55
49
  },
56
50
  "country": {
57
51
  "@xlink:href": "http://www.tagcrumbs.com/places/germany.json",
@@ -71,16 +65,13 @@
71
65
  "$": 51.5
72
66
  }
73
67
  },
74
- "permalink": {
75
- "$": "germany"
76
- },
77
68
  "name": {
78
69
  "$": "Deutschland"
79
70
  },
80
71
  "@type": "Country",
81
72
  "states": {
82
73
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states.json",
83
- "@type": "array"
74
+ "@type": "Collection"
84
75
  }
85
76
  }
86
77
  }
@@ -13,7 +13,7 @@
13
13
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name.json",
14
14
  "comments": {
15
15
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/comments.json",
16
- "@type": "array"
16
+ "@type": "Collection"
17
17
  },
18
18
  "longitude": {
19
19
  "@type": "float",
@@ -23,32 +23,29 @@
23
23
  "@type": "timestamp",
24
24
  "$": "2009-06-08T16:00:15+02:00"
25
25
  },
26
- "permalink": {
27
- "$": "placemark-name"
28
- },
29
26
  "notes": {
30
27
  "$": "abasdf"
31
28
  },
32
29
  "user": {
33
30
  "tagcrumbs_fans": {
34
31
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
35
- "@type": "array"
32
+ "@type": "Collection"
36
33
  },
37
34
  "tags": {
38
35
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
39
- "@type": "array"
36
+ "@type": "Collection"
40
37
  },
41
38
  "activities": {
42
39
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
43
- "@type": "array"
40
+ "@type": "Collection"
44
41
  },
45
42
  "tagcrumbs": {
46
43
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
47
- "@type": "array"
44
+ "@type": "Collection"
48
45
  },
49
46
  "subscriptions": {
50
47
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
51
- "@type": "array"
48
+ "@type": "Collection"
52
49
  },
53
50
  "profile": {
54
51
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -60,7 +57,7 @@
60
57
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
61
58
  "places": {
62
59
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
63
- "@type": "array"
60
+ "@type": "Collection"
64
61
  },
65
62
  "picture": {
66
63
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -68,15 +65,15 @@
68
65
  },
69
66
  "comments": {
70
67
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
71
- "@type": "array"
68
+ "@type": "Collection"
72
69
  },
73
70
  "fanships": {
74
71
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
75
- "@type": "array"
72
+ "@type": "Collection"
76
73
  },
77
74
  "favorites": {
78
75
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
79
- "@type": "array"
76
+ "@type": "Collection"
80
77
  },
81
78
  "settings": {
82
79
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -88,16 +85,16 @@
88
85
  },
89
86
  "placemarks": {
90
87
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
91
- "@type": "array"
88
+ "@type": "Collection"
92
89
  },
93
90
  "@type": "User",
94
91
  "profile_links": {
95
92
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
96
- "@type": "array"
93
+ "@type": "Collection"
97
94
  },
98
95
  "links": {
99
96
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
100
- "@type": "array"
97
+ "@type": "Collection"
101
98
  },
102
99
  "suggestions": {
103
100
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -109,27 +106,27 @@
109
106
  },
110
107
  "flags": {
111
108
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
112
- "@type": "array"
109
+ "@type": "Collection"
113
110
  },
114
111
  "filters": {
115
112
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
116
- "@type": "array"
113
+ "@type": "Collection"
117
114
  },
118
115
  "tagcrumbs_friends": {
119
116
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
120
- "@type": "array"
117
+ "@type": "Collection"
121
118
  },
122
119
  "received_recommendations": {
123
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
124
- "@type": "array"
120
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
121
+ "@type": "Collection"
125
122
  },
126
123
  "recommendations": {
127
124
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
128
- "@type": "array"
125
+ "@type": "Collection"
129
126
  },
130
127
  "friendships": {
131
128
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
132
- "@type": "array"
129
+ "@type": "Collection"
133
130
  }
134
131
  },
135
132
  "name": {
@@ -138,7 +135,7 @@
138
135
  "@type": "Placemark",
139
136
  "links": {
140
137
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/links.json",
141
- "@type": "array"
138
+ "@type": "Collection"
142
139
  },
143
140
  "private": {
144
141
  "@type": "boolean",
@@ -153,7 +150,7 @@
153
150
  },
154
151
  "recommendations": {
155
152
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/recommendations.json",
156
- "@type": "array"
153
+ "@type": "Collection"
157
154
  },
158
155
  "updated_at": {
159
156
  "@type": "timestamp",
@@ -177,23 +174,23 @@
177
174
  "user": {
178
175
  "tagcrumbs_fans": {
179
176
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
180
- "@type": "array"
177
+ "@type": "Collection"
181
178
  },
182
179
  "tags": {
183
180
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
184
- "@type": "array"
181
+ "@type": "Collection"
185
182
  },
186
183
  "activities": {
187
184
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
188
- "@type": "array"
185
+ "@type": "Collection"
189
186
  },
190
187
  "tagcrumbs": {
191
188
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
192
- "@type": "array"
189
+ "@type": "Collection"
193
190
  },
194
191
  "subscriptions": {
195
192
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
196
- "@type": "array"
193
+ "@type": "Collection"
197
194
  },
198
195
  "profile": {
199
196
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -205,7 +202,7 @@
205
202
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
206
203
  "places": {
207
204
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
208
- "@type": "array"
205
+ "@type": "Collection"
209
206
  },
210
207
  "picture": {
211
208
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -213,15 +210,15 @@
213
210
  },
214
211
  "comments": {
215
212
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
216
- "@type": "array"
213
+ "@type": "Collection"
217
214
  },
218
215
  "fanships": {
219
216
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
220
- "@type": "array"
217
+ "@type": "Collection"
221
218
  },
222
219
  "favorites": {
223
220
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
224
- "@type": "array"
221
+ "@type": "Collection"
225
222
  },
226
223
  "settings": {
227
224
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -233,16 +230,16 @@
233
230
  },
234
231
  "placemarks": {
235
232
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
236
- "@type": "array"
233
+ "@type": "Collection"
237
234
  },
238
235
  "@type": "User",
239
236
  "profile_links": {
240
237
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
241
- "@type": "array"
238
+ "@type": "Collection"
242
239
  },
243
240
  "links": {
244
241
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
245
- "@type": "array"
242
+ "@type": "Collection"
246
243
  },
247
244
  "suggestions": {
248
245
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -254,27 +251,37 @@
254
251
  },
255
252
  "flags": {
256
253
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
257
- "@type": "array"
254
+ "@type": "Collection"
258
255
  },
259
256
  "filters": {
260
257
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
261
- "@type": "array"
258
+ "@type": "Collection"
262
259
  },
263
260
  "tagcrumbs_friends": {
264
261
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
265
- "@type": "array"
262
+ "@type": "Collection"
266
263
  },
267
264
  "received_recommendations": {
268
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
269
- "@type": "array"
265
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
266
+ "@type": "Collection"
270
267
  },
271
268
  "recommendations": {
272
269
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
273
- "@type": "array"
270
+ "@type": "Collection"
274
271
  },
275
272
  "friendships": {
276
273
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
277
- "@type": "array"
274
+ "@type": "Collection"
275
+ }
276
+ },
277
+ "application": {
278
+ "@xlink:href": "http://www.tagcrumbs.com/applications/3.json",
279
+ "name": {
280
+ "$": "Tagcrumbs Gem"
281
+ },
282
+ "@type": "Application",
283
+ "url": {
284
+ "$": "http://www.tagcrumbs.com"
278
285
  }
279
286
  },
280
287
  "@type": "Comment",
@@ -17,16 +17,13 @@
17
17
  "$": 51.5
18
18
  }
19
19
  },
20
- "permalink": {
21
- "$": "germany"
22
- },
23
20
  "name": {
24
21
  "$": "Deutschland"
25
22
  },
26
23
  "@type": "Country",
27
24
  "states": {
28
25
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states.json",
29
- "@type": "array"
26
+ "@type": "Collection"
30
27
  }
31
28
  }
32
29
  }
@@ -0,0 +1,286 @@
1
+ {
2
+ "recommendation": {
3
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/70.json",
4
+ "tagcrumb": {
5
+ "favorites_count": {
6
+ "@type": "integer",
7
+ "$": 0
8
+ },
9
+ "city": {
10
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities/b%C3%B6blingen.json",
11
+ "@type": "City"
12
+ },
13
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name.json",
14
+ "comments": {
15
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/comments.json",
16
+ "@type": "Collection"
17
+ },
18
+ "longitude": {
19
+ "@type": "float",
20
+ "$": 8.96329879760742
21
+ },
22
+ "created_at": {
23
+ "@type": "timestamp",
24
+ "$": "2009-02-01T14:41:11+01:00"
25
+ },
26
+ "notes": {
27
+ "$": "PLACEMARK NOTES"
28
+ },
29
+ "user": {
30
+ "tagcrumbs_fans": {
31
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
32
+ "@type": "Collection"
33
+ },
34
+ "tags": {
35
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
36
+ "@type": "Collection"
37
+ },
38
+ "activities": {
39
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
40
+ "@type": "Collection"
41
+ },
42
+ "tagcrumbs": {
43
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
44
+ "@type": "Collection"
45
+ },
46
+ "subscriptions": {
47
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
48
+ "@type": "Collection"
49
+ },
50
+ "profile": {
51
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
52
+ "@type": "Profile"
53
+ },
54
+ "username": {
55
+ "$": "sascha"
56
+ },
57
+ "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
58
+ "places": {
59
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
60
+ "@type": "Collection"
61
+ },
62
+ "picture": {
63
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
64
+ "@type": "Picture"
65
+ },
66
+ "comments": {
67
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
68
+ "@type": "Collection"
69
+ },
70
+ "fanships": {
71
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
72
+ "@type": "Collection"
73
+ },
74
+ "favorites": {
75
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
76
+ "@type": "Collection"
77
+ },
78
+ "settings": {
79
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
80
+ "@type": "Settings"
81
+ },
82
+ "created_at": {
83
+ "@type": "timestamp",
84
+ "$": "2008-06-12T09:34:00+02:00"
85
+ },
86
+ "placemarks": {
87
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
88
+ "@type": "Collection"
89
+ },
90
+ "@type": "User",
91
+ "profile_links": {
92
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
93
+ "@type": "Collection"
94
+ },
95
+ "links": {
96
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
97
+ "@type": "Collection"
98
+ },
99
+ "suggestions": {
100
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
101
+ "@type": "Suggestions"
102
+ },
103
+ "location": {
104
+ "@xlink:href": "http://www.tagcrumbs.com/location.json",
105
+ "@type": "Location"
106
+ },
107
+ "flags": {
108
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
109
+ "@type": "Collection"
110
+ },
111
+ "filters": {
112
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
113
+ "@type": "Collection"
114
+ },
115
+ "tagcrumbs_friends": {
116
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
117
+ "@type": "Collection"
118
+ },
119
+ "received_recommendations": {
120
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
121
+ "@type": "Collection"
122
+ },
123
+ "recommendations": {
124
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
125
+ "@type": "Collection"
126
+ },
127
+ "friendships": {
128
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
129
+ "@type": "Collection"
130
+ }
131
+ },
132
+ "name": {
133
+ "$": "PLACEMARK NAME"
134
+ },
135
+ "@type": "Placemark",
136
+ "links": {
137
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/links.json",
138
+ "@type": "Collection"
139
+ },
140
+ "private": {
141
+ "@type": "boolean",
142
+ "$": false
143
+ },
144
+ "address": {
145
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/address.json",
146
+ "@type": "Address"
147
+ },
148
+ "short_url": {
149
+ "$": "http://www.tagcrumbs.com/p/ZGM2ZTk"
150
+ },
151
+ "recommendations": {
152
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks/placemark-name/recommendations.json",
153
+ "@type": "Collection"
154
+ },
155
+ "updated_at": {
156
+ "@type": "timestamp",
157
+ "$": "2009-02-20T07:53:06+01:00"
158
+ },
159
+ "tag_list": {
160
+ "$": "test, gpsbabel"
161
+ },
162
+ "latitude": {
163
+ "@type": "float",
164
+ "$": 48.7189419455889
165
+ }
166
+ },
167
+ "created_at": {
168
+ "@type": "timestamp",
169
+ "$": "2009-02-01T14:41:12+01:00"
170
+ },
171
+ "user": {
172
+ "tagcrumbs_fans": {
173
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
174
+ "@type": "Collection"
175
+ },
176
+ "tags": {
177
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
178
+ "@type": "Collection"
179
+ },
180
+ "activities": {
181
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
182
+ "@type": "Collection"
183
+ },
184
+ "tagcrumbs": {
185
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
186
+ "@type": "Collection"
187
+ },
188
+ "subscriptions": {
189
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
190
+ "@type": "Collection"
191
+ },
192
+ "profile": {
193
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
194
+ "@type": "Profile"
195
+ },
196
+ "username": {
197
+ "$": "sascha"
198
+ },
199
+ "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
200
+ "places": {
201
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
202
+ "@type": "Collection"
203
+ },
204
+ "picture": {
205
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
206
+ "@type": "Picture"
207
+ },
208
+ "comments": {
209
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
210
+ "@type": "Collection"
211
+ },
212
+ "fanships": {
213
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
214
+ "@type": "Collection"
215
+ },
216
+ "favorites": {
217
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
218
+ "@type": "Collection"
219
+ },
220
+ "settings": {
221
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
222
+ "@type": "Settings"
223
+ },
224
+ "created_at": {
225
+ "@type": "timestamp",
226
+ "$": "2008-06-12T09:34:00+02:00"
227
+ },
228
+ "placemarks": {
229
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
230
+ "@type": "Collection"
231
+ },
232
+ "@type": "User",
233
+ "profile_links": {
234
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
235
+ "@type": "Collection"
236
+ },
237
+ "links": {
238
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
239
+ "@type": "Collection"
240
+ },
241
+ "suggestions": {
242
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
243
+ "@type": "Suggestions"
244
+ },
245
+ "location": {
246
+ "@xlink:href": "http://www.tagcrumbs.com/location.json",
247
+ "@type": "Location"
248
+ },
249
+ "flags": {
250
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
251
+ "@type": "Collection"
252
+ },
253
+ "filters": {
254
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
255
+ "@type": "Collection"
256
+ },
257
+ "tagcrumbs_friends": {
258
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
259
+ "@type": "Collection"
260
+ },
261
+ "received_recommendations": {
262
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
263
+ "@type": "Collection"
264
+ },
265
+ "recommendations": {
266
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
267
+ "@type": "Collection"
268
+ },
269
+ "friendships": {
270
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
271
+ "@type": "Collection"
272
+ }
273
+ },
274
+ "@type": "EmailRecommendation",
275
+ "message": {
276
+ "$": "MESSAGE"
277
+ },
278
+ "recipient_email": {
279
+ "$": "email@address.com"
280
+ },
281
+ "updated_at": {
282
+ "@type": "timestamp",
283
+ "$": "2009-03-01T18:02:51+01:00"
284
+ }
285
+ }
286
+ }