Advertisement
Guest User

Untitled

a guest
Oct 21st, 2012
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Array
  2. (
  3.     [annotations] => Array
  4.         (
  5.             [0] => Array
  6.                 (
  7.                     [type] => net.jazzychad.adnblog.post
  8.                     [value] => Array
  9.                         (
  10.                             [body] => # Twitter
  11.  
  12. Wie [im letzten Artikel](http://www.taptoplay.de/post/33636850225/erste-schritte-in-app-net) beschrieben eignet sich app.net vorzüglich als Twitter-Alternative:
  13.  
  14. ![](https://dl.dropbox.com/u/904917/tumblr/content_images/2012-10-15-9/appnet4_s.jpg)
  15.  
  16. Da geht aber noch mehr: Jeder einzelne Post kann mit einer beliebigen Menge an frei definierbaren [Metadaten](https://github.com/appdotnet/api-spec/blob/master/annotations.md) angereichert werden. Gleichzeitig kann ein Post [so markiert werden](https://github.com/appdotnet/api-spec/blob/master/objects.md#machine-only-posts), dass er nicht in Clients angezeigt wird. Entwickler haben damit folglich die Möglichkeit, die Kernfunktionen von app.net als Basis für jede Form von Applikation zu verwenden.
  17.  
  18. Die von app.net vordefinierten Metadaten sprechen dabei für sich selbst:
  19.  
  20. * **Crosspost** definiert die Original-URL eines Posts (quasi das "via", welches in vielen Blogs verwendet wird).
  21. * **Embedded Media** kann für Bilder, Video und HTML (z.B. iFrames) verwendet werden.
  22. * **Geolocation** speichert Geo-Koordinaten zu einem Post.
  23. * **Language** speichert die Sprache zu einem Post.
  24.  
  25. Die Verbindung aus Bild-Metadaten, Geo-Koordinaten, eines externen Bild-Uploaddienstes und dem Post mit einer Bildbeschreibung würde z.B. die Basis für einen Instagram-Klon bieten. Favoriten, Kommentare und Threads sind ebenfalls vorhandene Kernfunktionen von app.net.
  26.  
  27. Neben solchen Gedankenmodellen gibt es bereits reale Anwendungsfälle:
  28.  
  29. # Chat
  30.  
  31. [Patter](http://patter-app.net/chat) ist ein Chat-Client für app.net. Jeder kann einzelne Räume öffnen und dort mit anderen Personen chatten.
  32.  
  33. ![](https://dl.dropbox.com/u/904917/tumblr/content_images/Snapshot%2021.10.12%2015%3A16-2.png)
  34.  
  35. Die Chat-Beiträge werden als versteckte Posts in app.net gespeichert und sind so nur sichtbar für Clients, die sie explizit anfragen. Ein zweiter solcher Clients ist z.B. [appnetizens.com](http://appnetizens.com/threadchat), der auch eine Übersicht aus verfügbaren Chaträumen anzeigt:
  36.  
  37. ![](https://dl.dropbox.com/u/904917/tumblr/content_images/Snapshot%2021.10.12%2015%3A23.png)
  38.  
  39. # Diskussionsforen
  40.  
  41. [QuickCommunities](http://www.quickcommunities.com/) realisiert themenbezogene Diskussionsforum. Jeder kann ein Themengebiet eröffnet und dann in diesem Themengebiet in einem Thema diskutieren. Die Darstellung ist momentan irgendwo zwischen Twitter und einem Forum eingeordnet - hier ist sicherlich noch einiges zu tun. Gut sichtbar ist allerdings, dass die QuickCommunities das Threading der einzelnen Antworten darstellt:
  42.  
  43. ![](https://dl.dropbox.com/u/904917/tumblr/content_images/Snapshot%2021.10.12%2015%3A34.png)
  44.  
  45. # Blogs
  46.  
  47. [ADN Blogs](http://adnblog.herokuapp.com/) realisiert eine Blog-Funktion auf der Basis von app.net. Alle Blog-Einträge werden dabei als neuer Post in app.net gespeichert und mit Titel und Link zur langen Ansicht gespeichert. Dabei wird der lange Text als Annotation im Post mitgespeichert. Normale Clients ignorieren die Annotation, wogegen sich adnblog.herokuapp.com darauf spezialisiert hat, nur diese lange Ansicht darzustellen. Als Eingabe wird die Markdown-Syntax unterstützt, damit also auch formatierter Text mit Links.
  48.  
  49. Von den genannten Beispielen ist dies am Ehesten ein Proof-of-Concept: Es fehlen noch die üblichen Blog-Features wie Übersichtsseiten, Kommentare und Gestaltungsmöglichkeiten. Dennoch zeigt dies gut, was bereits möglich ist.
  50.  
  51. Diesen Artikel hier habe ich in meiner gewohnten Kombination aus [Writer](https://itunes.apple.com/de/app/ia-writer/id439623248?mt=12) und [Marked](https://itunes.apple.com/de/app/marked/id448925439?mt=12) verfasst und das Ergebnis anschließend auf Tumblr (also taptoplay.de) und als ADN Blog veröffentlicht:
  52.  
  53. * [Artikel auf taptoplay.de](http://www.taptoplay.de/post/34025982782/app-net-als-social-network-os)
  54.                             [title] => app.net als Social Network OS
  55.                             [tstamp] => 1350827522417
  56.                         )
  57.  
  58.                 )
  59.  
  60.         )
  61.  
  62.     [canonical_url] => https://alpha.app.net/truhe/post/1121118
  63.     [created_at] => 2012-10-21T13:52:02Z
  64.     [entities] => Array
  65.         (
  66.             [hashtags] => Array
  67.                 (
  68.                     [0] => Array
  69.                         (
  70.                             [len] => 8
  71.                             [name] => adnblog
  72.                             [pos] => 73
  73.                         )
  74.  
  75.                 )
  76.  
  77.             [links] => Array
  78.                 (
  79.                     [0] => Array
  80.                         (
  81.                             [len] => 7
  82.                             [pos] => 0
  83.                             [text] => app.net
  84.                             [url] => http://app.net
  85.                         )
  86.  
  87.                     [1] => Array
  88.                         (
  89.                             [len] => 40
  90.                             [pos] => 32
  91.                             [text] => http://adnblog.herokuapp.com/p/jSu8pKB-m
  92.                             [url] => http://adnblog.herokuapp.com/p/jSu8pKB-m
  93.                         )
  94.  
  95.                 )
  96.  
  97.             [mentions] => Array
  98.                 (
  99.                 )
  100.  
  101.         )
  102.  
  103.     [html] => app.net als Social Network OS - http://adnblog.herokuapp.com/p/jSu8pKB-m #adnblog
  104.     [id] => 1121118
  105.     [machine_only] =>
  106.     [num_replies] => 0
  107.     [num_reposts] => 0
  108.     [num_stars] => 0
  109.     [source] => Array
  110.         (
  111.             [client_id] => Y8rXsELGMgt8AuBMeLhWh7mh6FvELEMW
  112.             [link] => http://adnblog.herokuapp.com/
  113.             [name] => ADN Blogs
  114.         )
  115.  
  116.     [text] => app.net als Social Network OS - http://adnblog.herokuapp.com/p/jSu8pKB-m #adnblog
  117.     [thread_id] => 1121118
  118.     [user] => Array
  119.         (
  120.             [avatar_image] => Array
  121.                 (
  122.                     [height] => 200
  123.                     [url] => https://d2rfichhc2fb9n.cloudfront.net/image/4/jFZq1x-pYHuzd_PF_58rFpr8HooiI6VYRFpv2njl726s0hFEyV7F1CDz_JPfnggn5pBXJz7pCgp0Bpp3Z8WQTP6hA2kM3GQkjLjGOXAFEDEvkU7UTucmzwMGmvcffyh7BaS8QYNIbLe0IjVWokkU1Itf4uo
  124.                     [width] => 200
  125.                 )
  126.  
  127.             [counts] => Array
  128.                 (
  129.                     [followers] => 51
  130.                     [following] => 95
  131.                     [posts] => 409
  132.                     [stars] => 25
  133.                 )
  134.  
  135.             [cover_image] => Array
  136.                 (
  137.                     [height] => 1280
  138.                     [url] => https://d2rfichhc2fb9n.cloudfront.net/image/4/VWmOU5PESfhg9PlRmPSo0Om1WIQJ19FCXRFBK4sLr4r3_n_q-j_ZCs0MU4B4tfZ0Wv051MoQw6ee1JpHCFtlQUSmKUMkYhCyBHuJFjcJ4qH_7Y7sYqXA7H0bo5xHlAdY6kt1g80ly_Vhgr2RjYkBbA5xPfw
  139.                     [width] => 1920
  140.                 )
  141.  
  142.             [created_at] => 2012-10-08T09:40:21Z
  143.             [description] => Array
  144.                 (
  145.                     [entities] => Array
  146.                         (
  147.                             [hashtags] => Array
  148.                                 (
  149.                                 )
  150.  
  151.                             [links] => Array
  152.                                 (
  153.                                     [0] => Array
  154.                                         (
  155.                                             [len] => 19
  156.                                             [pos] => 86
  157.                                             [text] => http://taptoplay.de
  158.                                             [url] => http://taptoplay.de
  159.                                         )
  160.  
  161.                                     [1] => Array
  162.                                         (
  163.                                             [len] => 31
  164.                                             [pos] => 116
  165.                                             [text] => http://www.lastfm.de/user/truhe
  166.                                             [url] => http://www.lastfm.de/user/truhe
  167.                                         )
  168.  
  169.                                     [2] => Array
  170.                                         (
  171.                                             [len] => 49
  172.                                             [pos] => 158
  173.                                             [text] => http://wiki.piratenpartei.de/Benutzer:Pirate_Pier
  174.                                             [url] => http://wiki.piratenpartei.de/Benutzer:Pirate_Pier
  175.                                         )
  176.  
  177.                                 )
  178.  
  179.                             [mentions] => Array
  180.                                 (
  181.                                 )
  182.  
  183.                         )
  184.  
  185.                     [html] => German, Pirat, Apple-Nerd, eCRM- und CMS-Mensch (”Senior System Integrator”)
  186.  
  187. Blog: http://taptoplay.de
  188. last_fm: http://www.lastfm.de/user/truhe
  189. Piraten: http://wiki.piratenpartei.de/Benutzer:Pirate_Pier
  190.                     [text] => German, Pirat, Apple-Nerd, eCRM- und CMS-Mensch (”Senior System Integrator”)
  191.  
  192. Blog: http://taptoplay.de
  193. last_fm: http://www.lastfm.de/user/truhe
  194. Piraten: http://wiki.piratenpartei.de/Benutzer:Pirate_Pier
  195.                 )
  196.  
  197.             [id] => 24262
  198.             [locale] => de
  199.             [name] => Oliver K.
  200.             [timezone] => Europe/Berlin
  201.             [type] => human
  202.             [username] => truhe
  203.         )
  204.  
  205.     [you_reposted] =>
  206.     [you_starred] =>
  207. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement