OStatusã®ä»æ§ãããã¤ã¾ãã§é©å½ã«å訳ããã
OStatus 1.0 Draft 2 http://ostatus.org/sites/default/files/ostatus-1.0-draft-2-specification.html
æ¦è¦
OStatusã¯ç°ãªãã½ã¼ã·ã£ã«ãããã¯ã¼ã¯ä¸ã®ã¦ã¼ã¶ã¼ããäºãã«ãã©ãã¼ã§ããä»çµã¿ãæä¾ãã¾ãã
ãã®ä»æ§ã¯é¢é£ããããã¤ãã®ãããã³ã«ï¼PubSubHubbub, ActivityStreams, Salmon, Portable Contacts, and Webfingerï¼ãããªãã¾ãã
OStatusã¯åæ£æ´æ°éç¥ããã¤ã¯ãããã°ã®ããã®æå°ã®ä»æ§ã§ãã
RSSãAtomãã£ã¼ããé
ä¿¡ãããµã¼ãã¹ã§ããã°ãOStatusãå©ç¨ãããã¨ãã§ãã¾ãã
ãã¨ãã°ãæ
è¡ãµã¤ããã¤ãã³ãéç¥ãµã¤ããWikiãåçå
±æã·ã¹ãã ãã½ã¼ã·ã£ã«ãã¥ã¼ã¹ãµã¤ããã½ã¼ã·ã£ã«é³æ¥½ãµã¤ããpodcastãµã¼ãã¼ãããã°ããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ããã®ä»ã®æ±ç¨çãªã½ã¼ã·ã£ã«ãµã¼ãã¹ãªã©ã
1.ã©ã¤ã»ã³ã¹
ï¼åæåç §ï¼
2.表è¨ã»ç¨æ³
ï¼åæåç §ï¼
3.ç¨èªå®ç¾©
- User
- ãµã¼ãã¹ã®å©ç¨è ã¾ãã¯botã
- Group
- ã¦ã¼ã¶ã¼ã®éã¾ãã
- Update
- Userã®ç¶æ ãè¡åã®å¤æ´éç¥ãUserãç´æ¥éç¥ããããã¾ãã¯ã·ã¹ãã çã«èªåçæãããã
- Feed
- æè¿ã®Updateã®ãªã¹ãããã¨ãã°ãUserãGroupã®ãã¹ã¦ã®Updateãæ¤ç´¢æ¡ä»¶ã«ãããããUpdateãªã©ã
- Publisher
- Updateãéç¥ããUserã¾ãã¯Group
- Subscriber
- Publisherããã®éç¥ãåãåãUserãããããFollowerã
- Follow
- Publisherããã®Updateãåãåããã¨ã
- Publisher Server
- PublisherãUpdateãéç¥ããéã«ä½¿ç¨ããWebãµã¼ãã¼ã
- Subscriber Server
- SubscriberãUpdateãåãåãéã«ä½¿ç¨ããWebãµã¼ãã¼ã
4.è¦ä»¶
ãã®ä»æ§ã§è§£æ±ºãããã¨ããè¦ä»¶ã»åé¡é åã¯ä»¥ä¸ã®éãã
- Updateã¯UTF-8ã®ãã¬ã¼ã³ããã¹ãã
- Updateã¯HTMLã
- Updateã¯è¤æ°ã®æ·»ä»ãã¡ã¤ã«ãå«ãã
- Updateã¯ã»ãã®Updateã¸ã®è¿ä¿¡ã«ãªããï¼twitterã®replyï¼
- Updateã¯ã»ãã®Updateã®ã³ãã¼ã転éã«ãªããï¼twitterã®å ¬å¼ã»éå ¬å¼retweetï¼
- Updateã¯ãããã¯ã«é¢é£ä»ãããããï¼twitterã®ããã·ã¥ã¿ã°ï¼
- Updateã¯åä¿¡è ãæå®ã§ãããï¼twitterã®mentionï¼
- Updateã¯ä½ç½®æ å ±ãæã¦ãã
- 誰ã§ãUpdateã«ããæ°ã«å ¥ãããã¼ã¯ãã¤ãããã¯ããããã§ããã
- Userã¯ã¦ãã¼ã¯ãªèå¥æ å ±ãæã¤ãï¼ã°ãã¼ãã«ã¦ãã¼ã¯ãã¨ããæå³ãã¨ï¼
- Userã¯ååãæå¨å°ãããã¯ãã¼ã /ã¦ã¼ã¶ã¼åãç¥æ´ãé¢é£ããURLãªã©ã®ãããã£ã¼ã«ããã¦ãã
- Userã¯ã¢ãã¿ã¼ãè¨å®ã§ãããï¼ãããã£ã¼ã«åçç¨åº¦ã®æå³ã£ã½ãï¼
- Subscriberã¯Publisherã®Updateãããã«åãåããï¼ã»ã¼ãªã¢ã«ã¿ã¤ã ãããã·ã¥éç¥ã欲ããï¼ã
- Publisher Serverã¯ããPublisherã®Subscriberã®ãªã¹ãããèå¥æ å ±ã¨ãããã£ã¼ã«ãå«ãã¦ä¿æã§ããã
- Subscriber Serverã¯ããSubscriberã®Publisherã®ãªã¹ãããèå¥æ å ±ã¨ãããã£ã¼ã«ãå«ãã¦ä¿æã§ããã
- Publisher Serverã¯Publisherã®Updateã«å¯¾ããè¿ä¿¡ã®ãªã¹ãããã¹ã¦ä¿æã§ããã
- Publisher Serverã¯ã³ãã¼ã転éãããPublisherã®Updateããã¹ã¦ä¿æã§ããã
- Publisher Serverã¯ããæ°ã«å ¥ãããã¼ã¯ãããPublisherã®Updateããã¹ã¦ä¿æã§ããã
- åãµã¼ãã¼ã¯ãUpdateã«å«ã¾ããã³ã³ããã¹ããã¡ã¿ãã¼ã¿ããããã¹ãã®ãã¼ã¹ããããã¨ãªãåå¾ã§ãããï¼ä½ç½®æ å ±ã¨ãã®ã¡ã¿ãã¼ã¿ãããã¹ãã«ç¡çããåãè¾¼ãããããªãã¦ãã¡ããã¨ã¹ãã¼ããå®ç¾©ãã¦ã¡ãã»ã¼ã¸ã®ããåãããããã¨ãããã¨ï¼
- Subscriberã¯Groupãæ¤ç´¢çµæãã¿ã°ã«é¢é£ããUpdateãªã©ãè¤æ°ã®æ´æ°å ããã®Updateãåãåãããï¼ã¿ã°ï¼twitterã®ããã·ã¥ã¿ã°çãªãã®ã§ãUser以å¤ã®ãã®ããã©ãã¼ã§ãããã¨ããæå³ã£ã½ãï¼
5.対象å¤
以ä¸ã®ãããªå 容ã¯OStatusã§ã¯è¦å®ããªãã
- ãã¤ã¯ãããã°ã®ææ³
- ããã·ã¥ã¿ã°ã®è¨æ³(#)ã¨ãã@ã«ãããªãã©ã¤ã¨ãã¯è¦å®ããªãããããããããã£ãã¡ã¿ãã¼ã¿ã«ã¤ãã¦ãOStatusã§ã¯ããã¹ãã®ãã¼ã¹ãä¸è¦ãªããã«ãã¹ãã¼ããè¦å®ããã
- ã¯ã©ã¤ã¢ã³ãAPI
- ã¦ã¼ã¶ã¼ã¨ãµã¼ãã¼éã®ãããã³ã«ãAPIã«ã¤ãã¦ã¯è¦å®ããªããWebã§ãã¡ã¼ã«ã§ããªãã§ãããã
- ãã©ã¤ãã¼ãã¡ãã»ã¼ã¸
- twitterã®DMã®ãããª1対1ã®ã¡ãã»ã¼ã¸éåä¿¡ã«ã¤ãã¦ã¯è¦å®ããªãã
- ã½ã¼ã·ã£ã«ã°ã©ã
- Useréã®é¢é£æ å ±ã®ãã¼ã¿è¡¨ç¾ãä¿ææ¹æ³ã«ã¤ãã¦ã¯è¦å®ããªãããã ããé¢é£æ å ±ãæ¤ç´¢ããéã®ãããã³ã«ã«ã¤ãã¦ã¯è¦å®ãããå¿ è¦ã§ããã°FOAFãXFNã«å¾ããï¼ææ§ã»ã»ã»ã¾ã è¦å®ãã¦ãªãã£ã½ããï¼
6.Updateã®è¡¨ç¾
Atomã®ä»æ§ã§å®ç¾©ãããActivitiesã使ããUpdateã¯ãããã"Post"ã®ãã¨ã§ãåã¨ãã¦ã¯"Note", "Status", "Comment"ã¨ãªããåãµã¼ãã¼ã¯ãããã®æ¨æºã®åããµãã¼ããã¹ãã§ããã®ä»ã®åã®ãµãã¼ãã¯ä»»æã¨ããã
ä½ç½®æ å ±ã¯GeoRSSã®ä»æ§ã«æ²¿ã£ã¦ã¨ã³ã³ã¼ãããactivityå ã®ãªãã¸ã§ã¯ãã¨ãã¦è¡¨ç¾ãããã
æ·»ä»ãã¼ã¿ã¯activityã«å«ã¾ããå½¢ã§è¡¨ç¾ãããã
Updateãä½ãã«å¯¾ããreplyã§ãã£ãå ´åãAtomã®"in-reply-to"ã®ä»æ§ã«æ²¿ã£ã¦è¡¨ç¾ãããã
ã¿ã°æ å ±ã¯Atomã®ã«ãã´ãªã¼ã¨ãã¦è¡¨ç¾ãããã
OStatusã¯Activity Streamsã«ä»¥ä¸ã®2ã¤ã®æ¡å¼µãå®ç¾©ããã
7.Userã®è¡¨ç¾
ã¦ã¼ã¶ã¼ã¯URIã§èå¥ãããã
ã¦ã¼ã¶ã¼ã¯é©åãªåã®activityãªãã¸ã§ã¯ãã¨ãã¦è¡¨ç¾ããããé常ã¯"Person"ã¨ãªãã
追å ã®æ å ±ãç¡ããã°ãä»å æ å ±ã®ç¡ãActivityãã¼ã¿ã¨ãã¦ãAtomãRSSãã£ã¼ãã®"Post"ã¨ãã¦è¡¨ç¾ãããããã®å ´åããã£ã¼ãã®authorè¦ç´ ã«ã¯<email>ã<uri>ã®ããããä¸æ¹ãæã£ã¦ããå¿ è¦ãããã
Subscriberã¯ä»¥ä¸ã®é åºã§URIãæ¢ãã
- Activityãªãã¸ã§ã¯ãã®<id>ã¨ã¬ã¡ã³ã
- Atomã®authorã®<uri>ã¨ã¬ã¡ã³ã
- Webfingerã®acct: URIã¨ãã¦æ±ããããAtomã®authorã®<email>ã¨ã¬ã¡ã³ã
Publisherã¯ãããã£ã¼ã«ã®URLãURIã¨ãã¦æä¾ããå ´åããããããã®URLãå°æ¥çã«å¤ãããªããã®ã¨ããªããã°ãªããªãã
Userã¯HTTP(s)ã§åç §ã§ãã¦ãHTMLã§è¡¨ç¾ããã¦ãã¦ããã®Userã®Feedã¸ã®ãªã³ã¯ãå«ãã ãããã£ã¼ã«ã®URLãæã¤ã¹ãããããã£ã¼ã«ã®URL㯠link[@rel=alternate,@type=text/html] ã®å½¢å¼ã§Activityã®subject, actorãªã©ã®é ç®ã¨ãã¦è¡¨ç¾ãã¹ãããããªããã°ãHTTP(s)ã®URIã§è¡¨ç¾ãã¹ãã
ãããã£ã¼ã«æ å ±ã追å ããããã«ãauthorã¨ã¬ã¡ã³ããactorã¨ã¬ã¡ã³ããPortable Contactså½¢å¼ã®ãã¼ã¿ã¨ãã¦æ¡å¼µå¯è½ã«ãªã£ã¦ãã¾ãã
- preferredUsername
- ãã°ã¤ã³å/ã¦ã¼ã¶ã¼å
- displayName
- ãã«ãã¼ã ãauthor/name ã actor/title ã®å¤ã
- note
- 説ææã
- address/formatted
- ç¾å¨ã®æå¨å°ã
- urls[type=home]/value
- ã¦ã¼ã¶ã¼ã®ç´¹ä»ãã¼ã¸ãActivityã®actorã¨ã¬ã¡ã³ãã«å¿ è¦ã¨ãªã link[@rel=alternate,@type=text/html] ã¨ã¯ç°ãªãã
Subscriberã¯microformatsãªã©ã®ã»ãã®å½¢å¼ã§æä¾ããå ´åãããããéæ¨å¥¨ã¨ããã
8.Feedã®è¡¨ç¾
Feedã¯ActiveStreamsã®Activityã¨åæ§ã¨ããã
ãã¹ã¦ã®Feedã¯subjectã¨ã¬ã¡ã³ããæã¤ã¹ããUserã®Feedã¯1ã¤ã®subjectãauthorãæã¤ã¹ããGroupã®Feedã¯ãã®Groupããããã1ã¤ã®subjectãæã¤ã¹ãã
ãã¹ã¦ã®Feed㯠link[@rel=hub] å½¢å¼ã§PubSubHubbubã®ã¨ã³ããã¤ã³ãURLãæããªããã°ãªããªããï¼Updateããè³¼èªããããã«å¿ è¦ã¨ãªãï¼
ãã¹ã¦ã®Feed㯠link[@rel=salmon] å½¢å¼ã§Salmonã®ã¨ã³ããã¤ã³ãURLãæã¤ã¹ããï¼replyãnotificationãåãåãããã«å¿
è¦ã¨ãªãï¼
9.Updateã®é å¸
Publisher Serverã¯PubSubHubbubãããã³ã«ã«ãããæ´æ°æ å ±ãSubscriberã«ããã·ã¥éç¥ããã
è¤æ°ã®SubscriverãåãSubscriber Serverã使ã£ã¦åãPublisherã®æ´æ°éç¥ãåãåãå ´åãSubscriber Serverã¯1ã¤ã®PubSubHubbubæ¥ç¶ã使ç¨ããã¹ãã
10.Userã¸ã®éç¥
ãµã¼ãã¼ã¯Salmonãããã³ã«ã使ã£ã¦å¥ã®UserãGroupã«å¯¾ãã¦ã¤ãã³ããéç¥ããããµã¼ãã¼ã¯ã¦ã¼ã¶ã¼ãPubSubHubbubã使ç¨å¯è½ã§Feedãåãåãã¦ããã¨ã¯ä»®å®ãã¦ã¯ãããªãã
éç¥ã®éä¿¡å ã¨éä¿¡å ã¯Subscriberã¨Publisherã®é¢ä¿ãæã£ã¦ããã¨ã¯éããªãã
éè¦ãªã¤ãã³ãã¯ä»¥ä¸ã®éããï¼ç´°ããæ¸ãã¦ãããã©çç¥ï¼
- Attention
- Reply
- Subscribe
- Unsubscribe
- Join
- Leave
- Favorite
- Unfavorite
- Repeat
11.æ¢ç´¢ã»æ¤ç´¢
UserãGroupã¸ã®Feedããããããè³¼èªãããéç¥ãéãã®ã«å¿ è¦ãªæ å ±ãåå¾ã§ããããã«ããããããã£ã¼ã«ã®ãã¼ã¿ãSalmonãããã³ã«ã®ã¨ã³ããã¤ã³ãURLãPubSubHubbubã®ã¨ã³ããã¤ã³ãURLããã¹ã¦Feedã®ä¸ã«ã¨ã³ã³ã¼ããããã
Feedã®æå¨ãæ¢ç´¢ããæ¹æ³ã¯ä»¥ä¸ã®3éãããã
- ã¦ã¼ã¶ã¼ãç´æ¥å ¥åããã
- ã¦ã¼ã¶ã¼ã®XRDãã¡ã¤ã«ã«å«ã¾ãã Link/Rel=http://schemas.google.com/g/2010#updates-from ã¨ã¬ã¡ã³ãããã
- ãããã£ã¼ã«ãã¼ã¸ã®HTMLã«å«ã¾ãã link[@rel=alternate,@type=application/atom+xml] å½¢å¼ã®ã¨ã¬ã¡ã³ãããã
ãããã£ã¼ã«ãã¼ã¸ã®URLãåå¾ããæ¹æ³ã¯ä»¥ä¸ã®2éãããã
- ã¦ã¼ã¶ã¼ãç´æ¥å ¥åããã
- ã¦ã¼ã¶ã¼ã®XRDãã¡ã¤ã«ã«å«ã¾ãã Link/Rel=http://schemas.google.com/g/2010#updates-from ã¨ã¬ã¡ã³ãããã
ã¦ã¼ã¶ã¼ã®XRDãã¡ã¤ã«ãåå¾ããæ¹æ³ã¯ä»¥ä¸ã®2éãããã
- nickname@example.comã®ãããªWebfingerã®acct: URIãã
- ãããã£ã¼ã«ãã¼ã¸ã®HTTPããããã
ã¦ã¼ã¶ã¼ã®XRDããã¥ã¡ã³ãã¯ããã®ã¦ã¼ã¶ã¼ã®Subscription Serverã«å¯¾ãã¦è³¼èªã®åæåå¦çãè¡ãããã®URLãã³ãã¬ã¼ãããhttp://ostatus.org/schema/1.0/subscribe ã«æ·»ã£ãå½¢ã§ã®ãªã³ã¯ãæä¾ããå ´åããããURLãã³ãã¬ã¼ãã¯ã©ã®ã¢ã«ã¦ã³ããè³¼èªããããã¨ããå¼æ°ã1ã¤ã¨ãã
12.Usage scenarios
12.1.Subscriber Serverããã®Feedã®åå¾
- SubscriberãSubscriber Serverã«åå¾ãããFeedãä¼ãããï¼URL, Webfinger account, Feedã®ãªã¹ãããã®é¸æï¼
- SubscriberãFeedã®URLãè¦ã¤ããã
- Subscriberããã§ã«Feedãåå¾ãã¦ãããã6ã¸ã
- Subscriber Serverã¯HTTPã§Feedããã¦ã³ãã¼ãããã
- Subscriber Serverã¯Feedã®ä¸ããPubSubHubbubã®URLãè¦ã¤ãããPubSubHubbubã®URLãç¡ããã°ãFeedã®åå¾ã¯çµäºããã¼ãªã³ã°ããã®ã¯OStatusã®ç¯çãããªãã
- Subscriber Serverã¯PubSubHubbubã®ä»çµã¿ã§Feedãåå¾ãããï¼ããã·ã¥éç¥ãåããç¶æ ã«ãããã¨ãããã¨ã£ã½ãããã®ã¸ãã¯Pub...ã®ä»æ§ãè¦ç¢ºèªï¼
- Subscriber Serverã¯Salmonãããã³ã«ã§Feedã«å¯¾ããã³ã¡ã³ããPublisher Serverã«ããã·ã¥éç¥ãããï¼ããè¯ãããããªãã»ã»ã»ï¼
12.2.Publisher Serverããã®Feedã®åå¾
- Subscriberã¯WebFingerã¢ã«ã¦ã³ããPublisher Serverã«æä¾ãããï¼ã¯ã¨ãªãã©ã¡ã¼ã¿ãPOSTã§ï¼
- Publisher Serverã¯WebFingerãéãã¦ãã®Userã«å¯¾ããURITemplateãæ¢ãã
- Publisher Serverã¯URITemplateãPublisherã®Feedã®URLã§ç½®ãæããã
- Publisher Serverã¯å ã»ã©ç½®ãæããURLã«ãªãã¤ã¬ã¯ããããã
- 12.1ã®1ã«æ»ã£ã¦Feedã®åå¾ãè¡ãã
13.åèè³æ
- [LRDD] Hammer-Lahav, E., âLink-based Resource Descriptor Discovery,â March 2010.
- [RFC2119] Bradner, S., âKey words for use in RFCs to Indicate Requirement Levels,â BCP 14, RFC 2119, March 1997 (TXT, HTML, XML).
- [RFC4287] Nottingham, M., Ed. and R. Sayre, Ed., âThe Atom Syndication Format,â RFC 4287, December 2005 (TXT, HTML, XML).
- [RFC4685] Snell, J., âAtom Threading Extensions,â RFC 4685, September 2006 (TXT).
- [Webfinger] âthe WebFinger protocol.â
- [activitiesinatom] Atkins, M., Recordon, D., Messina, C., Keller, M., Steinberg, A., and R. Dolin, âAtom Activity Extensions (Draft),â March 2010.
- [activityschema] Atkins, M., Recordon, D., Messina, C., Keller, M., Steinberg, A., and R. Dolin, âAtom Activity Base Schema (Draft),â March 2010.
- [georss] âGeoRSS-Simple.â
- [poco] Smarr, J., âPortable Contacts 1.0 Draft C,â August 2008.
- [push] Fitzpatrick, B., Slatkin, B., and M. Atkins, âPubSubHubbub Core 0.3 -- Working Draft,â February 2010.
- [salmon] Panzer, J., âThe Salmon Protocol,â February 2010.