2010-04-01ãã1ã¶æéã®è¨äºä¸è¦§
ãã®1ï¼æ¨æµ¦ç§æ¨¹ããã亡ããªãã¾ãã ãã®2ï¼XMLã¸ã®æå¾ -- ãã®æè¡ã¨ææ³ ç¬¬20å (1999å¹´12æ) ãã®3ï¼ãã¯ããã¸ã¼ã®ç¥ç¥ã®å¾ã§ï¼ãã®ã¨ã³ããªã¼ï¼ ãXMLã¸ã®æå¾ ãã®ç¬¬20åè¨äºãåºã¦ããã®ã¯å¶çºçã§ãä»ã®ç®çã§å¤ããã£ã¹ã¯ãããã£ã¦ããã®ã§ããâ¦
ããã¯ãæªå±±ã1999å¹´æ«ã«æ¸ãããæåã¢ã¹ãã¼ãé£è¼è¨äºã®å稿ã§ããä½è£ã調æ´ããã ãã§ä¸åä¸å¥ã®å¤æ´ããã¦ãã¾ãããå稿æåºå¾ã«ãæåã¢ã¹ãã¼ãã®ç·¨éè ï¼è¥¿æããã§ãï¼ã«ããä¿®æ£ãå¤å°å ¥ã£ãããç¥ãã¾ããããã»ã¼ãã®ã¾ã¾æ²è¼ãããå 容ã§ãâ¦
æ¨æµ¦ç§æ¨¹ããã4æ7æ¥ã«ã¬ã³ã§äº¡ããªãã¾ãããæ¤ç´¢ãã¦ã¿ãã¨ãæ¢ã«è¨å ±ã¯ã¤ã³ã¿ã¼ãããä¸ã«åºãã£ã¦ããããã§ããä»å¹´2æã«åã¯ãå°æé¾çããã¨ä¸ç·ã«æ¨æµ¦ããã¨ãä¼ããã¾ããã From: Hideki Hiura <hiuraï¼ linuxfoundation.org> To: ï¼æªå±±ï¼ Cc: ï¼å°æããï¼ æ¥ä» 2010å¹´2æ3æ¥</hiuraï¼ linuxfoundation.org>â¦
åã¯ä½åº¦ããã£ã¹ã¯ã¯ã©ãã·ã¥ãçµé¨ãã¦ããã®åº¦ã«ç¸å½éã®ãã¼ã¿ã失ãã¾ãããã ãã©ãæå¤ã¨æ°ã«ããªãã»ãã§ããããå°ã£ããã¨ãããã®ã§ãããè½èãããæ²è¦³ãããã¯ãã¾ããã§ãããå®éã®ã¨ãããã¢ã¯ã»ã¹ããå©ç¨ããããã¡ã¤ã«ã¯æ°ãããã®ã§ãâ¦
ã·ã§ã«ï¼ä¸»ã«bashï¼ã®ã¹ã¯ãªããããã¾ã¼ã«æ¸ãã¾ããã·ã§ã«ã¹ã¯ãªããã®æ§æã¯å ¨ç¶æ¶ããããªãããããã£ã¡ã ãééãã¾ãããããªãã¨ãä½åº¦ããã®ããã°ã«æ¸ãããã¨ãããã¾ãã ã·ã§ã«ï¼bashï¼ã®foræã®éããå¸åããMakefile ã®æ¸ãæ¹ ã·ã§ã«ã¹ã¯ãªâ¦
ãJSONã¹ãã¼ãå±æ§ã¨ãã®é©ç¨å¯¾è±¡ã®ä¸è¦§ 2010å¹´æ¥ã»ç·¨ãããå¼ç¨ï¼ åã¯ãJSONã§ãBase64ã¨ã³ã³ã¼ãã®binaryåããã¤ãã£ãã»ãµãã¼ããã¹ãã ã¨æã£ã¦ãã¾ããXML Schema Part 2: Datatypes ã§ã¯ãã¤ããªãã¼ã¿ããµãã¼ããã¦ã¾ãï¼http://www.w3.org/TR/xâ¦
éæ¯çã«ã¼ãã«ãã¹ã¯ã©ããã»ããã¤ã©ãã¨ããã®ããããããã§ãã éæ¯çã«ã¼ãWiki ãã¹ã¯ã©ããã»ããã¤ã©ã 次ç·ï¼ããç¶ãããããã¤ã©ã£ã¦ã©ãããæå³ï¼ãç¶è¦ªï¼ãããã¤ã©ãããããç¶ããã®ãã¨ã ã次ç·ï¼ãããã¼ããªã«ããï¼ãç¶è¦ªï¼ããç¶ããâ¦
Windowsã«ãªã㨠getmac ã¨ããã³ãã³ããããã¾ãããç¥ãã¾ããã§ããããããå®è¡ããã¨ãæ½é¸ã§ãããã³ããã·ã¥ ã»MacBookãããããããã§ãããªãã¦ãããªãã§ãããã®ãã·ã³ã®ãããã¯ã¼ã¯ããã¤ã¹ã®MACã¢ãã¬ã¹ãç¥ããã¨ãã§ãã¾ãã C:\Users\hiyâ¦
åãchimaira.orgãµã¼ãã¼ï¼nginxã使ã£ã¦ãã¾ãï¼ã®è¨å®ãã¹ããã¦ãã¾ãããã®ããã°ã®ç»åããã°ããåºã¦ãªãã£ãããã§ãã失礼ãã¾ããã
ãããä¹ ãã¶ãã«DTDï¼Document Type Definitionï¼ãæ¸ãã¦ã¿ã¾ãããåæ©ã¯ãWikiCreole (http://www.wikicreole.org/wiki/Creole1.0) ãæ£ç¢ºã«ç解ãããããããã®DTDã¯ãã®è¨äºã®æå¾ã®ã»ãã«è²¼ã£ã¦ããã¾ããWikiCreoleã®ãã¼ã¯ã¢ããã«ã¯ãXHTMLã¸ã®å¤â¦
ä½æ¸¡ã¶å³¶ã®ããï¼é³¥ï¼ã®ãã¥ã¼ã¹ï¼ãã¥ã¼ã¹ï¼ããããç«ã¡ä¸ãã£ãã¨ããåµã確èªããã¾ããã次ç·ï¼ããç¶ãããä»ãã¥ã¼ã¹ã§ãâ¦ãç¶è¦ªï¼ãé§æ´è½ã¯è¨ã£ã¦ãªããåèï¼ ããã¯é§æ´è½ãããªã 次ç·ã¨ãæ¸è°·ã«ã¦
2008å¹´ã«æ¬¡ã®è¨äºãæ¸ãã¾ããã å人ãã¸ã¿ã«åºçã§å²ããããããã«ãªã ããã¨é¢é£ããè¨äºï¼ 人ã¯ãã§ããã ãå®ãè²·ããã¨ã¨ãèªåã®è©ä¾¡ãä¼ãããã¨ã®ã©ã¡ããé¸ã¶ã ãã èªè ã»è³¼å ¥è ã«ã¨ã£ã¦ä¾¿å©ã§å¦¥å½ã ã¨æããå¤æãããã¨ãèè ã»åºçè ã«ã¯è¦â¦
ãJSONã¹ãã¼ãå±æ§ã¨ãã®é©ç¨å¯¾è±¡ã®ä¸è¦§ãï¼2009å¹´6æï¼ã®æ å ±ãæ´æ°ãã¾ããç¾ç¶ã®ææ°JSONã¹ãã¼ãä»æ§ãåæ ããã¾ãã ææ°JSONã¹ãã¼ãä»æ§ http://tools.ietf.org/html/draft-zyp-json-schema-02 ããæè¿å°å ¥ãããuniqueItemsã¹ãã¼ãå±æ§ã¯ä»¥åãâ¦
ä¹ ã ã®ãçµµæãè¬åº§ã§ãã10æã®çµµãæãããï¼ã£ã¦ãè½æãã¿ãããªã¢ã³ã§ããã©ï¼ãæåã°ã©ãã¯è¨ç®ç§å¦ï¼ã³ã³ãã¥ã¼ãã£ã³ã°ã»ãµã¤ã¨ã³ã¹ï¼ã§é »åºãã大äºãªãã¼ã¿æ§é ã§ããã³ã³ãã¥ã¼ã¿ã§æ±ããã®ã¯æéã°ã©ãã§ãããç¡éã°ã©ããç»å ´ããªãã®ãã¨ãâ¦
é·ç·ï¼ããç¶ãããæè¿ã¹ãããªãã¦æ°æã¡ããã£ããã¨ã¯ããï¼ãç¶è¦ªï¼ãç¹ã«ãªããªãé·ç·ï¼ã俺ã¯ããããç¶è¦ªï¼ããµã¼ããé·ç·ï¼ãé¶èãé£ã¹ããããæ¯ã«ã¯ãã¾ã£ãã®ãç¶è¦ªï¼ãã»ã¼ãé·ç·ï¼ãæ®éã¯ãçªæ¥æã¨ãæã§åããã¨ããã§ãããç¶è¦ªï¼ãããâ¦
ãæ¡å¼µJSONã§è¡¨ç¾ããXMLã®æ£è¦å½¢ãããå¼ç¨ï¼ æ£è¦å½¢ãã¼ã¿ã«å¯¾ãã¦ãDOM APIã«ç¸å½ããã¢ã¯ã»ã¹ï¼æä½ã®ä½ç³»ã¯ç°¡åã«å®ç¾©ã§ãã¾ãã ãæ¡å¼µJSONã§è¡¨ç¾ããXMLã®æ£è¦å½¢ãã«æ²¿ã£ãæ¹æ³ã§ãã£ã¦ã¿ã¾ãããå®éã«ç°¡åã§ããã以ä¸ã¯ãDOM APIã®ä¸é¨ã«ç¸å½ããâ¦
æ°ããPCã«ç§»è¡ä¸ãªãã§ããã以åããæ°ã«ãªã£ã¦ãããã¨ããã£ã±ãã¹ã´ã¯æ°ã«ãªããããã¯ãã¦ã¼ã¶ã¼ã®ãã¼ã ãã£ã¬ã¯ããªã®åé¡ã§ããWindowsããã¼ã ãã£ã¬ã¯ããªã®æ¦å¿µããã£ã¦ãç°å¢å¤æ°USERPROFILEã«ãã¼ã ãã£ã¬ã¯ããªã®ãã¹ãã»ããããã¾ããHOMEDâ¦
次ç·ï¼ãäºã®é ç·ã«ä¹ã£ã¦ããã®ãããã
JSONãã¤ãã¼ã¹ãã¼ãã¨ããä»æ§ãããã¾ãã http://tools.ietf.org/html/draft-zyp-json-schema-01#section-6 ãã®ä»æ§ã®åæ©ãç®çã«ãåã¯å¼·ãå ±æããã¼ãã¾ãã欲ããã£ããã§ããï¼ ããããæ©è½ãã ãã©ãJSONãã¤ãã¼ã¹ãã¼ãä»æ§ã¯ãã¡ã§ããã©ãâ¦
ã³ã³ãã¥ã¼ã¿ã®ã»ããã¢ããã£ã¦ã»ãã¨ã«ããã©ããããªã¼ããã¼ãï¼ããæ¯ï¼ãåã®å ´åã¾ãã¯ãMinGW/MSYSãã¤ã³ã¹ãã¼ã«ã®ä»æ¹ã¯æ¬¡ã«æ¸ãã¦ãããï¼è¨é²ã¯å½¹ã«ç«ã¤ãªã¼ï¼ã ãMinGW/MSYSãã¤ã³ã¹ãã¼ã«ããï¼ä½åº¦ç®ããªï¼ï¼ãhttp://d.hatena.ne.jp/m-hiyaâ¦
ãXMLããJSONã¸ã®å¤æã¯ãããã¹ -- eXtendedJSON-encoded XMLãã«ããã¦ãæ¡å¼µJSONï¼eXtended JSON or XJSONï¼ã«ã¨ã³ã³ã¼ããããXMLã®æ£è¦å½¢ãå®ç¾©ããã®ã§ãããã©ããã¢ã¬ã¯ãããããªããä¸çªçãå½¢ãæ£è¦å½¢ã«ããããããªãã¦ãä¸çªæ±ããããå½¢ãæ£â¦
天æ°äºå ±ï¼ãæ°æ½ã¯å¤æ¹ããé¨ã§ãããã次ç·ï¼ããã¿ãªé§æ´è½è¨ã£ã¦ãããç¶è¦ªï¼ããã£ãã©ããé§æ´è½ãªãã ï¼ã次ç·ï¼ããã¤ã¬ã¿ãã¦ã¦ã¬ã¿ãç¶è¦ªï¼ããã®ãã¼ãåã¯é§æ´è½ã®ãã¨ã°ã£ããèãã¦ããããé§æ´è½ã«èãããã®ã天æ°äºå ±ã§é§æ´è½è¨ããããªãâ¦
é·ç·ï¼ãé«å°¾å±±ã«ç»ã£ãã¨ããæãåºãã¦äºã»ä¸ã»äº*1ãç¶è¦ªï¼ãã»ããå±±ããã®æ¯è²ããã¿ãï¼ãé·ç·ï¼ãæ¯è²ãããªããã©ãç¶è¦ªï¼ãã¾ã¼ããããäºä¸äºãããé·åï¼ãé«å°¾å±±ãããæ¥ããããããããªã¨ãã *1:æè¿ãNHKæè²ã®ãã«ã»ããã§ããã¼ãã§äºä¸äºâ¦
ããã¤ã¯ããã©ã¼ããã(microformats) vs. ãã¤ã¯ããã¼ã¿(microdata)ãããå¼ç¨ï¼ ãã¤ã¯ããã©ã¼ãããï¼ãã¤ã¯ããã¼ã¿å ±éã®ãã¼ã¿ã¢ãã«ã¨APIã®è©³ç´°ã«é¢ãã¦ã¯ãã¾ã次ã®æ©ä¼ã«è¿°ã¹ãã¤ããã§ãã ãªãã¦æ¸ããã®ã§ããã¤ã¯ããã¼ã¿ã®ä»æ§ã注æãã¦èªâ¦
ããã¤ã¯ããã©ã¼ãããï¼microformatsï¼ã®è¹è·ã¨å¸æãã«ããã¦ããã¤ã¯ããã©ã¼ãããï¼microformatsï¼ã®ãã¼ã¿ã¢ãã«ããã¼ã¯ã¢ãããææ§ããã¦ãã©ãããã¡ãªæãã ã¨ææãã¾ããããããããã§ãã次ã®ç¹ã¯ãã¤ã¯ããã©ã¼ãããã®åªä½ç¹ã ã¨åã¯æãâ¦
æè¿ããURIãã³ãã¬ã¼ãï¼URI Templateï¼ãã¨ããè¨èãèããã¨ãããã®ã§ã次ã®ä»æ§ãèªãã§ã¿ã¾ããã http://bitworking.org/projects/URI-Templates/spec/draft-gregorio-uritemplate-03.html è¦ããã«æ¬¡ã®ãããªããã§ããä¸ç¨®ã®ãã³ãã¬ã¼ãè¨èªãªã®â¦
ãXMLããJSONã¸ã®å¤æãã©ããã¹ããããããå¼ç¨ï¼ ã¹ãããªããå¤æã®ã»ããããããæãã¯ãã¾ããããããã¡ã¿æ å ±ã®åç §ã¨ããã®ã¯ããã¦ãã¯ä¸åãªãã¨ã§ãç ´ç¶»ã®å ¥ãå£ã ã£ãããã¾ãã®ã§ãã©ããã¹ããã®å¤æã¯é£ããã¨ããã§ãã XMLå´ã®ã¡ã¿æ å ±â¦
XMLã¨JSONã®ããã ã§ç¸äºå¤æããããããã§ãããã¨ãããã XML â JSON æ¹åãèãã¾ããå å®¹ï¼ å®ä¾ã¨åºæ¬æ¹é å¤æã®è¦å 空å 容è¦ç´ ã®å¤æ ã¿ã°ãå¤ããã è¦ç´ ã3種é¡ã«åé¡ãã ã©ããã¹ãã [追è¨]ç¶ãã¯ãhttp://d.hatena.ne.jp/m-hiyama/20100410/â¦
å±±æ¬é½å¹³ï¼id:yoheiï¼ãããããWebãæ¯ããæè¡ããéã£ã¦ããã ãã¾ãããWebãæ¯ããæè¡ -HTTPãURIãHTMLãããã¦REST (WEB+DB PRESS plus)ä½è : å±±æ¬é½å¹³åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾çºå£²æ¥: 2010/04/08ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼è³¼å ¥: 143人 â¦
JSONã¹ãã¼ãã§å®ç¾©ã§ãããã¼ã¿åã®åé¡ãã¾ãè¼ãã¾ãã åºæ¬ã¹ã«ã©ã¼åï¼ integer, number, string, boolean, null ãªã¹ãåï¼ é ç®ããã¹ã¦åãåã§ããé ååãé ç®ã®åæ°ã¯ä»»æ ã¿ãã«åï¼ æ±ºã¾ã£ãåæ°ã®é ç®ãæã¤é åå ã¿ãã«ï¼ãªã¹ãåï¼ æ±ºã¾ã£â¦