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
71
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
27
富山Ruby会議01 をふりかえる
kunitoo
0
43
Using Ractor
kunitoo
0
140
introduction neo4j
kunitoo
0
140
vim operation and my hotkey
kunitoo
0
150
Introduction Neo4j oblove calendar
kunitoo
0
1.4k
アジャイルソフトウェア開発の概要と現場での実践
kunitoo
0
2k
Introduction of neo4j
kunitoo
0
1.9k
Ruby 2.3 のてざわり
kunitoo
2
450
Other Decks in Programming
See All in Programming
はじめてのMaterial3 Expressive
ym223
2
870
そのAPI、誰のため? Androidライブラリ設計における利用者目線の実践テクニック
mkeeda
2
1.8k
今だからこそ入門する Server-Sent Events (SSE)
nearme_tech
PRO
3
240
MCPとデザインシステムに立脚したデザインと実装の融合
yukukotani
4
1.4k
1から理解するWeb Push
dora1998
7
1.9k
速いWebフレームワークを作る
yusukebe
5
1.7k
時間軸から考えるTerraformを使う理由と留意点
fufuhu
16
4.8k
複雑なフォームに立ち向かう Next.js の技術選定
macchiitaka
2
180
テストコードはもう書かない:JetBrains AI Assistantに委ねる非同期処理のテスト自動設計・生成
makun
0
410
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
700
testingを眺める
matumoto
1
140
Rancher と Terraform
fufuhu
2
550
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
184
22k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Raft: Consensus for Rubyists
vanstee
140
7.1k
Thoughts on Productivity
jonyablonski
70
4.8k
Balancing Empowerment & Direction
lara
3
620
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
113
20k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Fireside Chat
paigeccino
39
3.6k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
RailsConf 2023
tenderlove
30
1.2k
Gamification - CAS2011
davidbonilla
81
5.4k
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 みなさんも挑戦してみて下さい