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
78
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
47
富山Ruby会議01 をふりかえる
kunitoo
0
64
Using Ractor
kunitoo
0
180
introduction neo4j
kunitoo
0
160
vim operation and my hotkey
kunitoo
0
180
Introduction Neo4j oblove calendar
kunitoo
0
1.5k
アジャイルソフトウェア開発の概要と現場での実践
kunitoo
0
2.1k
Introduction of neo4j
kunitoo
0
1.9k
Ruby 2.3 のてざわり
kunitoo
2
480
Other Decks in Programming
See All in Programming
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
8k
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
200
Windows on Ryzen and I
seosoft
0
260
SourceGeneratorのマーカー属性問題について
htkym
0
190
CSC307 Lecture 14
javiergs
PRO
0
470
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜
kuro_kurorrr
3
1.9k
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
260
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.5k
AI時代でも変わらない技術コミュニティの力~10年続く“ゆるい”つながりが生み出す価値
n_takehata
2
720
CSC307 Lecture 15
javiergs
PRO
0
240
ロボットのための工場に灯りは要らない
watany
10
2.7k
Claude Codeログ基盤の構築
giginet
PRO
7
3k
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
It's Worth the Effort
3n
188
29k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
Joys of Absence: A Defence of Solitary Play
codingconduct
1
310
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
240
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
470
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
140
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
150
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
140
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 みなさんも挑戦してみて下さい