Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Hypermicrodata Client
Search
Kunihiko Ito
November 29, 2014
Programming
0
61
Hypermicrodata Client
TokyuRuby会議08 の "Hypermicrodata Client" の発表資料
Kunihiko Ito
November 29, 2014
Tweet
Share
More Decks by Kunihiko Ito
See All by Kunihiko Ito
データでふりかえるToyama.rb #100 2024
kunitoo
0
12
富山Ruby会議01 をふりかえる
kunitoo
0
21
Using Ractor
kunitoo
0
110
introduction neo4j
kunitoo
0
120
vim operation and my hotkey
kunitoo
0
130
Introduction Neo4j oblove calendar
kunitoo
0
1.3k
アジャイルソフトウェア開発の概要と現場での実践
kunitoo
0
1.9k
Introduction of neo4j
kunitoo
0
1.9k
Ruby 2.3 のてざわり
kunitoo
2
420
Other Decks in Programming
See All in Programming
データベースのオペレーターであるCloudNativePGがStatefulSetを使わない理由に迫る
nnaka2992
0
250
15分で学ぶDuckDBの可愛い使い方 DuckDBの最近の更新
notrogue
3
820
pylint custom ruleで始めるレビュー自動化
shogoujiie
0
160
Drawing Heighway’s Dragon- Recursive Function Rewrite- From Imperative Style in Pascal 64 To Functional Style in Scala 3
philipschwarz
PRO
0
150
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
1.1k
PHPカンファレンス名古屋2025 タスク分解の試行錯誤〜レビュー負荷を下げるために〜
soichi
1
740
ABEMA iOS 大規模プロジェクトにおける段階的な技術刷新 / ABEMA iOS Technology Upgrade
akkyie
1
240
DRFを少しずつ オニオンアーキテクチャに寄せていく DjangoCongress JP 2025
nealle
2
290
Go 1.24でジェネリックになった型エイリアスの紹介
syumai
2
300
DevNexus - Create AI Infused Java Apps with LangChain4j
kdubois
0
130
1年目の私に伝えたい!テストコードを怖がらなくなるためのヒント/Tips for not being afraid of test code
push_gawa
1
650
Amazon Bedrockマルチエージェントコラボレーションを諦めてLangGraphに入門してみた
akihisaikeda
1
150
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
13
1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
10
540
Producing Creativity
orderedlist
PRO
344
40k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
380
How to Ace a Technical Interview
jacobian
276
23k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
Adopting Sorbet at Scale
ufuk
75
9.2k
Bash Introduction
62gerente
611
210k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
660
Transcript
Hypermicrodat a client Kunihiko Ito 永和システムマネジメント
はじめに Ruby Kaigi 2014 参加しました?
今日話すこと Ruby Kaigi 2014 で感じたこと 試してみたこと
参加しました? Hypermedia: The Missing Element to Building Adaptable Web APIs
in Rails
聞いていない方 Video: http:// rubykaigi.org/2014/ presentation/S- ToruKawamura
はじめまして 初参加 Kunihiko Ito @kunitoo
概要 Hypermedia: The Missing Element to Building Adaptable Web APIs
in Rails 疎結合なAPI 状態遷移をレスポンスに含める 設計 WEB API
hypermicrodata HTMLをJSONに変換 HTMLから抽出 mirodata リンク フォーム
あらためて Video: http:// rubykaigi.org/2014/ presentation/S- ToruKawamura
感じたこと サーバは簡単に作成できそう クライアント難しくなりそう
実際に作ってみよう! rails g scaffold User name email view に microdata
を付加
show.html.haml .person{itemscope: true, itemtype: 'http://schema.org/Person', itemid: users_url(@user), data: {main_item: true}}
.media .media-body %p#notice= notice %p %strong Name: %span{itemprop: 'name'}= @user.name %p %strong Email: %span{itemprop: 'email'}= @user.email = link_to 'Edit', edit_user_path(@user), rel: 'edit' | \#{link_to 'Back', users_path, rel: 'collection', itemprop: 'isPartOf'}
uber+json { "uber":{ "version":"1.0", "data":[ { "url":"http://localhost:3000/users.1", "name":"Person", "data":[ {
"name":"name", "value":"Kunihiko Ito" }, { "name":"email", "value":"
[email protected]
" }, { "name":"isPartOf", "rel":"collection", "url":"/users" }, { "rel":"edit", "url":"/users/1/edit" } ] } ] } }
アイディア クライアントが hypermicrodata と 同じルールで読みとれれば 簡単に作れるようになるのでは?
やってみて microdata の付加が難しい http://schema.org/ メタ的に考える必要がある もっとデフォルトでできるとう れしい
hypermicrodata client みなさんも挑戦してみて下さい