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
@@ -19,26 +19,29 @@
19
19
  "locale": {
20
20
  "$": "de-DE"
21
21
  },
22
+ "timezone": {
23
+ "$": "Berlin"
24
+ },
22
25
  "user": {
23
26
  "tagcrumbs_fans": {
24
27
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
25
- "@type": "array"
28
+ "@type": "Collection"
26
29
  },
27
30
  "tags": {
28
31
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
29
- "@type": "array"
32
+ "@type": "Collection"
30
33
  },
31
34
  "activities": {
32
35
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
33
- "@type": "array"
36
+ "@type": "Collection"
34
37
  },
35
38
  "tagcrumbs": {
36
39
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
37
- "@type": "array"
40
+ "@type": "Collection"
38
41
  },
39
42
  "subscriptions": {
40
43
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
41
- "@type": "array"
44
+ "@type": "Collection"
42
45
  },
43
46
  "profile": {
44
47
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -50,7 +53,7 @@
50
53
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
51
54
  "places": {
52
55
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
53
- "@type": "array"
56
+ "@type": "Collection"
54
57
  },
55
58
  "picture": {
56
59
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -58,15 +61,15 @@
58
61
  },
59
62
  "comments": {
60
63
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
61
- "@type": "array"
64
+ "@type": "Collection"
62
65
  },
63
66
  "fanships": {
64
67
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
65
- "@type": "array"
68
+ "@type": "Collection"
66
69
  },
67
70
  "favorites": {
68
71
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
69
- "@type": "array"
72
+ "@type": "Collection"
70
73
  },
71
74
  "settings": {
72
75
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -78,16 +81,16 @@
78
81
  },
79
82
  "placemarks": {
80
83
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
81
- "@type": "array"
84
+ "@type": "Collection"
82
85
  },
83
86
  "@type": "User",
84
87
  "profile_links": {
85
88
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
86
- "@type": "array"
89
+ "@type": "Collection"
87
90
  },
88
91
  "links": {
89
92
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
90
- "@type": "array"
93
+ "@type": "Collection"
91
94
  },
92
95
  "suggestions": {
93
96
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -99,27 +102,27 @@
99
102
  },
100
103
  "flags": {
101
104
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
102
- "@type": "array"
105
+ "@type": "Collection"
103
106
  },
104
107
  "filters": {
105
108
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
106
- "@type": "array"
109
+ "@type": "Collection"
107
110
  },
108
111
  "tagcrumbs_friends": {
109
112
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
110
- "@type": "array"
113
+ "@type": "Collection"
111
114
  },
112
115
  "received_recommendations": {
113
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
114
- "@type": "array"
116
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
117
+ "@type": "Collection"
115
118
  },
116
119
  "recommendations": {
117
120
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
118
- "@type": "array"
121
+ "@type": "Collection"
119
122
  },
120
123
  "friendships": {
121
124
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
122
- "@type": "array"
125
+ "@type": "Collection"
123
126
  }
124
127
  },
125
128
  "@type": "Settings",
@@ -139,6 +142,10 @@
139
142
  "@type": "boolean",
140
143
  "$": true
141
144
  },
145
+ "notification_subscription": {
146
+ "@type": "boolean",
147
+ "$": true
148
+ },
142
149
  "newsletter": {
143
150
  "@type": "boolean",
144
151
  "$": false
@@ -17,16 +17,13 @@
17
17
  "$": 48.5
18
18
  }
19
19
  },
20
- "permalink": {
21
- "$": "land-baden-w\u00fcrttemberg"
22
- },
23
20
  "name": {
24
21
  "$": "Land Baden-W\u00fcrttemberg"
25
22
  },
26
23
  "@type": "State",
27
24
  "cities": {
28
25
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities.json",
29
- "@type": "array"
26
+ "@type": "Collection"
30
27
  },
31
28
  "country": {
32
29
  "@xlink:href": "http://www.tagcrumbs.com/places/germany.json",
@@ -46,16 +43,13 @@
46
43
  "$": 51.5
47
44
  }
48
45
  },
49
- "permalink": {
50
- "$": "germany"
51
- },
52
46
  "name": {
53
47
  "$": "Deutschland"
54
48
  },
55
49
  "@type": "Country",
56
50
  "states": {
57
51
  "@xlink:href": "http://www.tagcrumbs.com/places/germany/states.json",
58
- "@type": "array"
52
+ "@type": "Collection"
59
53
  }
60
54
  }
61
55
  }
@@ -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-04-06T15:40:09+02:00"
25
25
  },
26
- "permalink": {
27
- "$": "placemark-name"
28
- },
29
26
  "notes": {
30
27
  "$": "PLACEMARK NOTES"
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",
@@ -174,23 +171,23 @@
174
171
  "user": {
175
172
  "tagcrumbs_fans": {
176
173
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans/tagcrumbs.json",
177
- "@type": "array"
174
+ "@type": "Collection"
178
175
  },
179
176
  "tags": {
180
177
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tags.json",
181
- "@type": "array"
178
+ "@type": "Collection"
182
179
  },
183
180
  "activities": {
184
181
  "@xlink:href": "http://www.tagcrumbs.com/sascha/activities.json",
185
- "@type": "array"
182
+ "@type": "Collection"
186
183
  },
187
184
  "tagcrumbs": {
188
185
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs.json",
189
- "@type": "array"
186
+ "@type": "Collection"
190
187
  },
191
188
  "subscriptions": {
192
189
  "@xlink:href": "http://www.tagcrumbs.com/sascha/subscriptions.json",
193
- "@type": "array"
190
+ "@type": "Collection"
194
191
  },
195
192
  "profile": {
196
193
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile.json",
@@ -202,7 +199,7 @@
202
199
  "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
203
200
  "places": {
204
201
  "@xlink:href": "http://www.tagcrumbs.com/sascha/places.json",
205
- "@type": "array"
202
+ "@type": "Collection"
206
203
  },
207
204
  "picture": {
208
205
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/picture.json",
@@ -210,15 +207,15 @@
210
207
  },
211
208
  "comments": {
212
209
  "@xlink:href": "http://www.tagcrumbs.com/sascha/comments.json",
213
- "@type": "array"
210
+ "@type": "Collection"
214
211
  },
215
212
  "fanships": {
216
213
  "@xlink:href": "http://www.tagcrumbs.com/sascha/fans.json",
217
- "@type": "array"
214
+ "@type": "Collection"
218
215
  },
219
216
  "favorites": {
220
217
  "@xlink:href": "http://www.tagcrumbs.com/sascha/favorites.json",
221
- "@type": "array"
218
+ "@type": "Collection"
222
219
  },
223
220
  "settings": {
224
221
  "@xlink:href": "http://www.tagcrumbs.com/sascha/settings.json",
@@ -230,16 +227,16 @@
230
227
  },
231
228
  "placemarks": {
232
229
  "@xlink:href": "http://www.tagcrumbs.com/sascha/placemarks.json",
233
- "@type": "array"
230
+ "@type": "Collection"
234
231
  },
235
232
  "@type": "User",
236
233
  "profile_links": {
237
234
  "@xlink:href": "http://www.tagcrumbs.com/sascha/profile/links.json",
238
- "@type": "array"
235
+ "@type": "Collection"
239
236
  },
240
237
  "links": {
241
238
  "@xlink:href": "http://www.tagcrumbs.com/sascha/links.json",
242
- "@type": "array"
239
+ "@type": "Collection"
243
240
  },
244
241
  "suggestions": {
245
242
  "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
@@ -251,27 +248,27 @@
251
248
  },
252
249
  "flags": {
253
250
  "@xlink:href": "http://www.tagcrumbs.com/sascha/flags.json",
254
- "@type": "array"
251
+ "@type": "Collection"
255
252
  },
256
253
  "filters": {
257
254
  "@xlink:href": "http://www.tagcrumbs.com/sascha/filters.json",
258
- "@type": "array"
255
+ "@type": "Collection"
259
256
  },
260
257
  "tagcrumbs_friends": {
261
258
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends/tagcrumbs.json",
262
- "@type": "array"
259
+ "@type": "Collection"
263
260
  },
264
261
  "received_recommendations": {
265
- "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations/received.json",
266
- "@type": "array"
262
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/received_recommendations.json",
263
+ "@type": "Collection"
267
264
  },
268
265
  "recommendations": {
269
266
  "@xlink:href": "http://www.tagcrumbs.com/sascha/recommendations.json",
270
- "@type": "array"
267
+ "@type": "Collection"
271
268
  },
272
269
  "friendships": {
273
270
  "@xlink:href": "http://www.tagcrumbs.com/sascha/friends.json",
274
- "@type": "array"
271
+ "@type": "Collection"
275
272
  }
276
273
  },
277
274
  "@type": "Subscription",
@@ -0,0 +1,302 @@
1
+ {
2
+ "suggestions": {
3
+ "names": {
4
+ "name": [
5
+ {
6
+ "$": "name1"
7
+ },
8
+ {
9
+ "$": "name2"
10
+ },
11
+ {
12
+ "$": "name3"
13
+ }
14
+ ],
15
+ "@type": "Collection"
16
+ },
17
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tagcrumbs/suggestions.json",
18
+ "popular_tags": {
19
+ "@type": "Collection",
20
+ "popular_tag": [
21
+ {
22
+ "@xlink:href": "http://www.tagcrumbs.com/tags/tag1.json",
23
+ "name": {
24
+ "$": "tag1"
25
+ },
26
+ "@type": "Tag"
27
+ },
28
+ {
29
+ "@xlink:href": "http://www.tagcrumbs.com/tags/tag2.json",
30
+ "name": {
31
+ "$": "tag2"
32
+ },
33
+ "@type": "Tag"
34
+ }
35
+ ]
36
+ },
37
+ "@type": "Suggestions",
38
+ "recommended_tags": {
39
+ "@type": "Collection",
40
+ "recommended_tag": [
41
+ {
42
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tags/tag3.json",
43
+ "user": {
44
+ "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
45
+ "@type": "User"
46
+ },
47
+ "name": {
48
+ "$": "tag3"
49
+ },
50
+ "@type": "Tag"
51
+ },
52
+ {
53
+ "@xlink:href": "http://www.tagcrumbs.com/sascha/tags/tag4.json",
54
+ "user": {
55
+ "@xlink:href": "http://www.tagcrumbs.com/sascha.json",
56
+ "@type": "User"
57
+ },
58
+ "name": {
59
+ "$": "tag4"
60
+ },
61
+ "@type": "Tag"
62
+ }
63
+ ]
64
+ },
65
+ "cities": {
66
+ "city": [
67
+ {
68
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities/hohenhaslach.json",
69
+ "state": {
70
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg.json",
71
+ "cities": {
72
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities.json",
73
+ "@type": "Collection"
74
+ },
75
+ "geoname": {
76
+ "@xlink:href": "http://www.geonames.org/2953481",
77
+ "geonameid": {
78
+ "@type": "integer",
79
+ "$": 2953481
80
+ },
81
+ "latitude": {
82
+ "@type": "float",
83
+ "$": 48.5
84
+ },
85
+ "@type": "Geoname",
86
+ "longitude": {
87
+ "@type": "float",
88
+ "$": 9.0
89
+ }
90
+ },
91
+ "name": {
92
+ "$": "Baden-W\u00fcrttemberg"
93
+ },
94
+ "@type": "State",
95
+ "country": {
96
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany.json",
97
+ "states": {
98
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states.json",
99
+ "@type": "Collection"
100
+ },
101
+ "geoname": {
102
+ "@xlink:href": "http://www.geonames.org/2921044",
103
+ "geonameid": {
104
+ "@type": "integer",
105
+ "$": 2921044
106
+ },
107
+ "latitude": {
108
+ "@type": "float",
109
+ "$": 51.5
110
+ },
111
+ "@type": "Geoname",
112
+ "longitude": {
113
+ "@type": "float",
114
+ "$": 10.5
115
+ }
116
+ },
117
+ "name": {
118
+ "$": "Germany"
119
+ },
120
+ "@type": "Country"
121
+ }
122
+ },
123
+ "geoname": {
124
+ "@xlink:href": "http://www.geonames.org/2901727",
125
+ "geonameid": {
126
+ "@type": "integer",
127
+ "$": 2901727
128
+ },
129
+ "latitude": {
130
+ "@type": "float",
131
+ "$": 49.0022222
132
+ },
133
+ "@type": "Geoname",
134
+ "longitude": {
135
+ "@type": "float",
136
+ "$": 9.0144444
137
+ }
138
+ },
139
+ "name": {
140
+ "$": "Hohenhaslach"
141
+ },
142
+ "@type": "City"
143
+ },
144
+ {
145
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities/mittelhaslach.json",
146
+ "state": {
147
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg.json",
148
+ "cities": {
149
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities.json",
150
+ "@type": "Collection"
151
+ },
152
+ "geoname": {
153
+ "@xlink:href": "http://www.geonames.org/2953481",
154
+ "geonameid": {
155
+ "@type": "integer",
156
+ "$": 2953481
157
+ },
158
+ "latitude": {
159
+ "@type": "float",
160
+ "$": 48.5
161
+ },
162
+ "@type": "Geoname",
163
+ "longitude": {
164
+ "@type": "float",
165
+ "$": 9.0
166
+ }
167
+ },
168
+ "name": {
169
+ "$": "Baden-W\u00fcrttemberg"
170
+ },
171
+ "@type": "State",
172
+ "country": {
173
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany.json",
174
+ "states": {
175
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states.json",
176
+ "@type": "Collection"
177
+ },
178
+ "geoname": {
179
+ "@xlink:href": "http://www.geonames.org/2921044",
180
+ "geonameid": {
181
+ "@type": "integer",
182
+ "$": 2921044
183
+ },
184
+ "latitude": {
185
+ "@type": "float",
186
+ "$": 51.5
187
+ },
188
+ "@type": "Geoname",
189
+ "longitude": {
190
+ "@type": "float",
191
+ "$": 10.5
192
+ }
193
+ },
194
+ "name": {
195
+ "$": "Germany"
196
+ },
197
+ "@type": "Country"
198
+ }
199
+ },
200
+ "geoname": {
201
+ "@xlink:href": "http://www.geonames.org/2870706",
202
+ "geonameid": {
203
+ "@type": "integer",
204
+ "$": 2870706
205
+ },
206
+ "latitude": {
207
+ "@type": "float",
208
+ "$": 49.0
209
+ },
210
+ "@type": "Geoname",
211
+ "longitude": {
212
+ "@type": "float",
213
+ "$": 9.0166667
214
+ }
215
+ },
216
+ "name": {
217
+ "$": "Mittelhaslach"
218
+ },
219
+ "@type": "City"
220
+ },
221
+ {
222
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities/niederhaslach.json",
223
+ "state": {
224
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg.json",
225
+ "cities": {
226
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states/land-baden-w%C3%BCrttemberg/cities.json",
227
+ "@type": "Collection"
228
+ },
229
+ "geoname": {
230
+ "@xlink:href": "http://www.geonames.org/2953481",
231
+ "geonameid": {
232
+ "@type": "integer",
233
+ "$": 2953481
234
+ },
235
+ "latitude": {
236
+ "@type": "float",
237
+ "$": 48.5
238
+ },
239
+ "@type": "Geoname",
240
+ "longitude": {
241
+ "@type": "float",
242
+ "$": 9.0
243
+ }
244
+ },
245
+ "name": {
246
+ "$": "Baden-W\u00fcrttemberg"
247
+ },
248
+ "@type": "State",
249
+ "country": {
250
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany.json",
251
+ "states": {
252
+ "@xlink:href": "http://www.tagcrumbs.com/places/germany/states.json",
253
+ "@type": "Collection"
254
+ },
255
+ "geoname": {
256
+ "@xlink:href": "http://www.geonames.org/2921044",
257
+ "geonameid": {
258
+ "@type": "integer",
259
+ "$": 2921044
260
+ },
261
+ "latitude": {
262
+ "@type": "float",
263
+ "$": 51.5
264
+ },
265
+ "@type": "Geoname",
266
+ "longitude": {
267
+ "@type": "float",
268
+ "$": 10.5
269
+ }
270
+ },
271
+ "name": {
272
+ "$": "Germany"
273
+ },
274
+ "@type": "Country"
275
+ }
276
+ },
277
+ "geoname": {
278
+ "@xlink:href": "http://www.geonames.org/2863369",
279
+ "geonameid": {
280
+ "@type": "integer",
281
+ "$": 2863369
282
+ },
283
+ "latitude": {
284
+ "@type": "float",
285
+ "$": 49.0
286
+ },
287
+ "@type": "Geoname",
288
+ "longitude": {
289
+ "@type": "float",
290
+ "$": 9.0166667
291
+ }
292
+ },
293
+ "name": {
294
+ "$": "Niederhaslach"
295
+ },
296
+ "@type": "City"
297
+ }
298
+ ],
299
+ "@type": "Collection"
300
+ }
301
+ }
302
+ }